[FIX] l10n_be: adapted l10n_be_account_vat_declaration.py in order to stay compliant with old Chart of Tax Code

bzr revid: qdp-launchpad@openerp.com-20110505144942-6yxcxzho08rtzupp
This commit is contained in:
Quentin (OpenERP)
2011-05-05 16:49:42 +02:00
parent fc60bd9cd2
commit 673aa36a70
@@ -7,7 +7,7 @@
# Adapted by Noviat to
# - enforce correct vat number
# - support negative balance
# - support Noviat tax code scheme
# - assign amount of tax code 71-72 correclty to grid 71 or 72
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -109,7 +109,7 @@ class l10n_be_vat_declaration(osv.osv_memory):
#the tax code 91 can only be send for the declaration of December
continue
if item['code']:
if item['code'] == 'VI':
if item['code'] == '71-72':
if item['sum_period'] >= 0:
item['code'] = '71'
else: