From 0f3acf5db435ec0b2dc4d9ea5fa096185db5dfe0 Mon Sep 17 00:00:00 2001 From: PCoder Date: Tue, 17 Dec 2019 22:51:54 +0530 Subject: [PATCH] Change order_detail and invoice_detail templates to show VAT number --- datacenterlight/templates/datacenterlight/order_detail.html | 4 ++++ hosting/templates/hosting/invoice_detail.html | 3 +++ hosting/templates/hosting/order_detail.html | 3 +++ 3 files changed, 10 insertions(+) diff --git a/datacenterlight/templates/datacenterlight/order_detail.html b/datacenterlight/templates/datacenterlight/order_detail.html index bd2edcb2..87ff3bd3 100644 --- a/datacenterlight/templates/datacenterlight/order_detail.html +++ b/datacenterlight/templates/datacenterlight/order_detail.html @@ -32,7 +32,11 @@ {{billing_address.cardholder_name}}
{{billing_address.street_address}}, {{billing_address.postal_code}}
{{billing_address.city}}, {{billing_address.country}} + {% if request.user.vat_number %} +
{% trans "VAT Number" %} {{request.user.vat_number}} + {% endif %} {% endwith %} +

diff --git a/hosting/templates/hosting/invoice_detail.html b/hosting/templates/hosting/invoice_detail.html index 67fa06e4..3463e505 100644 --- a/hosting/templates/hosting/invoice_detail.html +++ b/hosting/templates/hosting/invoice_detail.html @@ -70,6 +70,9 @@ {{invoice.order.billing_address.postal_code}}
{{invoice.order.billing_address.city}}, {{invoice.order.billing_address.country}} + {% if invoice.customer.user.vat_number %} +
{% trans "VAT Number" %} {{invoice.customer.user.vat_number}} + {% endif %} {% endif %}

diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index b725a645..0ce72fa3 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -67,6 +67,9 @@ {{billing_address.cardholder_name}}
{{billing_address.street_address}}, {{billing_address.postal_code}}
{{billing_address.city}}, {{billing_address.country}} + {% if user.vat_number %} +
{% trans "VAT Number" %} {{user.vat_number}} + {% endif %} {% endwith %} {% endif %}