Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • William Zhang 39 posts 243 karma points
    Sep 13, 2016 @ 18:27
    William Zhang
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft