Use invoice's username and email

This commit is contained in:
PCoder 2019-04-04 07:46:28 +02:00
parent bb7107fe80
commit 316646465d
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@
<h4>{% trans "Billed to" %}:</h4>
<p>
{% if invoice.order %}
{{user.name}}<br>
{{invoice.customer.user.name}}<br>
{{invoice.order.billing_address.street_address}},
{{invoice.order.billing_address.postal_code}}<br>
{{invoice.order.billing_address.city}},
@ -81,7 +81,7 @@
{% if invoice.order %}
{{invoice.order.cc_brand}} {% trans "ending in" %} ****
{{invoice.order.last4}}<br>
{{user.email}}
{{invoice.customer.user.email}}
{% endif %}
</p>
</div>