Hello Team,
I found that NetSuite calculates incorrectly the Invoice discount when I allocate the payment to an Invoice via API.
Example:
I create a request to pay the Invoice by payment.
Input data:
The invoice amount is $500
The payment amount is $400
As you see, I apply to Invoice $100. And the discount is $200.
NetSuite applied a discount of $100 instead of $200.
I expected that NetSuite will apply a discount $200 and the Invoice Amount Due will be $200 instead $300.
What is the reason of this strange calculation?
Could you please explain?