Browse Source

Fill 'ref' with 'name' when 'ref' is empty

pull/143/head
terrence 6 years ago
committed by Tom Blauwendraat
parent
commit
44e6bbb7f8
  1. 2
      account_bank_statement_import_camt/models/parser.py

2
account_bank_statement_import_camt/models/parser.py

@ -75,6 +75,8 @@ class CamtParser(models.AbstractModel):
],
transaction, 'ref'
)
if 'ref' not in transaction and 'name' in transaction:
transaction['ref'] = transaction['name']
amount = self.parse_amount(ns, node)
if amount != 0.0:
transaction['amount'] = amount

Loading…
Cancel
Save