Skip to content

Org Master Data — Technical Map

Route / ownership map

SurfaceRoute familyOwner thực tế
Branch / Department/s/internal-settings/branch*, /department*user pages
Service master/s/internal-settings/service*chủ yếu ecommerce pages
Branch service tabbranch detail tabssettings local page + branch_service_config
Inventory / warehouse/s/internal-settings/inventory*settings local UI, ecommerce tables
Region/s/internal-settings/region*settings local UI, ecommerce tables
Invoice template/s/internal-settings/invoice-templatesettings local UI, ecommerce print tables
Login device/s/internal-settings/login-device*settings local UI, ecommerce table
Daily cost/s/internal-settings/daily-cost*settings local UI, fund/ecommerce table lineage

Data model map

SurfaceModel chính
Regionregion_branch, branch.region_id
Inventorywarehouse, warehouse_type, branch mapping
Service configbranch_service_config
Login devicedevice_user_log_in
Invoice templateprint_invoice_template, print_invoice_variable, print_invoice
Violation master dataviolation_type, violation_group, violation_source
Daily costfund_group_subtype filtered by group_id = daily_spending

Boundary với module khác

ModuleBoundary kỹ thuật
userroute mount trực tiếp pages branch/department, dùng account/branch selectors
ecommercedùng service/product pages, warehouse/invoice schema, region lineage
funddaily cost chỉ là một filtered subtype group

Rủi ro / Findings kỹ thuật

MứcFinding
CaoLogic inventory routing/filtering phụ thuộc roles[0] ở menu, form và table.
CaoInventoryForm chỉ hiện toggle importedProduct khi record hiện có type = sales, làm create-flow lệch runtime.
CaoRegionTable đang map cột không khớp schema region thật.
Trung bìnhInvoiceTemplate.tsx ghi localStorage.currentTab bằng key quá generic và không đọc lại.
Trung bìnhLoginDeviceTable dùng UX copy/message key bị lệch từ region page.