Bank transfer: Use less cryptic refund references (fixes #4289) (#5626)

* Bank transfer: Use less cryptic refund references (fixes #4289)

* Add condition back in

* Fix tests
This commit is contained in:
Raphael Michel
2025-11-18 14:52:44 +01:00
committed by GitHub
parent 2669afa1f8
commit 5eade62121
3 changed files with 12 additions and 1 deletions

View File

@@ -674,6 +674,7 @@ def _unite_transaction_rows(transaction_rows):
united_transactions_rows.append({
"iban": iban,
"bic": bic,
"locale": rows[0].get('locale', 'en'),
"id": ", ".join(sorted(set(r['id'] for r in rows))),
"payer": ", ".join(sorted(set(r['payer'] for r in rows))),
"amount": sum(r['amount'] for r in rows),
@@ -726,6 +727,7 @@ class RefundExportListView(ListView):
"amount": refund.amount,
"id": refund.full_id,
"comment": refund.comment,
"locale": refund.order.locale,
**{key: data.get(key) for key in ("payer", "iban", "bic")}
})
refund.done(user=self.request.user)