[FIX] l10n_be: Belgian VAT declaration file generated by OpenERP not accepted by VAT web site as the amount in it may, all the time, not have 2 digits after decimal point. (Maintenance Case: 592464) Courtesy: Wim Audenaert
bzr revid: rgo@tinyerp.com-20130510110145-mk2gj7br772br795
This commit is contained in:
parent
8002028c17
commit
b5f14d797e
|
@ -185,7 +185,7 @@ class l10n_be_vat_declaration(osv.osv_memory):
|
|||
for item in cases_list:
|
||||
grid_amount_data = {
|
||||
'code': str(int(item['code'])),
|
||||
'amount': str(abs(item['sum_period'])),
|
||||
'amount': '%.2f' % abs(item['sum_period']),
|
||||
}
|
||||
data_of_file += '\n\t\t\t<ns2:Amount GridNumber="%(code)s">%(amount)s</ns2:Amount''>' % (grid_amount_data)
|
||||
|
||||
|
|
Loading…
Reference in New Issue