Change order_detail and invoice_detail templates to show VAT number

This commit is contained in:
PCoder 2019-12-17 22:51:54 +05:30
parent cdaf498487
commit 0f3acf5db4
3 changed files with 10 additions and 0 deletions

View File

@ -32,7 +32,11 @@
{{billing_address.cardholder_name}}<br>
{{billing_address.street_address}}, {{billing_address.postal_code}}<br>
{{billing_address.city}}, {{billing_address.country}}
{% if request.user.vat_number %}
<br/>{% trans "VAT Number" %} {{request.user.vat_number}}
{% endif %}
{% endwith %}
</p>
</address>
</div>

View File

@ -70,6 +70,9 @@
{{invoice.order.billing_address.postal_code}}<br>
{{invoice.order.billing_address.city}},
{{invoice.order.billing_address.country}}
{% if invoice.customer.user.vat_number %}
<br/>{% trans "VAT Number" %} {{invoice.customer.user.vat_number}}
{% endif %}
{% endif %}
</p>
</address>

View File

@ -67,6 +67,9 @@
{{billing_address.cardholder_name}}<br>
{{billing_address.street_address}}, {{billing_address.postal_code}}<br>
{{billing_address.city}}, {{billing_address.country}}
{% if user.vat_number %}
<br/>{% trans "VAT Number" %} {{user.vat_number}}
{% endif %}
{% endwith %}
{% endif %}
</p>