I want to print Invoice of both pending and complete status orders in pdf.But right now it prints only complete status orders invoice only. How can i change it.
This is the line line i found under app/code/core/Mage/Adminhtml/controllers/Sales/Ordercontroller.php
function name pdfinvoicesAction
$invoices = Mage::getResourceModel('sales/order_invoice_collection')
->setOrderFilter($orderId)
->load();
This one collects the completed order invoices. how can make it to collect both pending and complete status orders
Any help would be appreciated.
Thanks