Make VAT number a part of billing address

This commit is contained in:
PCoder 2019-12-21 08:43:34 +05:30
commit f566aa8a2e
8 changed files with 11 additions and 32 deletions

View file

@ -70,8 +70,8 @@
{{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}}
{% if invoice.order.billing_address.vat_number %}
<br/>{% trans "VAT Number" %} {{invoice.order.billing_address.vat_number}}
{% endif %}
{% endif %}
</p>

View file

@ -67,8 +67,8 @@
{{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}}
{% if billing_address.vat_number %}
<br/>{% trans "VAT Number" %} {{billing_address.vat_number}}
{% endif %}
{% endwith %}
{% endif %}