diff --git a/l10n_es_account_statement_import_n43/tests/test_l10n_es_account_bank_statement_import_n43.py b/l10n_es_account_statement_import_n43/tests/test_l10n_es_account_bank_statement_import_n43.py index 8db904ce8b9..733d777fbaf 100644 --- a/l10n_es_account_statement_import_n43/tests/test_l10n_es_account_bank_statement_import_n43.py +++ b/l10n_es_account_statement_import_n43/tests/test_l10n_es_account_bank_statement_import_n43.py @@ -97,6 +97,9 @@ def test_import_n43(self): self.assertAlmostEqual(statement.balance_start, 0, 2) self.assertAlmostEqual(statement.balance_end, 101.96, 2) self.assertEqual(statements[0].partner_id, self.partner) + self.assertEqual(statements[0].ref, "000975737917") + self.assertEqual(statements[1].ref, "/") + self.assertEqual(statements[2].ref, "5540014210128010") def test_import_n43_fecha_oper(self): self.journal.n43_date_type = "fecha_oper" diff --git a/l10n_es_account_statement_import_n43/wizards/account_statement_import_n43.py b/l10n_es_account_statement_import_n43/wizards/account_statement_import_n43.py index a55a48e2d55..6264b02b3a6 100644 --- a/l10n_es_account_statement_import_n43/wizards/account_statement_import_n43.py +++ b/l10n_es_account_statement_import_n43/wizards/account_statement_import_n43.py @@ -404,6 +404,7 @@ def _parse_single_file_n43(self, n43): "payment_ref": " ".join(conceptos) or self._get_n43_ref(line) or "/", + "ref": self._get_n43_ref(line), "amount": line["importe"], # inject raw parsed N43 dict for later use, that will be # removed before passing final values to create the record