[FIX] l10n_be_intrastat: skip EXTXVAL=0
An entry with EXTXVAL=0 should not be included in the Intrastat declaration, otherwise it is rejected. opw-686201
This commit is contained in:
parent
f1a331850d
commit
7b93e1dc7b
|
@ -342,8 +342,10 @@ class xml_decl(osv.TransientModel):
|
|||
|
||||
numlgn = 0
|
||||
for linekey in entries:
|
||||
numlgn += 1
|
||||
amounts = entries[linekey]
|
||||
if round(amounts[0], 0) == 0:
|
||||
continue
|
||||
numlgn += 1
|
||||
item = ET.SubElement(datas, 'Item')
|
||||
self._set_Dim(item, 'EXSEQCODE', unicode(numlgn))
|
||||
self._set_Dim(item, 'EXTRF', unicode(linekey.EXTRF))
|
||||
|
|
Loading…
Reference in New Issue