[IMP] account_statement_import_online_ponto_credit_cooperatif: do not duplicate refs
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m33s

This commit is contained in:
2026-05-04 17:50:03 +02:00
parent 45341d629c
commit 3be634d864

View File

@@ -32,13 +32,13 @@ class OnlineBankStatementProvider(models.Model):
ref_operation = self._extract_detail(
details, "Référence de l'opération"
)
if ref_operation:
if ref_operation and ref_operation != vals_line["payment_ref"]:
vals_line["payment_ref"] = (
f"{vals_line['payment_ref']} {ref_operation}"
)
operation_reason = self._extract_detail(details, "Motif de l'opération")
if operation_reason:
if operation_reason and operation_reason != vals_line["ref"]:
vals_line["ref"] = f"{vals_line['ref']} {operation_reason}"
if "partner_name" not in vals_line: