Print invoice pdf of pending orders in magento -


i want print invoice of both pending , complete status orders in pdf.but right prints complete status orders invoice only. how can change it.

this line line 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 1 collects completed order invoices. how can make collect both pending , complete status orders

any appreciated.

thanks

"i want print invoice of both pending , complete status orders"... problem is, if order in pending status means payment pending , logically there can not invoice if payment not cleared.

in order change need change whole magento logic , order state machine!


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -