{% 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 %}
{% 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 }}