{% load i18n humanize %}
{% if receipt.itemrecord_set.count %}

Acme Inc.

INVOICE

 
123 Some St. NUMBER:{{ receipt.number }}
Some Town 10117 START DATE: {{ receipt.date }}
+1 514 555-1212 ISSUE DATE: {{ receipt.issued }}
 
TO:
{{ receipt.account }}


{% for detail in details %} {% endfor %}
DESCRIPTIONUNIT PRICEQUANTITYTOTAL
{{detail.description}} ({{detail.chargeType}}) ${{detail.price|stringformat:"01.2f"|intcomma}} {{detail.count|intcomma}} ${{detail.total|stringformat:"01.2f"|intcomma}}
 
TOTAL AMOUNT DUE${{ receipt.total }}


Make all checks payable to Acme Inc.

Thank you for your business!

{% endif %}