I'm looking for a way to add custom logic to invoice adjustments. For example, when I add an adjustment (with an "increase" amount) in the back office I need to make an API call to our external payment provider and update the order in their system. The same applies for "decrease" amounts.
I've tried hooking into the Invoice_Saved/Saving events, but the problem is that I can't determine whether an adjustment was added or removed (or simply unchanged) based on the invoice itself.
Custom logic for invoice adjustments
Hi,
I'm looking for a way to add custom logic to invoice adjustments. For example, when I add an adjustment (with an "increase" amount) in the back office I need to make an API call to our external payment provider and update the order in their system. The same applies for "decrease" amounts.
I've tried hooking into the Invoice_Saved/Saving events, but the problem is that I can't determine whether an adjustment was added or removed (or simply unchanged) based on the invoice itself.
is working on a reply...