Timka Piric Muratovic
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
account_bank_statement_import_camt_oca/models/parser.py
-
account_bank_statement_import_camt_oca/test_files/golden-camt053-txdtls.pydata
|
|
@ -56,6 +56,7 @@ class CamtParser(models.AbstractModel): |
|
|
|
# message |
|
|
|
self.add_value_from_node( |
|
|
|
ns, node, [ |
|
|
|
'./ns:RmtInf/ns:Strd/ns:CdtrRefInf/ns:Ref', |
|
|
|
'./ns:RmtInf/ns:Ustrd|./ns:RtrInf/ns:AddtlInf', |
|
|
|
'./ns:AddtlNtryInf', |
|
|
|
'./ns:Refs/ns:InstrId', |
|
|
|
|
|
@ -7,12 +7,12 @@ |
|
|
|
'transactions': [{'account_number': 'CH2222000000123456789', |
|
|
|
'amount': 2187.0, |
|
|
|
'date': '2017-03-22', |
|
|
|
'name': 'CRÉDIT GROUPÉ BVR TRAITEMENT DU 22.03.2017 NUMÉRO CLIENT 01-70884-3 PAQUET ID: 123456CHCAFEBABE', |
|
|
|
'name': '302388292000011111111111111', |
|
|
|
'partner_name': 'Banque Cantonale Vaudoise', |
|
|
|
'ref': '302388292000011111111111111'}, |
|
|
|
{'account_number': 'CH3333000000123456789', |
|
|
|
'amount': 1296.0, |
|
|
|
'date': '2017-03-22', |
|
|
|
'name': 'CRÉDIT GROUPÉ BVR TRAITEMENT DU 22.03.2017 NUMÉRO CLIENT 01-70884-3 PAQUET ID: 123456CHCAFEBABE', |
|
|
|
'name': '302388292000022222222222222', |
|
|
|
'partner_name': 'Banque Cantonale Vaudoise', |
|
|
|
'ref': '302388292000022222222222222'}]}]) |