Hi All,
I'm working on a requirement, where I need to write a couple of new plugins which need to be triggered on the below:
The question I had was, which message do I need to register these on and for which entity ?
1) Plugin which should run when a new Invoice product line is added to an existing Invoice --> Should I register this on create of Invoicedetail(invoice Product) OR on Update of Invoice entity ?
2) Plugin which should run when a field on an existing Invoicedetail(Invoice Product) entity like quantity, amount etc is updated --> I believe I should register this on update of Invoicedetail entity ?
Can you please advise on the above, as always your help is highly appreciated.
Thanks !!