1

I recently started using the Invoice module. Everything seemed to work until the moment I was going to make some test invoices.

The total amount is wrong (see figure): 306.81 + 64.43 = 371.24, but on the invoice 371.25. Anyone have any idea how I can fix this?

enter image description here

It does show well in the back-end: The sum from there looks simple? 371.25 - 306.81 = 64.44, this is the only correct result (see figure).

enter image description here

1 Answer 1

1

It is not a mistake. That moduo do rounding. See the photo:

Subtotal: 134.50 VAT: 25.55 Total: 160.06

So, the real value of VAT is 134.50*0.19=25.555 and real total is 160.055 but for invoices you need to do rounding at two decimal places. And you get total 160.06.

enter image description here

2
  • You can't send an invoice to a customer with a difference in the subtotal + vat and the total amount in my opinion. Is there a way to fix it? In your example: 134.50 + 25.55 = 160.05, it's rounded to two decimals. Right? Your total amount shows 160.06? 134.50 * 0.19 = 25.555 > should be 25.56 instead of 25.55, right?
    – honline
    Commented Jan 20, 2016 at 21:43
  • Yes there is a way to fix that, you need to hack moduo and change a way for rounding. This moduo rounding only total, he don't rounding VAT. So one way to fix is to rounding VAT, and total is only simple addition(subtotal + vat). In Serbia this is OK and in accordance with the law.
    – SakaSerbia
    Commented Jan 20, 2016 at 23:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.