[FIX] exception when no suitable period found

This commit is contained in:
Pieter J. Kersten
2010-01-29 11:28:00 +01:00
parent 62b6c4f96b
commit 8cdbd4028e

View File

@@ -385,6 +385,9 @@ def _banking_import_statements_file(self, cursor, uid, data, context):
period_id = get_period(pool, cursor, uid,
transaction.effective_date, company,
log)
if not period_id:
no_trans_skipped += 1
continue
# Credit means payment... isn't it?
if transaction.transferred_amount < 0 and payment_lines: