{% extends "base.html" %} {% block title %}လုပ်ငန်းနှင့် ဆိုင်ခွဲ ဆက်တင်များ (Company & Branch Configuration) | myplayer Biz{% endblock %} {% block content %} {# 🌟 Safe Resolution of Flags & Scope #} {% set cur_scope = selected_scope if selected_scope is defined and selected_scope else 'DEFAULT' %} {% set is_branch_scope = (cur_scope != 'DEFAULT') %} {% set f = flags if (flags is defined and flags is mapping) else {} %} {% set cur_btype = (f.get('business_type') or (tenant.business_type if tenant else 'RETAIL') or 'RETAIL') | upper %} {% set b_map = branch_configs_map if (branch_configs_map is defined and branch_configs_map is mapping) else {} %} {% set cur_branch_ovr = b_map.get(cur_scope, {}) if is_branch_scope else {} %} {% set is_custom_enabled = cur_branch_ovr.get('use_custom_config', true) if is_branch_scope else true %}