Browse Source

Fallback to ISP name if shortname is not defined.

opi 9 years ago
parent
commit
8778fa820b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      coin/billing/templates/billing/payment_howto.html

+ 2 - 2
coin/billing/templates/billing/payment_howto.html

@@ -5,7 +5,7 @@
 </p>
 <p>
     <strong>Virement</strong><br />
-    Titulaire du compte : {{ branding.shortname }}<br/>
+    Titulaire du compte : {% if branding.shortname %}{{ branding.shortname }}{% else %}{{ branding.name }}{% endif %}<br/>
     IBAN : {{ branding.bankinfo.iban|pretty_iban }}<br />
 
     {% if branding.bankinfo.bic %}
@@ -19,7 +19,7 @@
     <strong>Chèque</strong><br />
     {% with address=branding.registeredoffice %}
     Paiement par chèque à l'ordre de "{{ branding.bankinfo.check_order }}" envoyé à l'adresse : <br />
-    {{ branding.shortname }}<br />
+    {% if branding.shortname %}{{ branding.shortname }}{% else %}{{ branding.name }}{% endif %}<br />
     {% if address.extended_address %}
     {{ address.extended_address }}<br />
     {% endif %}