سامانه صدور فاکتور و حسابداری
Close and verify master Phase 4
davoodmehraban89 committed
Sep 29, 2026 at 12:56 UTC
267c051bfd1a6fb221c5f302442ec0e74da49e8f
1 file changed
+6
-6
PROJECT_STATE.md
+6
-6
@@ -32,7 +32,7 @@ Before doing any project work:
32
10. If this file conflicts with verified remote code/database evidence, correct this file immediately and record the correction in the change ledger.
33
34
## Current change ledger
35
-| 2026-09-29 | Execute master roadmap Phase 4 end-to-end: projects/contracts, amendments/lifecycle, employer/contractor/subcontractor links, deductions, guarantees, contractor statements/accounting, traceability, reporting, permissions/audit/sync/backup/migration/tests/reconciliation. | IN PROGRESS | Implementation is on main: Phase 4 domain/UI `c2100228`; persistence/navigation/backup through `172aeb59`; referential guards `44154769`; behavioral CI gate `fe29b817`; deduction-specific accounting/template migration `dd3b78ed`; verification doc `e5b814a7`. Supabase migration `20260929091743 phase4_contracting_collections` applied; RLS owner isolation verified; production has no pre-existing Phase 4 rows requiring backfill; performance advisor clean; known pre-existing security warnings unchanged. Quality run 36548878783 success. Awaiting final Security 36548878798 and Pages 36548877966 before phase closure. |\n| 2026-09-29 | Consolidate top-level Sales, Purchases, and People navigation into a single `بازرگانی` module while preserving the underlying views and workflows. | COMPLETED | Top-level `sales`, `purchases`, `people` rail entries removed; `commerce`/بازرگانی added with فروش، خرید، اشخاص submenu and canonical view mappings. Quality run 36545021724 success; Pages run 36545024472 success; Security/CodeQL run 36545021744 success. |\n| 2026-09-29 | Restore invoice print contract: formal sales invoice = A4 landscape, pre-invoice = A4 landscape, non-formal invoice = A5 landscape; preserve standard print margins and page fit. | COMPLETED | `js/print.js` fixed on main: formal/pre-invoice A4 landscape with 5mm print margin; non-formal A5 landscape with 5mm margin; page-fit widths set to printable landscape areas. Regression gates updated in `scripts/quality-check.mjs` and `scripts/phase3-check.mjs`. Implementation commits `a7e14ec1`, `baa46715`, gate correction `4550f239`; Quality run 36544154873 success; Pages run 36544154397 success. Final checkpoint head `75cf79e5` re-verified: Quality run 36544278076 success; Security/CodeQL run 36544278147 success; Pages deployment run 36544277692 success. |\n
35
+| 2026-09-29 | Execute master roadmap Phase 4 end-to-end: projects/contracts, amendments/lifecycle, employer/contractor/subcontractor links, deductions, guarantees, contractor statements/accounting, traceability, reporting, permissions/audit/sync/backup/migration/tests/reconciliation. | COMPLETED | Phase 4 domain/UI `c2100228`; persistence/navigation/backup through `172aeb59`; referential guards `44154769`; behavioral CI gate `fe29b817`; deduction-specific accounting/template migration `dd3b78ed`; verification doc `e5b814a7`. Supabase migration `20260929091743 phase4_contracting_collections` applied; RLS owner isolation verified; production had zero pre-existing Phase 4 rows requiring backfill; performance advisor clean; known pre-existing security warnings unchanged. Acceptance checkpoint `95e6de99`: Quality 36549015911 success; Security/CodeQL 36549015935 success; Pages 36549015796 success. |\n| 2026-09-29 | Consolidate top-level Sales, Purchases, and People navigation into a single `بازرگانی` module while preserving the underlying views and workflows. | COMPLETED | Top-level `sales`, `purchases`, `people` rail entries removed; `commerce`/بازرگانی added with فروش، خرید، اشخاص submenu and canonical view mappings. Quality run 36545021724 success; Pages run 36545024472 success; Security/CodeQL run 36545021744 success. |\n| 2026-09-29 | Restore invoice print contract: formal sales invoice = A4 landscape, pre-invoice = A4 landscape, non-formal invoice = A5 landscape; preserve standard print margins and page fit. | COMPLETED | `js/print.js` fixed on main: formal/pre-invoice A4 landscape with 5mm print margin; non-formal A5 landscape with 5mm margin; page-fit widths set to printable landscape areas. Regression gates updated in `scripts/quality-check.mjs` and `scripts/phase3-check.mjs`. Implementation commits `a7e14ec1`, `baa46715`, gate correction `4550f239`; Quality run 36544154873 success; Pages run 36544154397 success. Final checkpoint head `75cf79e5` re-verified: Quality run 36544278076 success; Security/CodeQL run 36544278147 success; Pages deployment run 36544277692 success. |\n
36
| Date | Request / decision | Status | Evidence / next action |
37
|---|---|---|---|
38
| 2026-09-29 | Reopen and fully harden Phase 3 after independent accounting review; fix fiscal-date posting, non-accounting document posting, reversal reconciliation, atomic persistence, server-side ledger guards, concurrency uniqueness and behavioral verification. | COMPLETED | Supabase migration `20260929083130 phase3_hardening_atomic_sync_and_ledger_guards` applied. Final implementation/evidence head before state closure: `c02e714c`; Quality run 36543480690 success; Security run 36543480544 success; Pages run 36543480478 success; Supabase migration/functions/unique indexes verified; Performance advisor clean. |\n| 2026-09-29 | Establish a permanent in-repository continuity file so any future AI/chat can resume without relying on conversation history. Every material request must be recorded here before implementation and every durable checkpoint must update this file. | COMPLETED | `PROJECT_STATE.md` created in commit `9436b9014f8ce59e1a8c8dc238d1050831785c8f`; root `AGENTS.md` discovery instructions added in `dcabf31e7f9454ff84441cadb1e9aef85fff964c`. |
@@ -232,8 +232,8 @@ Performance advisor: no findings.
232
## Existing operational capabilities that must not regress
233
Sales invoices, purchase invoices, contacts/counterparties, products/services, receipts/payments with partial settlement, cheques, expenses/income, companies, global projects, reporting, formal/nonformal printing, Excel import, backup/cloud sync, admin/license controls, dashboard/drilldowns.
234
235
-## Phase 4 — NEXT WORK
236
-Phase 4 is the next master phase. Scope:
235
+## Phase 4 — COMPLETED
236
+Phase 4 is verified complete. Delivered scope:
237
- first-class contracts
238
- contract amendments/status/lifecycle
239
- employer/contractor/subcontractor relationships
@@ -305,8 +305,8 @@ The **current master roadmap is six phases**, regardless of older historical doc
305
- **Phase 1 — COMPLETED:** scalable UX/product shell and information architecture.
306
- **Phase 2 — COMPLETED:** master data + accounting-core foundation.
307
- **Phase 3 — COMPLETED:** double-entry operational accounting and automatic source posting.
308
-- **Phase 4 — NEXT:** projects/contracts/deductions/guarantees and contractor accounting.
309
-- **Phase 5 — PENDING:** complementary ERP/integrations, inventory/costing/assets/multi-currency/settings/permissions/import.
308
+- **Phase 4 — COMPLETED:** projects/contracts/deductions/guarantees and contractor accounting.
309
+- **Phase 5 — NEXT:** complementary ERP/integrations, inventory/costing/assets/multi-currency/settings/permissions/import.
310
- **Phase 6 — PENDING:** professional reports, historical reconciliation/cutover, QA/security/performance/audit/backup/rollback/final release.
311
312
Do not confuse the older completed Finora 1.0 four-phase delivery with this current six-phase redesign roadmap.
@@ -342,7 +342,7 @@ If a session is interrupted before the final update, the next worker must first
342
343
## Current next executable phase
344
345
-**Phase 4 is next.** Phases 1–3 are verified complete from repository evidence. Phase 4 owns projects/contracts/deductions/guarantees and contractor accounting. Before Phase 4 implementation, record any new owner requirement in the change ledger, inspect live code/Supabase, then execute through acceptance without redoing Phases 1–3 unless a verified regression exists.
345
+**Phase 5 is next.** Phases 1–4 are verified complete from repository and Supabase evidence. Phase 5 owns complementary ERP/integrations: inventory/warehouse and costing, fixed assets, multi-currency, cost centers/advanced analytics, import/backup/permissions/settings redesign and integration/API architecture.
346
347
## Portable one-line bootstrap
348