{% load static humanize %} {% block doc_title %}Document{% endblock %}
{{ brand.company_name }}
{{ brand.address_line1 }}
{{ brand.address_line2 }}
{{ brand.email }} • {{ brand.phone }}
{% if logo_data_uri %} {% endif %}
{% block doc_type %}DOCUMENT{% endblock %}
{% block doc_number %}{% endblock %}
{% block doc_dates %}{% endblock %}
{% block addresses %}
Bill To
{% if bill_to %} {{ bill_to.name }}
{# Lines come from _postal_lines(); empty ones are dropped there. #} {% for line in bill_to.lines %}{{ line }}
{% endfor %} {% if bill_to.email %}{{ bill_to.email }}
{% endif %} {% if bill_to.phone %}{{ bill_to.phone }}{% endif %} {% endif %}
Ship To
{% if ship_to %} {{ ship_to.name }}
{% for line in ship_to.lines %}{{ line }}{% if not forloop.last %}
{% endif %}{% endfor %} {% endif %}
Order Details
{% block order_details %}{% endblock %}
{% endblock %}
{% for item in line_items %} {% endfor %}
Item Description Qty Unit Price Total
{{ item.sku }} {{ item.description }} {{ item.quantity|floatformat:0 }} ${{ item.unit_price|floatformat:2|intcomma }} ${{ item.line_total|floatformat:2|intcomma }}
Subtotal${{ totals.subtotal|floatformat:2|intcomma }}
{% if totals.discount and totals.discount > 0 %}
Discount−${{ totals.discount|floatformat:2|intcomma }}
{% endif %}
Shipping & Handling${{ totals.shipping|floatformat:2|intcomma }}
Tax${{ totals.tax|floatformat:2|intcomma }}
Total${{ totals.grand_total|floatformat:2|intcomma }}
{% block totals_extra %}{% endblock %}
{% block status_banner %}{% endblock %} {% block payment_section %}{% endblock %}