mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
* Bank transfer: Use less cryptic refund references (fixes #4289) * Add condition back in * Fix tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user