Event for before invoice creation magento 2
-
20-02-2021 - |
Question
Do we have any event for invoice before create?
When we click on invoice and about to submit the form , do we have any event there?
Want to do some modification before creating invoice.
Solution
You can use sales_order_invoice_register
that is right after the invoice has been created and before the first save in the database.
This event is also triggered if invoices are created automatically.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange