{% extends "base.html" %} {% block title %}အရောင်းအမှာစာနှင့် ပို့ဆောင်ရေးစီမံခန့်ခွဲမှု | Enterprise ERP{% endblock %} {% block content %}

အရောင်းအမှာစာနှင့် ပို့ဆောင်ရေး (Sales Orders)

{% if user_role == 'CASHIER' %} Cashier Scope: {{ active_branch.name if active_branch else 'Assigned Branch' }} {% endif %}
အမှာစာဖွင့်ခြင်း၊ ပစ္စည်းထပ်တိုး/ပြင်ဆင်ခြင်း၊ စတော့ခ်ဖယ်ထားခြင်းနှင့် ပို့ဆောင်ရေးစီမံမှု
မူကြမ်း အမှာစာ (Draft)

{{ quotations|selectattr('status', 'equalto', 'DRAFT')|list|length }} စောင်

ပြင်ဆင်နေဆဲ အော်ဒါများ
အတည်ပြုပြီး (Confirmed)

{{ confirmed_count }} စောင်

စတော့ခ်ဖယ်ထားပြီး အော်ဒါများ
လက်ခံထားသော စရံငွေ

{{ "{:,.0f}".format(total_deposits_held) }} Ks

ငွေစာရင်းထဲ ရောက်ရှိပြီး
ဘောက်ချာထုတ်ပြီး (Invoiced)

{{ converted_count }} စောင်

အရောင်းစာရင်းဝင်ပြီး
🔍
{% if user_role == 'CASHIER' %}
{% else %} {% endif %}
↺
{% for q in quotations %} {% else %} {% endfor %}
Order No ရက်စွဲ/အချိန် ဖောက်သည် ကျသင့်ငွေ စရံငွေ / COD ပို့ဆောင်ရေး ပုံစံ အခြေအနေ လုပ်ဆောင်ချက်များ
{{ q.quotation_no }}
{% if q.is_stock_reserved and q.status == 'CONFIRMED' %} စတော့ခ်ဖယ်ထားဆဲ {% elif q.status == 'DRAFT' %} ✏️ မူကြမ်း (စတော့ခ်မဖယ်ရသေး) {% endif %}
{{ q.quotation_date | format_time(branch_timezone) }}
{{ q.customer.name if q.customer else 'General Customer' }}
{{ q.customer.phone if q.customer and q.customer.phone else '' }}
{{ "{:,.0f}".format(q.grand_total) }} Ks
+{{ "{:,.0f}".format(q.deposit_paid) }} Ks
{% if q.remaining_due and q.remaining_due > 0 %} ကျန်: {{ "{:,.0f}".format(q.remaining_due) }} Ks {% else %} အပြေအကျေ {% endif %}
{% if q.delivery_provider_type == 'THIRD_PARTY' %} 🚚 {{ q.courier_name or 'Delivery' }} {% elif q.delivery_provider_type == 'INTERNAL_RIDER' %} 🛵 {{ q.runner_name or 'Rider' }} {% elif q.delivery_provider_type == 'CARGO_GATE' %} 🚌 {{ q.gate_name or 'ကားဂိတ်' }} {% else %} 🏪 ဆိုင်လာယူ {% endif %}
{% if q.delivery_status != 'DELIVERED' %} {% endif %}
{% if q.status == 'CONVERTED' %} INVOICED {% elif q.status == 'CONFIRMED' %} CONFIRMED {% elif q.status == 'DRAFT' %} DRAFT {% else %} {{ q.status }} {% endif %}
{% if q.status == 'DRAFT' %} {% elif q.status == 'CONFIRMED' %} {% elif q.status == 'CONVERTED' %} {% if q.converted_order_id %} {% endif %} {% if q.delivery_status != 'DELIVERED' %} {% else %} ပြီးစီးပါပြီ {% endif %} {% endif %}
အရောင်းအမှာစာ မှတ်တမ်း မရှိသေးပါ။
{% endblock %}