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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -