Active
Project:
Invoice
Version:
6.x-1.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
6 Nov 2013 at 10:39 UTC
Updated:
6 Nov 2013 at 10:39 UTC
Had a rounding problem with vattotals by summing up "21 Units a € 6,50 (ex vat)" and "22 Units a € 6,50". Vat 19%. Invoice calculates correctly but does not round correctly the vattotal. So the invoice is incorrect.
Problem occurs with all releases.
Found for me a way to solve the problem by changing the code of "invoice.module" line 273 from
$a_vattotals[$key]['formatted_vattotal'] = _invoice_format_money($total['vattotal'], 2);
to
$a_vattotals[$key]['formatted_vattotal'] = _invoice_round_and_format_money($total['vattotal'], 2);