{# ═══════════════════════════════════════════════════════════════════ #}
{# TAB: SALE #}
{# ═══════════════════════════════════════════════════════════════════ #}
{% for sub_key, sub in sale_tabs.items %}
| Item Name |
Qty |
Sale Amount |
COGS |
Profit |
Margin % |
{% for i in sub.items %}
| {{ i.name }} |
{{ i.qty }} |
{{ i.sale_amt|floatformat:2 }} |
{{ i.cogs|floatformat:2 }} |
{{ i.profit|floatformat:2 }} |
{{ i.margin|floatformat:2 }}% |
{% empty %}
| No items |
{% endfor %}
| Flat Discount (−) |
{{ sub.overheads.discount|floatformat:2 }} |
| Transport Charges (+) |
{{ sub.overheads.transport|floatformat:2 }} |
| Other Charges (+) |
{{ sub.overheads.other|floatformat:2 }} |
| Advance Tax (−) |
{{ sub.overheads.adv_tax|floatformat:2 }} |
| Invoice # |
Date |
Bill Amount |
COGS |
Profit |
{% for b in sub.bills %}
| {{ b.inv }} |
{{ b.date }} |
{{ b.amount|floatformat:2 }} |
{{ b.cogs|floatformat:2 }} |
{{ b.profit|floatformat:2 }} |
{% empty %}
| No bills |
{% endfor %}
{% endfor %}
Total Sale Profit:
{{ grand.sale_profit|floatformat:2 }}
{# ═══════════════════════════════════════════════════════════════════ #}
{# TAB: RETURN #}
{# ═══════════════════════════════════════════════════════════════════ #}
{% for sub_key, sub in return_tabs.items %}
| Item Name |
Qty |
Return Amount |
COGS |
Profit |
Margin % |
{% for i in sub.items %}
| {{ i.name }} |
{{ i.qty }} |
{{ i.sale_amt|floatformat:2 }} |
{{ i.cogs|floatformat:2 }} |
{{ i.profit|floatformat:2 }} |
{{ i.margin|floatformat:2 }}% |
{% empty %}
| No return items |
{% endfor %}
| Flat Discount (−) |
{{ sub.overheads.discount|floatformat:2 }} |
| Transport Charges (+) |
{{ sub.overheads.transport|floatformat:2 }} |
| Other Charges (+) |
{{ sub.overheads.other|floatformat:2 }} |
| Advance Tax (−) |
{{ sub.overheads.adv_tax|floatformat:2 }} |
| Invoice # |
Date |
Bill Amount |
COGS |
Profit |
{% for b in sub.bills %}
| {{ b.inv }} |
{{ b.date }} |
{{ b.amount|floatformat:2 }} |
{{ b.cogs|floatformat:2 }} |
{{ b.profit|floatformat:2 }} |
{% empty %}
| No return bills |
{% endfor %}
{% endfor %}
Total Return Profit:
{{ grand.return_profit|floatformat:2 }}
{# ═══════════════════════════════════════════════════════════════════ #}
{# TAB: EXPENSE #}
{# ═══════════════════════════════════════════════════════════════════ #}
Expenses
| Invoice # | Date | Expense Name | Description |
Amount |
{% for r in expense_rows %}
| {{ r.inv }} | {{ r.date }} | {{ r.name }} | {{ r.descp }} |
{{ r.amount|floatformat:2 }} |
{% empty %}
| No expenses |
{% endfor %}
{# ═══════════════════════════════════════════════════════════════════ #}
{# TAB: SALARY #}
{# ═══════════════════════════════════════════════════════════════════ #}
Salaries
| Staff Name | Date | Invoice # |
Amount |
{% for r in salary_rows %}
| {{ r.staff }} | {{ r.date }} | {{ r.inv }} |
{{ r.amount|floatformat:2 }} |
{% empty %}
| No salary records |
{% endfor %}
{# ═══════════════════════════════════════════════════════════════════ #}
{# TAB: SETTLEMENTS #}
{# ═══════════════════════════════════════════════════════════════════ #}
| Party | Date | Invoice # | Amount |
{% for r in cust_settlements %}
| {{ r.party }} | {{ r.date }} | {{ r.inv }} |
{{ r.amount|floatformat:2 }} |
{% empty %}
| No records |
{% endfor %}
| Party | Date | Invoice # | Amount |
{% for r in vend_settlements %}
| {{ r.party }} | {{ r.date }} | {{ r.inv }} |
{{ r.amount|floatformat:2 }} |
{% empty %}
| No records |
{% endfor %}
{# ═══════════════════════════════════════════════════════════════════ #}
{# TAB: ADJUSTMENT #}
{# ═══════════════════════════════════════════════════════════════════ #}
Stock Adjustments
| Adj # | Date | Product |
Qty | Price |
Value | Remarks |
{% for r in adjustment_rows %}
| {{ r.adj_no }} | {{ r.date }} | {{ r.product }} |
{{ r.qty }} | {{ r.price|floatformat:2 }} |
{{ r.value|floatformat:2 }} | {{ r.remarks }} |
{% empty %}
| No adjustments |
{% endfor %}
{# /tab-content #}
{# ═══════════════════════════════════════════════════════════════════ #}
{# GRAND SUMMARY #}
{# ═══════════════════════════════════════════════════════════════════ #}