{% extends "pos/base.html" %} {% load static sales_extras %} {% block title %}Challan #{{ challan.challan_no }}{% endblock %} {% block stylesheets %} {% endblock %} {% block heading %} Challan #{{ challan.challan_no }} {% if challan.status == 'settled' %} Settled {% else %} Active {% endif %} {% endblock %} {% block content %}
| Product | Pack | Ctn | Pcs | {% if load_sheet_data.include_bonus %}Bonus (PCS) | {% endif %} {% if load_sheet_data.include_ret_normal %}Ret(N) Ctn | Ret(N) Pcs | {% endif %} {% if load_sheet_data.include_ret_expiry %}Ret(E) Ctn | Ret(E) Pcs | {% endif %} {% if load_sheet_data.show_amounts %}Amount | {% endif %}
|---|---|---|---|---|---|---|---|---|---|
| {{ r.product_code }} - {{ r.product_name }} | {{ r.pack }} | {{ r.issued_ctn }} | {{ r.issued_pcs }} | {% if load_sheet_data.include_bonus %}{{ r.bonus_pcs }} | {% endif %} {% if load_sheet_data.include_ret_normal %}{{ r.ret_norm_ctn }} | {{ r.ret_norm_pcs }} | {% endif %} {% if load_sheet_data.include_ret_expiry %}{{ r.ret_exp_ctn }} | {{ r.ret_exp_pcs }} | {% endif %} {% if load_sheet_data.show_amounts %}{{ r.amount|floatformat:2 }} | {% endif %}
| Totals: | {{ tot.issued_ctn }} | {{ tot.issued_pcs }} | {% if load_sheet_data.include_bonus %}{{ tot.bonus_pcs }} | {% endif %} {% if load_sheet_data.include_ret_normal %}{{ tot.ret_norm_ctn }} | {{ tot.ret_norm_pcs }} | {% endif %} {% if load_sheet_data.include_ret_expiry %}{{ tot.ret_exp_ctn }} | {{ tot.ret_exp_pcs }} | {% endif %} {% if load_sheet_data.show_amounts %}{{ tot.amount|floatformat:2 }} | {% endif %}
| Product | CTN Size |
Ctns | Pcs | Return Qty |
Trade Price |
Gross Amount |
Trade Offer |
Disc | Net Amount |
Remarks |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ r.product }} | {{ r.ctn_size }} | {{ r.ctns }} | {% if r.pcs %}{{ r.pcs }}{% else %}0{% endif %} | {% if r.return_qty %} {{ r.return_qty }} {% endif %} | {{ r.trade_price|floatformat:0 }} | {{ r.gross_amount|floatformat:0 }} | {% if r.trade_offer %}{{ r.trade_offer|floatformat:0 }}{% endif %} | {% if r.disc %}{{ r.disc|floatformat:1 }}{% endif %} | {{ r.net_amount|floatformat:0 }} | |
| Total | {{ blk.totals.ctns }} | {{ blk.totals.pcs }} | {% if blk.po %}P/O: {{ blk.po|floatformat:0 }}{% endif %} | {{ blk.totals.gross_amount|floatformat:0 }} | {% if blk.totals.trade_offer %}{{ blk.totals.trade_offer|floatformat:0 }}{% endif %} | {% if blk.totals.disc %}{{ blk.totals.disc|floatformat:1 }}{% endif %} | {{ blk.totals.net_amount|floatformat:0 }} | {% if blk.recovery > 0 %} Recv: {{ blk.recovery|floatformat:0 }} {% endif %} | ||
| Invoice # | Customer | Date | Amount | Area | Booker | Recovery | Remarks |
|---|---|---|---|---|---|---|---|
| {{ it.inv }} | {{ it.customer }} | {{ it.date }} | {{ it.amount|floatformat:0 }} | {{ it.area }} | {{ it.booker }} | {% if it.recovery > 0 %} {{ it.recovery|floatformat:0 }} {% else %} — {% endif %} | |
| Total | {{ load_sheet_data.invoices_amount_total|floatformat:0 }} |