Yeah it’s me again but I think you’ll be interested to see this. The good news is that I’ve built the customer, the invoice and the payment with the API and that while there’s an error in the invoice builder, it still is being sent correctly to the customer and the customer payment is mark as paid.
Here’s a screenshot :
I’ve created an invoice of 69.65 with 10.43 of taxes for a total of 80.08. I applied a payment of 80.08.
However the invoice builder says there’s an amount due of 1.42??
total = NINJA.parseFloat(total) + roundToTwo(total * (taxRate/100));