This commit is contained in:
Raphael Michel
2017-08-08 22:24:53 +02:00
parent c8230c55ee
commit a6c9fb0f8b
6 changed files with 23 additions and 31 deletions

View File

@@ -1,4 +1,5 @@
import json
import re
from collections import OrderedDict
from django.template.loader import get_template
@@ -46,7 +47,7 @@ class BankTransfer(BasePaymentProvider):
ctx = {
'event': self.event,
'order': order,
'details': self.settings.get('bank_details', as_type=LazyI18nString),
'details': re.sub('^', ' ', self.settings.get('bank_details', as_type=LazyI18nString), flags=re.MULTILINE),
}
return template.render(ctx)

View File

@@ -1,8 +1,7 @@
{% load i18n %}{% load l10n %}{% blocktrans with bank=details code=order.full_code total=order.total|localize currency=event.currency %}
Please transfer the full amount to the following bank account.
```
Reference: {{ code }}
Amount: {{ total }} {{ currency }}
Reference: {{ code }}
Amount: {{ total }} {{ currency }}
{{ bank }}
```{% endblocktrans %}
{% endblocktrans %}