diff --git a/account_bank_statement_import_camt/models/parser.py b/account_bank_statement_import_camt/models/parser.py index 2e0afae..a2155f0 100644 --- a/account_bank_statement_import_camt/models/parser.py +++ b/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