Which controller is used when bulk printing invoices? (Magento1.9)
-
07-01-2021 - |
题
On the orders grid, when using the Action Print Invoices
, which controller is used to generate the invoices?
解决方案
You can see by the source code that the called path is admin/sales_invoice/pdfinvoices.
So you can look for a pdfinvoicesAction
function inside the code: you will find two, one for each of this files:
app/code/core/Mage/Adminhtml/Controller/Sales/Invoice.php
app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php
For the admin router, the file you're looking for (admin/sales_invoice
) is: app/code/core/Mage/Adminhtml/controllers/Sales/InvoiceController.php, that extends the first file.