Skip to content

Commit

Permalink
Fix mixup of payment method codes for SEPA and non-SEPA
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Jan 31, 2025
1 parent a5bef60 commit fbed4ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pretix_zugferd/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _zugferd_generate_document(self, invoice):
)
if lp and lp.provider == "banktransfer":
if invoice.event.settings.payment_banktransfer_bank_details_type == "sepa":
doc.trade.settlement.payment_means.type_code = "30"
doc.trade.settlement.payment_means.type_code = "58"
doc.trade.settlement.payment_means.payee_account.iban = (
invoice.event.settings.payment_banktransfer_bank_details_sepa_iban
)
Expand All @@ -307,7 +307,7 @@ def _zugferd_generate_document(self, invoice):
)

else:
doc.trade.settlement.payment_means.type_code = "58"
doc.trade.settlement.payment_means.type_code = "30"
elif lp and lp.provider == "sepadebit":
doc.trade.settlement.payment_means.type_code = "59"
doc.trade.settlement.payment_means.payer_account.iban = lp.info_data.get(
Expand Down

0 comments on commit fbed4ed

Please sign in to comment.