{# templates/pos_api/android_sales_view.html #} {% extends "pos/base.html" %} {% load humanize %} {% block title %}Sale #{{ invoice_no }} — Detail{% endblock %} {% block content %}
| # | Product | Qty | Bonus | Price | Discount | Total | Stock Status |
|---|---|---|---|---|---|---|---|
| {{ forloop.counter }} |
{{ item.product_name|default:"Unknown" }}
Code: {{ item.product_code }}
{% if item.p_per_pack %}• PPP: {{ item.p_per_pack }}{% endif %}
{% if item.row_status == 'err' %}
Error
{% elif item.row_status == 'warn' %}
Warning
{% else %}
OK
{% endif %}
|
{{ item.qty_disp }} | {{ item.bonus_disp }} | {{ item.item_price|floatformat:2|intcomma }} | {{ item.discount|floatformat:2 }}% | {{ item.total_price|floatformat:2|intcomma }} |
{{ item.legacy_stock|default:0|floatformat:2 }}
usable qty: {{ item.plan.qty_usable_total|floatformat:2 }} {% if item.plan.bonus_usable_total %} usable bonus: {{ item.plan.bonus_usable_total|floatformat:2 }} {% endif %} {% if item.qty_short > 0 %} Qty short: {{ item.qty_short|floatformat:2 }} {% endif %} {% if item.bonus_short > 0 %} Bonus short: {{ item.bonus_short|floatformat:2 }} {% endif %} {% if item.has_expiry_issue %} Expiry rule triggered {% endif %} |
| Bank | Amount |
|---|---|
| {{ bp.bank_name }} | {{ bp.amount_transaction|floatformat:2|intcomma }} |