{% extends 'base.html' %} {% load static humanize %} {% block content %}
| Date | {{ expense.date|date:"M d, Y" }} |
|---|---|
| Category | {{ expense.category }} |
| Payment Method | {{ expense.get_payment_method_display|default:"-" }} |
| Reference | {{ expense.reference }} |
| Supplier | {{ expense.supplier.name }} |
| Description | {{ expense.description|linebreaksbr|default:"-" }} |
| Subtotal | ${{ expense.subtotal|floatformat:2|intcomma }} |
|---|---|
| Tax ({{ expense.tax_rate }}%) | ${{ expense.tax_amount|floatformat:2|intcomma }} |
| Total | ${{ expense.total_amount|floatformat:2|intcomma }} |
| Payment Date | {{ expense.payment_date|date:"M d, Y" }} |
| Payment Reference | {{ expense.payment_reference }} |
| # | Description | Quantity | Unit Price | Amount |
|---|---|---|---|---|
| {{ forloop.counter }} |
{{ item.description }}
{% if item.notes %}
{{ item.notes }}
{% endif %}
|
{{ item.quantity|floatformat:2|intcomma }} {{ item.unit|default:'' }} | ${{ item.unit_price|floatformat:2|intcomma }} | ${{ item.amount|floatformat:2|intcomma }} |
| No items found. | ||||
| Subtotal: | ${{ expense.subtotal|floatformat:2|intcomma }} | |||
| Tax ({{ expense.tax_rate }}%): | ${{ expense.tax_amount|floatformat:2|intcomma }} | |||
| Total: | ${{ expense.total_amount|floatformat:2|intcomma }} | |||