Files
wms-app/app
Thanakorn SandClaude Sonnet 4.6 dfeb57533a Master data review: spec updates and C1/C2/M3-M6 fixes
Spec (docs/reviewing/master-data.md):
- M1: Remove margin from stored product fields (it's a derived frontend value)
- M2: Clarify posting window only restricts transaction dates, not master data
- M5: Document AccountFormulaManager::delete() as archive, not physical delete

Code:
- C1: Fix CompanySettingManager property typo (company_id → companyId) —
  prevented PHP 8.4 dynamic property fatal on all posting window operations
- C2: Fix WarehouseManager::deleteWarehouse() guard — was comparing
  warehouse_name (string) against warehouse id column (no-op); now correctly
  blocks on storage rows and active stock rows
- M3: Remove hard-delete of td_rack_log in deleteStorage() — retain rack
  history consistent with soft-delete philosophy elsewhere
- M4: Add reference guards to ChartOfAccounts::delete() (blocks on GL items,
  formula items, product account mappings) and DepartmentManager::delete()
  (blocks on GL items)
- M6: Fix CompanySettingManager::handle() partial update — only upsert keys
  present in the request, not all allowed keys defaulted

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 17:33:58 +07:00
..
2026-05-26 08:19:40 +07:00
2026-05-25 13:30:10 +07:00
2026-05-26 13:10:54 +07:00
2026-05-20 10:17:02 +07:00
2026-05-26 13:10:54 +07:00
2026-05-12 14:11:00 +07:00
2026-05-13 16:41:28 +07:00
2026-05-26 13:26:57 +07:00
2026-05-23 15:07:11 +07:00
2026-05-20 10:17:02 +07:00
2026-05-26 13:26:57 +07:00
2026-02-19 14:48:40 +07:00
2026-05-13 16:41:28 +07:00
2026-05-13 16:41:28 +07:00