Skip to content

Commit

Permalink
[FIX] l10n_be_intrastat: skip EXTXVAL=0
Browse files Browse the repository at this point in the history
An entry with EXTXVAL=0 should not be included in the Intrastat
declaration, otherwise it is rejected.

opw-686201
  • Loading branch information
nim-odoo committed Aug 31, 2016
1 parent f1a3318 commit 7b93e1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/l10n_be_intrastat/wizard/xml_decl.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,10 @@ def _get_lines(self, cr, uid, ids, decl_datas, company, dispatchmode=False,

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))
Expand Down

0 comments on commit 7b93e1d

Please sign in to comment.