mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-24 05:02:05 +00:00
[16.0] add support for COMMERZBANK camt files
This commit is contained in:
parent
b2f2690667
commit
a8d6cf03f8
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "EBICS banking protocol",
|
"name": "EBICS banking protocol",
|
||||||
"version": "16.0.1.6.0",
|
"version": "16.0.1.6.1",
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
"author": "Noviat",
|
"author": "Noviat",
|
||||||
"website": "https://www.noviat.com/",
|
"website": "https://www.noviat.com/",
|
||||||
|
@ -550,6 +550,11 @@ class EbicsFile(models.Model):
|
|||||||
currency_code = stmt.xpath(
|
currency_code = stmt.xpath(
|
||||||
"ns:Acct/ns:Ccy/text() | ns:Bal/ns:Amt/@Ccy", namespaces=ns
|
"ns:Acct/ns:Ccy/text() | ns:Bal/ns:Amt/@Ccy", namespaces=ns
|
||||||
)[0]
|
)[0]
|
||||||
|
# some banks (e.g. COMMERZBANK) add the currency as the last 3 digits
|
||||||
|
# of the bank account number hence we need to remove this since otherwise
|
||||||
|
# the journal matching logic fails
|
||||||
|
if acc_number[-3:] == currency_code:
|
||||||
|
acc_number = acc_number[:-3]
|
||||||
|
|
||||||
root_new = deepcopy(root)
|
root_new = deepcopy(root)
|
||||||
entries = False
|
entries = False
|
||||||
|
Loading…
Reference in New Issue
Block a user