ERPCORE

ERP Hardening (Spec 1)

Make the existing ERP accounting/operational flows correct and decimal-exact, with regression tests proving each fix, plus a minimal Core guard that blocks generic-CRUD writes on immutable/derived models.

State
Done
Progress
100%
Steps
53 / 53
Started
2026-07-01
Finished
2026-09-30
Modules
LaraERP, LaraCore

Tasks.

  • Task 1: Fix e-invoice domain permissions seeder (Fix 1, P0)5/5
  • Task 2: Authorization policy tests (Fix 2, P0)3/3
  • Task 3: Enforce closed fiscal periods on invoice posting (Fix 3, P0)6/6
  • Task 4: Shared decimal helper (Fix 4a, P1)5/5
  • Task 5: Single-source line tax in TaxLineCalculator (Fix 4b, P1)5/5
  • Task 6: Refactor money math to Decimal across services (Fix 4c, P1)8/8
  • Task 7: Targeted test gaps — three-way match + bank CSV (Fix 5, P1)7/7
  • Task 8: Block generic-CRUD writes on immutable/derived models (Fix 6, P0 integrity)11/11
  • Final verification3/3