mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Format amount in GiroCode/EPC-QR with dot instead of locale
This commit is contained in:
@@ -19,7 +19,7 @@ class BankTransferApp(AppConfig):
|
||||
def ready(self):
|
||||
from . import signals # NOQA
|
||||
from . import tasks # NOQA
|
||||
from .templatetags import commadecimal # NOQA
|
||||
from .templatetags import commadecimal, dotdecimal # NOQA
|
||||
|
||||
@cached_property
|
||||
def compatibility_warnings(self):
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load commadecimal %}
|
||||
{% load dotdecimal %}
|
||||
{% load ibanformat %}
|
||||
{% load money %}
|
||||
|
||||
@@ -44,7 +45,7 @@ SCT
|
||||
{{ settings.bank_details_sepa_bic }}
|
||||
{{ settings.bank_details_sepa_name }}
|
||||
{{ settings.bank_details_sepa_iban }}
|
||||
{{ event.currency }}{{ amount|floatformat:2 }}
|
||||
{{ event.currency }}{{ amount|dotdecimal }}
|
||||
|
||||
|
||||
{{ code }}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
from django import template
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@register.filter
|
||||
def dotdecimal(value):
|
||||
return str(value).replace(",", ".")
|
||||
Reference in New Issue
Block a user