Hello,
This is a general FYI. I have found that the SOInvoice.PaymentAmt field is calculating the total balance of the SO Invoice, rather than the Payment Total applied to the invoice. I created a scenario in my local environment shown below.



The SOInvoice.PaymentAmt and SOInvoice.CuryPaymentAmt should both be 100.00 to reflect the payment amount applied.