Change order_detail and invoice_detail templates to show VAT number
This commit is contained in:
		
					parent
					
						
							
								cdaf498487
							
						
					
				
			
			
				commit
				
					
						0f3acf5db4
					
				
			
		
					 3 changed files with 10 additions and 0 deletions
				
			
		|  | @ -32,7 +32,11 @@ | ||||||
|                           {{billing_address.cardholder_name}}<br> |                           {{billing_address.cardholder_name}}<br> | ||||||
|                           {{billing_address.street_address}}, {{billing_address.postal_code}}<br> |                           {{billing_address.street_address}}, {{billing_address.postal_code}}<br> | ||||||
|                           {{billing_address.city}}, {{billing_address.country}} |                           {{billing_address.city}}, {{billing_address.country}} | ||||||
|  |                           {% if request.user.vat_number %} | ||||||
|  |                           <br/>{% trans "VAT Number" %} {{request.user.vat_number}} | ||||||
|  |                           {% endif %} | ||||||
|                       {% endwith %} |                       {% endwith %} | ||||||
|  | 
 | ||||||
|                     </p> |                     </p> | ||||||
|                 </address> |                 </address> | ||||||
|             </div> |             </div> | ||||||
|  |  | ||||||
|  | @ -70,6 +70,9 @@ | ||||||
|                     {{invoice.order.billing_address.postal_code}}<br> |                     {{invoice.order.billing_address.postal_code}}<br> | ||||||
|                     {{invoice.order.billing_address.city}}, |                     {{invoice.order.billing_address.city}}, | ||||||
|                     {{invoice.order.billing_address.country}} |                     {{invoice.order.billing_address.country}} | ||||||
|  |                         {% if invoice.customer.user.vat_number %} | ||||||
|  |                             <br/>{% trans "VAT Number" %} {{invoice.customer.user.vat_number}} | ||||||
|  |                         {% endif %} | ||||||
|                     {% endif %} |                     {% endif %} | ||||||
|                 </p> |                 </p> | ||||||
|             </address> |             </address> | ||||||
|  |  | ||||||
|  | @ -67,6 +67,9 @@ | ||||||
|                                 {{billing_address.cardholder_name}}<br> |                                 {{billing_address.cardholder_name}}<br> | ||||||
|                                 {{billing_address.street_address}}, {{billing_address.postal_code}}<br> |                                 {{billing_address.street_address}}, {{billing_address.postal_code}}<br> | ||||||
|                                 {{billing_address.city}}, {{billing_address.country}} |                                 {{billing_address.city}}, {{billing_address.country}} | ||||||
|  |                                 {% if user.vat_number %} | ||||||
|  |                                     <br/>{% trans "VAT Number" %} {{user.vat_number}} | ||||||
|  |                                 {% endif %} | ||||||
|                             {% endwith %} |                             {% endwith %} | ||||||
|                         {% endif %} |                         {% endif %} | ||||||
|                     </p> |                     </p> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue