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.

许可以下: CC-BY-SA归因
scroll top