From 63b0fc6269b38edf7234b9f151b80d81f614c0a3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 4 Aug 2015 10:11:24 +0300 Subject: Initial commit First public commit --- servo/templates/orders/print_receipt.html | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 servo/templates/orders/print_receipt.html (limited to 'servo/templates/orders/print_receipt.html') 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 %} + {{ invoice.customer_name }}
+ {% trans "Daytime Phone" %}: {{ invoice.customer_phone|default:"-" }}
+ {% trans "Email Address" %}: {{ invoice.customer_email|default:"-" }} + {% if invoice.customer_address %} +
+ {% trans "Address" %}: {{ invoice.customer_address }} + {% endif %} +{% endblock customer_details %} + +{% block list_products %} +{% for i in invoice.invoiceitem_set.all %} + + {{ i.code }} + {{ i.title }}{% if i.sn %}
{% trans "SN" %}: {{ i.sn }} {% if i.imei %}{% trans "IMEI" %}: {{ i.imei }}{% endif %}{% endif %} + {{ i.product.get_warranty_display|default:"" }} + {{ i.product.pct_vat|floatformat:"0" }}% + {{ i.amount }} + {{ i.price_notax|currency }} + {{ i.price|currency }} + {{ i.total_gross|currency }} + +{% endfor %} +{% endblock list_products %} + +{% block order_total %} + {{ invoice.total_gross|currency }} +{% endblock order_total %} + +{% block customer_pickup %} +

+ {% trans "Date of invoice" %}: {{ invoice.created_at|date:"SHORT_DATE_FORMAT" }}
+ {% trans "Payment method" %}: {{ invoice.get_payment_methods|join:", " }}
+ {% trans "Sales Person" %}: {{ invoice.created_by.get_full_name }}
+

+{% endblock customer_pickup %} + +{% block tos %}{% endblock tos %} -- cgit v1.2.3