@davoodmehraban89 / Factor-easy / commits / 713fde5
Fork 0

سامانه صدور فاکتور و حسابداری

Phase 6: record production cutover and rollback manifest

davoodmehraban89 committed Sep 29, 2026 at 21:37 UTC 713fde5f0aa8605f13f9b24a2dbddee15685a150
1 file changed +28
docs/PHASE_6_CUTOVER_MANIFEST.md new
+28
@@ -0,0 +1,28 @@
1 +# Phase 6 Cutover / Rollback Manifest — 2026-09-29
2 +
3 +## Production reconciliation snapshot
4 +Read-only production verification on Supabase project `hcsixhqbyuhpshfwqpjx` found:
5 +- 7 legacy invoice records in total.
6 +- 5 formal invoices, aggregate `3,371,160,000` in their stored currency unit.
7 +- 2 pre-invoices, aggregate `3,570,000,000`; these are explicitly non-posting documents.
8 +- 0 account-master records and 0 journal vouchers in production at the snapshot time.
9 +
10 +Therefore **no historical accounting cutover was executed**. Posting the five formal historical invoices before each owner has an initialized/approved chart of accounts would create unreviewed accounting meaning. Phase 6 instead provides a controlled in-app cutover preview: only formal/non-formal source documents without an active journal are eligible; pre-invoices are excluded; posting requires valid accounting masters plus explicit confirmation and produces normal immutable source-linked vouchers.
11 +
12 +## Rollback point
13 +- Last fully accepted pre-Phase-6 repository evidence head: `e17a7f438b2478338bcf47498fabd47e56471f68`.
14 +- Phase 6 introduces no production schema migration as of this manifest, so rollback of Phase 6 code does not require a database down-migration.
15 +- Existing production migrations remain archived in `supabase/migrations/`.
16 +- Full user-scoped JSON backup/export and validated merge restore are available from Phase 5.
17 +- Posted accounting history must never be deleted for rollback; corrections use reversal.
18 +
19 +## Cutover rule
20 +For a production owner with legacy formal invoices:
21 +1. initialize and review the company chart/fiscal year;
22 +2. export a full backup;
23 +3. review the Phase 6 legacy cutover preview;
24 +4. post eligible historical invoices deliberately;
25 +5. reconcile total debits = total credits and source-to-voucher links;
26 +6. if accounting meaning is wrong, reverse the generated voucher rather than editing posted history.
27 +
28 +This manifest is evidence of a **controlled, non-destructive cutover decision**, not a claim that legacy production invoices were silently posted.