Appearance
Org Master Data — Technical Map
Route / ownership map
| Surface | Route family | Owner 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 tab | branch detail tabs | settings 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-template | settings 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
| Surface | Model chính |
|---|---|
| Region | region_branch, branch.region_id |
| Inventory | warehouse, warehouse_type, branch mapping |
| Service config | branch_service_config |
| Login device | device_user_log_in |
| Invoice template | print_invoice_template, print_invoice_variable, print_invoice |
| Violation master data | violation_type, violation_group, violation_source |
| Daily cost | fund_group_subtype filtered by group_id = daily_spending |
Boundary với module khác
| Module | Boundary kỹ thuật |
|---|---|
user | route mount trực tiếp pages branch/department, dùng account/branch selectors |
ecommerce | dùng service/product pages, warehouse/invoice schema, region lineage |
fund | daily cost chỉ là một filtered subtype group |
Rủi ro / Findings kỹ thuật
| Mức | Finding |
|---|---|
| Cao | Logic inventory routing/filtering phụ thuộc roles[0] ở menu, form và table. |
| Cao | InventoryForm chỉ hiện toggle importedProduct khi record hiện có type = sales, làm create-flow lệch runtime. |
| Cao | RegionTable đang map cột không khớp schema region thật. |
| Trung bình | InvoiceTemplate.tsx ghi localStorage.currentTab bằng key quá generic và không đọc lại. |
| Trung bình | LoginDeviceTable dùng UX copy/message key bị lệch từ region page. |