Our Finance team is asking us to modify the calculation of the early payment discount in AR Invoice. They don’t want tax included in the discount calculation.
I added an ‘In-Transaction Data Directive’ on InvcHead to update the PayDiscAmt and DocPayDiscAmt when the invoice is created, which works for reporting, only to find out that the discount is again recalculated when they select the invoices in Cash Receipt entry.
I am now thinking of adding a ‘Post Processing Method Directive’ on ‘Erp.BO.CashRec.OnChangedInvcSelectedWithInvoiceNum’ (this is called when an invoice is selected) to recalculate the “Discount” and “Cash Applied”.
Is this a good approach or will there be some fields that won’t get updated if I do it this way? (I noticed if you manually override the Discount, there are two additional methods that are called - OnChangingDiscount and OnChangedDiscount)
