[FIX] l10n_be: Intracom VAT Declaration, fix amount precision, courtesy of Peter Langenberg
lp bug: https://launchpad.net/bugs/1157173 fixed bzr revid: mat@openerp.com-20130726120439-ht316ko3hs2u3l76
This commit is contained in:
commit
fc8ec438a6
|
@ -202,11 +202,11 @@ class partner_vat_intra(osv.osv_memory):
|
|||
'vatnum': row['vat'][2:].replace(' ','').upper(),
|
||||
'vat': row['vat'],
|
||||
'country': row['vat'][:2],
|
||||
'amount': amt,
|
||||
'amount': '%.2f' % amt,
|
||||
'intra_code': row['intra_code'],
|
||||
'code': intra_code})
|
||||
|
||||
xmldict.update({'dnum': dnum, 'clientnbr': str(seq), 'amountsum': amount_sum, 'partner_wo_vat': p_count})
|
||||
xmldict.update({'dnum': dnum, 'clientnbr': str(seq), 'amountsum': '%.2f' % amount_sum, 'partner_wo_vat': p_count})
|
||||
return xmldict
|
||||
|
||||
def create_xml(self, cursor, user, ids, context=None):
|
||||
|
|
Loading…
Reference in New Issue