diff --git a/templates/invoice-anvil/invoice.html b/templates/invoice-anvil/invoice.html index 3c5b0f68..e5b6dc9b 100644 --- a/templates/invoice-anvil/invoice.html +++ b/templates/invoice-anvil/invoice.html @@ -127,7 +127,7 @@
- {% if user.bank_account %}IBAN: {{ user.bank_account.IBAN }}
{% endif %} + {% if bank_account %}IBAN: {{ bank_account.IBAN }}
{% endif %}
{{ invoice.effective_due_date }} @@ -154,8 +154,8 @@ diff --git a/templates/invoice-bold/invoice.html b/templates/invoice-bold/invoice.html index 0e558eda..602e7836 100644 --- a/templates/invoice-bold/invoice.html +++ b/templates/invoice-bold/invoice.html @@ -101,11 +101,11 @@
{{ l.payment }} - {% if user.bank_account %} + {% if bank_account %} - {% if user.bank_account.name %}{% endif %} - - {% if user.bank_account.BIC %}{% endif %} + {% if bank_account.name %}{% endif %} + + {% if bank_account.BIC %}{% endif %}
{{ l.account_holder }}{{ user.bank_account.name }}
IBAN{{ user.bank_account.IBAN }}
BIC{{ user.bank_account.BIC }}
{{ l.account_holder }}{{ bank_account.name }}
IBAN{{ bank_account.IBAN }}
BIC{{ bank_account.BIC }}
{% endif %}
@@ -149,8 +149,8 @@ diff --git a/templates/invoice-classic/invoice.html b/templates/invoice-classic/invoice.html index ffe8f068..8b426e75 100644 --- a/templates/invoice-classic/invoice.html +++ b/templates/invoice-classic/invoice.html @@ -93,8 +93,8 @@
Payment Details
- {% if user.bank_account %}IBAN: {{ user.bank_account.IBAN }} - {% if user.bank_account.BIC %}
BIC: {{ user.bank_account.BIC }}{% endif %}{% endif %} + {% if bank_account %}IBAN: {{ bank_account.IBAN }} + {% if bank_account.BIC %}
BIC: {{ bank_account.BIC }}{% endif %}{% endif %}
@@ -134,8 +134,8 @@ diff --git a/templates/invoice-grayshades/invoice.html b/templates/invoice-grayshades/invoice.html index 3e7af288..aeeed078 100644 --- a/templates/invoice-grayshades/invoice.html +++ b/templates/invoice-grayshades/invoice.html @@ -130,9 +130,9 @@

{{ l.invoice_no }} {{ invoice.number }}

{{ user.name }}