[FIX]l10n_be_coda Agaplan 661 OpenERP Maintenance

bzr revid: pl@agaplan.eu-20130129143428-l74j4vzt8z8j6ebr
This commit is contained in:
Peter Langenberg 2013-01-29 15:34:28 +01:00
parent 68fa72e826
commit 2ace4972e6
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ class account_coda_import(osv.osv_memory):
elif line[0] == '9':
statement['balanceMin'] = float(rmspaces(line[22:37])) / 1000
statement['balancePlus'] = float(rmspaces(line[37:52])) / 1000
if not statement['balance_end_real']:
if not statement.get('balance_end_real'):
statement['balance_end_real'] = statement['balance_start'] + statement['balancePlus'] - statement['balanceMin']
for i, statement in enumerate(statements):
statement['coda_note'] = ''