[FIX] l10n_be: vat declaration: the tax code 91 can only be send for the declaration of December

bzr revid: ach@tinyerp.com-20100624104225-14w73gpdj3j8quoe
This commit is contained in:
Quentin De Paoli 2010-06-24 16:12:25 +05:30 committed by Anup (OpenERP)
parent c0016dada4
commit ab6882dc3c
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ class l10n_be_vat_declaration(osv.osv_memory):
data_of_file +='\n\t\t<DATA>\n\t\t\t<DATA_ELEM>'
for item in tax_info:
if item['code'] == '91' and ending_month != 12:
#the tax code 91 can only be send for the declaration of December
continue
if item['code']:
if item['code'] == '71-72':
item['code']='71'