{% extends "base.html" %} {% block title %}System Activity Logs & Audit Trail | Enterprise ERP{% endblock %} {% block content %}

စနစ်လုပ်ဆောင်ချက် မှတ်တမ်းများ (System Activity Logs)

Audit Trail Active TZ: {{ branch.timezone if (branch and branch.timezone) else 'Asia/Yangon' }}

{% if branch %} [{{ branch.name }}] ဆိုင်ခွဲ၏ Timezone စံတော်ချိန်ဖြင့် အချိန်ပြည့် စာရင်းစစ် မှတ်တမ်းများ {% else %} စနစ်တစ်ခုလုံးရှိ ဆိုင်ခွဲများ၏ လုပ်ဆောင်ချက် မှတ်တမ်းများ (Audit Trail) {% endif %}

စုစုပေါင်း မှတ်တမ်း (Total Logs)

{{ "{:,}".format(total_logs_count or 0) }}

လက်ရှိ စစ်ထုတ်ထားသော မှတ်တမ်းများ
ဘဏ္ဍာရေး မှတ်တမ်း (Financial)

{{ "{:,}".format(financial_count or 0) }}

မတည်ငွေ၊ ချေးငွေ၊ ငွေလွှဲ၊ စရိတ်များ
စတော့ခ်နှင့် ကုန်ပစ္စည်း (Inventory)

{{ "{:,}".format(inventory_count or 0) }}

စတော့ခ်လွှဲပြောင်းမှုနှင့် ထိန်းညှိမှုများ
စနစ်နှင့် လုံခြုံရေး (Security/Admin)

{{ "{:,}".format(security_count or 0) }}

ဝင်ရောက်မှု၊ ဆက်တင်ပြင်ဆင်မှုများ
{% if is_platform_admin and all_tenants %}
{% endif %}
{% if logs %} {% for log in logs %} {% set act_upper = (log.action or '') | upper %} {% endfor %} {% else %} {% endif %}
ရက်စွဲ / အချိန် (Branch Timezone) လုပ်ဆောင်သူ (User) လုပ်ဆောင်ချက် (Action) အသေးစိတ် မှတ်တမ်း (Description) စစ်ဆေးရန်
{{ log.created_at | format_time(log.log_branch.timezone if (log.log_branch and log.log_branch.timezone) else (branch.timezone if branch else 'Asia/Yangon')) }}
{% if log.log_branch %} {{ log.log_branch.name }} {% elif log.user and log.user.role in ['SUPER_ADMIN', 'OWNER'] %} ဗဟိုရုံးချုပ် (All Branches) {% else %} Store Time {% endif %}
{{ (log.user.full_name if log.user else 'System')[:2] | upper }}
{{ log.user.full_name if log.user else 'System / Auto' }}
@{{ log.user.username if log.user else 'automated' }}
{% if 'DAMAGE' in act_upper %} {{ log.action }} {% elif 'AUDIT' in act_upper or 'ADJUST' in act_upper %} {{ log.action }} {% elif 'PURCHASE_RETURN' in act_upper %} {{ log.action }} {% elif 'CAPITAL' in act_upper or 'TRANSFER' in act_upper or 'PAYMENT' in act_upper or 'CHECKOUT' in act_upper %} {{ log.action }} {% else %} {{ log.action }} {% endif %}
{{ log.description }}
{% if log.ip_address %} IP: {{ log.ip_address }} {% endif %}
သတ်မှတ်ထားသော စံနှုန်းများနှင့် ကိုက်ညီသည့် Activity Logs မရှိသေးပါ။
{% endblock %}