From 7acf2e5acd9b1b95a72254dc797d962868356749 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Wed, 1 Jun 2016 12:49:51 +0200 Subject: [PATCH] add danish bank account --- bornhack/settings/env.dist | 2 ++ shop/templates/bank_transfer.html | 4 ++-- shop/views.py | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bornhack/settings/env.dist b/bornhack/settings/env.dist index e924a397..262086a7 100644 --- a/bornhack/settings/env.dist +++ b/bornhack/settings/env.dist @@ -18,4 +18,6 @@ PDF_LETTERHEAD_FILENAME='' MEDIA_ROOT='' BANKACCOUNT_IBAN='' BANKACCOUNT_SWIFTBIC='' +BANKACCOUNT_REG='' +BANKACCOUNT_ACCOUNT='' diff --git a/shop/templates/bank_transfer.html b/shop/templates/bank_transfer.html index c7632c1b..ef88349f 100644 --- a/shop/templates/bank_transfer.html +++ b/shop/templates/bank_transfer.html @@ -9,8 +9,8 @@ of the full amount of {{ total|currency }} using the following information:

diff --git a/shop/views.py b/shop/views.py index 4cc6e3fb..44d90265 100644 --- a/shop/views.py +++ b/shop/views.py @@ -406,6 +406,8 @@ class BankTransferView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureUnpai context['iban'] = settings.BANKACCOUNT_IBAN context['swiftbic'] = settings.BANKACCOUNT_SWIFTBIC context['orderid'] = self.get_object().pk + context['regno'] = settings.BANKACCOUNT_REG + context['accountno'] = settings.BANKACCOUNT_ACCOUNT context['total'] = self.get_object().total return context