{% extends "pos/base.html" %} {% block title %}Sale Approval Preview{% endblock %} {% block heading %}Sale Approval Preview{% endblock %} {% block content %}

Sale Approval Preview

This is dry run only. No stock, customer, bank or payment has been updated.
{% csrf_token %}
Back
TOTAL SELECTED

{{ preview.total }}

FULL APPROVAL

{{ preview.full_count }}

PARTIAL

{{ preview.partial_count }}

BLOCKED

{{ preview.blocked_count }}

{% for inv in preview.invoices %}
Staging Invoice #{{ inv.staging_invoice_no }} {% if inv.ok %} OK {% else %} Has Issues {% endif %}
{{ inv.message }}
{% for line in inv.lines %} {% endfor %}
Product Requested Approved Skipped Stock Plan Issues
{{ line.product_name }}
Code: {{ line.product_code }}
Qty: {{ line.requested_qty }}
Bonus: {{ line.requested_bonus }}
Qty: {{ line.approved_qty }}
Bonus: {{ line.approved_bonus }}
Qty: {{ line.short_qty }}
Bonus: {{ line.short_bonus }}
{% if line.allocations %} {% for a in line.allocations %} {% endfor %}
Source Variant Stock ID Variant ID Qty Bonus
{% if a.variant_is_default %} Default Stock {% else %} Variant / Batch {% endif %} {% if a.variant_is_default %} Default Variant {% else %} {{ a.variant_display }} {% endif %} {{ a.stock_id }} {{ a.variant_id }} {{ a.qty_take }} {{ a.bonus_take }}
{% else %} No allocation {% endif %}
{% if line.issues %} {% for issue in line.issues %}
{{ issue.message }}
{% endfor %} {% else %} No issue {% endif %}
{% endfor %}
Final Approval
Click this button only after checking stock allocation plan.
{% csrf_token %}
{% endblock %}