Hello Team, I found that NetSuite calculates inco...
# suitetalkapi
a
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?
@battk could you help me with this question?
b
do the usual, make the customer payment you want in the ui, then get it using soap to see what it should look like
a
I created a payment with the same data in NetSuite and the applied discount is correct
But via API the incorrect result
b
do the get, see what it should look like so you can copy it in your request