Pregunta

On the orders grid, when using the Action Print Invoices, which controller is used to generate the invoices?

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top