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.
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.
toInvoice
in Magento\Sales\Model\Convert\Order
that's the method where the invoice is created.