diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-08-04 10:11:24 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-08-04 10:11:24 +0300 |
commit | 63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch) | |
tree | 555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/orders/print_receipt.html | |
download | Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2 Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip |
Initial commit
First public commit
Diffstat (limited to 'servo/templates/orders/print_receipt.html')
-rwxr-xr-x | servo/templates/orders/print_receipt.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/servo/templates/orders/print_receipt.html b/servo/templates/orders/print_receipt.html new file mode 100755 index 0000000..c4de827 --- /dev/null +++ b/servo/templates/orders/print_receipt.html @@ -0,0 +1,46 @@ +{% extends "orders/print_confirmation.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block title %} + {% blocktrans with invoice.pk as number %}Receipt {{ number }}{% endblocktrans %} +{% endblock title %} + +{% block customer_details %} + <strong>{{ invoice.customer_name }}</strong><br/> + {% trans "Daytime Phone" %}: {{ invoice.customer_phone|default:"-" }}<br/> + {% trans "Email Address" %}: {{ invoice.customer_email|default:"-" }} + {% if invoice.customer_address %} + <br/> + {% trans "Address" %}: {{ invoice.customer_address }} + {% endif %} +{% endblock customer_details %} + +{% block list_products %} +{% for i in invoice.invoiceitem_set.all %} + <tr> + <td style="width:80px">{{ i.code }}</td> + <td>{{ i.title }}{% if i.sn %}<br/><span class="muted">{% trans "SN" %}: {{ i.sn }} {% if i.imei %}{% trans "IMEI" %}: {{ i.imei }}{% endif %}{% endif %}</span></td> + <td>{{ i.product.get_warranty_display|default:"" }}</td> + <td>{{ i.product.pct_vat|floatformat:"0" }}%</td> + <td>{{ i.amount }}</td> + <td>{{ i.price_notax|currency }}</td> + <td>{{ i.price|currency }}</td> + <td>{{ i.total_gross|currency }}</td> + </tr> +{% endfor %} +{% endblock list_products %} + +{% block order_total %} + {{ invoice.total_gross|currency }} +{% endblock order_total %} + +{% block customer_pickup %} +<p class="text-right"> + <strong>{% trans "Date of invoice" %}: {{ invoice.created_at|date:"SHORT_DATE_FORMAT" }}</strong><br/> + <strong>{% trans "Payment method" %}: {{ invoice.get_payment_methods|join:", " }}</strong><br/> + <strong>{% trans "Sales Person" %}: {{ invoice.created_by.get_full_name }}</strong><br/> +</p> +{% endblock customer_pickup %} + +{% block tos %}{% endblock tos %} |