{# templates/pos_api/android_sales_bulk_approve_edit.html #} {% extends "pos/base.html" %} {% block content %}

Bulk Approve (Edit First)

← Back
Selected invoices: {{ count_invoices }} | Edit Qty/Bonus, then Confirm Approve.
{% csrf_token %} {% for inv in invoices %}
Invoice #{{ inv.invoice_no }} Customer: {{ inv.pay.party_descp|default:"—" }} Date: {{ inv.pay.transaction_date }}
{% if inv.has_block %} Blocked lines present {% else %} All lines OK {% endif %}
{% for it in inv.items %} {% endfor %}
# Product Stock Qty Bonus Status
{{ forloop.counter }}
{{ it.product_name }}
Code: {{ it.product_code }}
{% if not inv.stock_roles.check_batch and not inv.zero_stock_allow %}
Avail Qty: {{ it.qty_usable_total|floatformat:2 }} {% if it.bonus > 0 %} | Avail Bonus: {{ it.bonus_usable_total|floatformat:2 }} {% endif %}
{% endif %}
{{ it.legacy_stock }} {% if it.plan_ok %} OK {% else %} BLOCKED {% if it.qty_short > 0 %}
Qty short: {{ it.qty_short|floatformat:3 }}
{% endif %} {% if it.bonus_short > 0 %}
Bonus short: {{ it.bonus_short|floatformat:3 }}
{% endif %} {% if it.plan_errors %}
{% for e in it.plan_errors %}
• {{ e }}
{% endfor %}
{% endif %} {% endif %}
Total: {{ inv.pay.total_amount }}
Received: {{ inv.pay.amount_transaction }}
{% if inv.zero_stock_allow %} Zero-stock mode active hai. Invoice block nahi hogi, stock negative ja sakta hai. {% else %} Agar stock issue hai to qty/bonus reduce karo, phir Confirm Approve. {% endif %}
{% endfor %}
{% endblock %}