{% if tab == 'yesterday' %}
{% trans "Yesterday Sales" %} — {{ yesterday }}
{% trans "Total" %}: {{ yesterday_total }} {{ biz.currency|currency_label }}
| {% trans "Date" %} |
{% trans "Account" %} |
{% trans "Category" %} |
{% trans "Amount" %} |
{% trans "Note" %} |
{% for t in yesterday_sales %}
| {{ t.date }} |
{{ t.account.name }} |
{% if t.category %}{{ t.category.name }}{% endif %} |
{{ t.amount }} {{ t.currency|currency_label }} |
{{ t.description }} |
{% empty %}
| {% trans "No sales yesterday." %} |
{% endfor %}
{% elif tab == 'customer' %}
{% trans "Customer Statement" %}{% if customer %} — {{ customer.name }}{% endif %} — {{ start|date:'Y-m-d' }} {% trans "to" %} {{ end|date:'Y-m-d' }}
{% if customer %}
{% trans "Total In" %}: {{ customer_in_total }} {{ biz.currency|currency_label }}
{% trans "Total Out" %}: {{ customer_out_total }} {{ biz.currency|currency_label }}
{% trans "Receivable" %}: {{ customer_receivable }} {{ biz.currency|currency_label }}
| {% trans "Date" %} |
{% trans "Type" %} |
{% trans "Account" %} |
{% trans "Category" %} |
{% trans "Amount" %} |
{% trans "Note" %} |
{% for t in customer_qs %}
| {{ t.date }} |
{{ t.get_ttype_display }} |
{{ t.account.name }} |
{% if t.category %}{{ t.category.name }}{% endif %} |
{{ t.amount }} {{ t.currency|currency_label }} |
{{ t.description }} |
{% empty %}
| {% trans "No transactions for this customer in range." %} |
{% endfor %}
{% endif %}
{% elif tab == 'supplier' %}
{% trans "Supplier Statement" %}{% if supplier %} — {{ supplier.name }}{% endif %} — {{ start|date:'Y-m-d' }} {% trans "to" %} {{ end|date:'Y-m-d' }}
{% if supplier %}
{% trans "Total In" %}: {{ supplier_in_total }} {{ biz.currency|currency_label }}
{% trans "Total Out" %}: {{ supplier_out_total }} {{ biz.currency|currency_label }}
{% trans "Payable" %}: {{ supplier_payable }} {{ biz.currency|currency_label }}
| {% trans "Date" %} |
{% trans "Type" %} |
{% trans "Account" %} |
{% trans "Category" %} |
{% trans "Amount" %} |
{% trans "Note" %} |
{% for t in supplier_qs %}
| {{ t.date }} |
{{ t.get_ttype_display }} |
{{ t.account.name }} |
{% if t.category %}{{ t.category.name }}{% endif %} |
{{ t.amount }} {{ t.currency|currency_label }} |
{{ t.description }} |
{% empty %}
| {% trans "No transactions for this supplier in range." %} |
{% endfor %}
{% endif %}
{% else %}
{% trans "Profit & Loss" %} — {{ start|date:'Y-m-d' }} {% trans "to" %} {{ end|date:'Y-m-d' }}
{% trans "Income by Category" %}
{% for row in pl_income_rows %}
| {{ row.category__name }} | {{ row.total }} {{ biz.currency|currency_label }} |
{% empty %}
| {% trans "No income in range." %} |
{% endfor %}
{% trans "Expense by Category" %}
{% for row in pl_expense_rows %}
| {{ row.category__name }} | {{ row.total }} {{ biz.currency|currency_label }} |
{% empty %}
| {% trans "No expense in range." %} |
{% endfor %}
{% trans "Net" %}
{{ net }} {{ biz.currency|currency_label }}
{% endif %}