{% extends "base.html" %} {% block title %}{{ report_title | default('အစီရင်ခံစာ') }} | myplayer Biz{% endblock %} {% block content %} {# 🌟 CRASH-PROOF SAFE VARIABLE INITIALIZATION #} {% set current_page = page | default(1, true) %} {% set page_size = per_page | default(50, true) %} {% set total_records = total_count | default(rows|length, true) %} {% set total_pgs = total_pages | default(1, true) %} {% set active_tz = branch_timezone | default('Asia/Yangon', true) %}
{% if kpis and kpis|length > 0 %}
{% for k in kpis %}
{{ k.title }}

{{ k.value }}

{{ k.desc | default('') }}
{% endfor %}
{% endif %} {% if chart is defined and chart and chart.labels and chart.labels|length > 0 %}
{{ chart.title | default('Visual Analytics') }}
Chart View
{% endif %} {% if not (chart is defined and chart and chart.labels and chart.labels|length > 0) and columns is defined and columns and rows is defined and rows %} {% endif %}
စာရင်းအင်း အသေးစိတ်မှတ်တမ်း
စုစုပေါင်း: {{ total_records }} ခု
{% if columns is defined and columns %} {% for col in columns %} {% endfor %} {% else %} {% endif %} {% for row in rows %} {% if columns is defined and columns %} {% for col in columns %} {% endfor %} {% else %} {% endif %} {% else %} {% set empty_colspan = (columns|length + 1) if (columns is defined and columns) else 9 %} {% endfor %}
#{{ col.label }}ရက်စွဲ/အချိန် ဆိုင်ခွဲ ငွေစာရင်းအကောင့် အမျိုးအစား အကြောင်းရင်း အသေးစိတ် မှတ်ချက် ပမာဏ (Ks) လက်ကျန် (Ks)
{{ (((current_page) - 1) * page_size) + loop.index }} {% if col.is_currency %} {{ "{:,.0f}".format((row[col.key] | default(0, true)) | float) }} Ks {% elif col.is_date %} {{ row[col.key] | format_time(row.branch_timezone | default(active_tz, true)) if row[col.key] else '-' }} {% else %} {{ row[col.key] if row[col.key] is not none else '-' }} {% endif %} {{ (row.raw_date if (row.raw_date is defined and row.raw_date) else (row.date if row.date is defined else '')) | format_time(row.branch_timezone | default(active_tz, true)) }} {{ row.branch | default('N/A', true) }} {{ row.account | default('N/A', true) }} {% if row.type == 'IN' %} IN {% else %} OUT {% endif %} {% set src = (row.source | default('', true)) | upper %} {% if src in ['CAPITAL', 'CAPITAL_INJECTION', 'OPENING_BALANCE'] %} 💰 မတည်ငွေ {% elif src in ['EXPENSE', 'PREPAID_ASSET', 'ASSEMBLY_SERVICE'] %} 📉 စရိတ် {% elif src in ['PAYROLL'] %} 👥 လစာ {% elif src in ['TRANSFER', 'TRANSFER_IN', 'TRANSFER_OUT', 'INTERNAL_TRANSFER'] %} 🔄 ငွေလွှဲ {% elif src in ['SALE', 'POS_SALE', 'SO_DEPOSIT'] %} 🛒 အရောင်း {% elif src in ['PURCHASE', 'GOODS_RECEIPT'] %} 📦 ဝယ်ယူမှု {% elif src in ['PURCHASE_RETURN'] %} ↩️ အဝယ်ပြန်ပို့ {% elif src in ['SALE_RETURN'] %} ↩️ အရောင်းပြန်အမ်း {% elif src in ['DEBT_COLLECTION'] %} 💳 ကြွေးရငွေ {% elif src in ['DEBT_PAYMENT'] %} 💳 ကြွေးဆပ်ငွေ {% else %} {{ row.source | default('-', true) }} {% endif %} {{ row.notes | default('-', true) }} {{ '+' if row.type == 'IN' else '-' }}{{ "{:,.0f}".format((row.amount | default(0, true)) | float) }} Ks {{ "{:,.0f}".format((row.balance | default(0, true)) | float) }} Ks
ရွေးချယ်ထားသော အချက်အလက်များအတွက် မှတ်တမ်း မရှိသေးပါ။
{% if total_pgs > 1 %} {% endif %}
{% endblock %}