mirror of
https://github.com/brain-tec/account_ebics.git
synced 2026-04-26 07:36:51 +00:00
[FIX] ebics download: execute always client.confirm_download()
Certain banks expect always a confirm_download, also in case of success=False.
This commit is contained in:
@@ -236,8 +236,8 @@ class EbicsXfer(models.TransientModel):
|
|||||||
date_from = self.date_from and self.date_from.isoformat() or None
|
date_from = self.date_from and self.date_from.isoformat() or None
|
||||||
date_to = self.date_to and self.date_to.isoformat() or None
|
date_to = self.date_to and self.date_to.isoformat() or None
|
||||||
for df in download_formats:
|
for df in download_formats:
|
||||||
try:
|
|
||||||
success = False
|
success = False
|
||||||
|
try:
|
||||||
if df.order_type == "BTD":
|
if df.order_type == "BTD":
|
||||||
btf = BusinessTransactionFormat(
|
btf = BusinessTransactionFormat(
|
||||||
df.btf_service,
|
df.btf_service,
|
||||||
@@ -321,7 +321,7 @@ class EbicsXfer(models.TransientModel):
|
|||||||
)
|
)
|
||||||
tb = "".join(format_exception(*exc_info()))
|
tb = "".join(format_exception(*exc_info()))
|
||||||
self.note += f"\n{tb}"
|
self.note += f"\n{tb}"
|
||||||
else:
|
finally:
|
||||||
# mark received data so that it is not included in further
|
# mark received data so that it is not included in further
|
||||||
# downloads
|
# downloads
|
||||||
trans_id = client.last_trans_id
|
trans_id = client.last_trans_id
|
||||||
|
|||||||
Reference in New Issue
Block a user