سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 20:45 UTC
docs(stage3): record measured browser RED/GREEN and remaining financial cutover blockers
davoodmehraban89 committed
Oct 23, 2026 at 02:43 UTC
47942dd38f845a60462970c8dcde867372fce615
1 file changed
+8
PROJECT_STATE.md
+8
@@ -225,3 +225,11 @@
225
- Verified GitHub baseline: Stage2 PR #162 feature HEAD 3c4efef047da58f150b8e39fa066f79b7d5b54e8; main bccd474433b4188e43aae345773498ea6fc65209. PR #162 remains Draft / DO NOT MERGE. Independent ephemeral CI staging PR #163 has four successful test jobs, Quality 123/123, Security CodeQL; Dependency Review was skipped because GitHub Dependency Graph is unavailable.
226
- Stage 3 bounded implementation branch feature/finora-stage3-commercial-payload-20261023 created from exact Stage2 HEAD, not main. First workstream: new-only sale/purchase payload monetary contract metadata (VAT mode, rate and type, discount type/input, explicit contract version). No silent migration/backfill of historic vouchers; preserve posted financial history and unsupported source fail-closed. Test red-before-green through actual DOM paths; require exact-head Quality/Security and local Stage2 regression.
227
- Subsequent phases require validated UI versus SQL parity, financial role-owner mapping governance, source posting integration by approved module, ledger health, UX, sellability, browser/ISP and actual encrypted Production backup/restore. The user's general instruction does not authorize a production cutover, paid cloud projects, non-rial conversion policy or posting of unsupported accounting source types.
228
+
229
+### 2026-10-23 — Stage 3 UI source contract: verified RED/GREEN checkpoint
230
+- The owner explicitly requested continuing all required phases sequentially without a false final-completion message. The zero-cost / no Production change restrictions remain in force.
231
+- Stage 3 test-first RED: Draft PR #164 source-only HEAD 69dae3ec7165e30bf8cbdfcc7cebc9f0848c76ad, Quality Run 39868877199, 123 passed / 1 failed, exact new DOM form test at accounting-document-workflow.spec.js:675. Saved formal sale lacked vatMode, currencyCode, accountingVersion, while amounts 3000/300/3300 matched. All three PostgreSQL jobs passed. This is genuine measured RED, not a theoretical source check.
232
+- Stage 3 forward-only implementation Draft PR #165, code test HEAD 5214c429abb5d2503a4cb9425a8a935089776807: invoices.js persists explicit VAT mode, contract currency IRR only when settings currency_mode=rial otherwise unsupported marker, new invoice accountingVersion=1; purchases.js persists fixed discount metadata, selected VAT mode, percent rate and new purchase version=1. Existing source amounts and all posted journal logic unchanged; no Production migration or deployment.
233
+- GREEN at exact SHA 5214c429abb5d2503a4cb9425a8a935089776807: Quality Run 39869603463 COMPLETED SUCCESS, Chromium 124/124 including sale and purchase form SQL-v1 metadata test; all three PostgreSQL jobs SUCCESS. Security Run 39869603585 SUCCESS for CodeQL + release-safety; Dependency Review SKIPPED because GitHub Dependency Graph is disabled (separate unblock needed).
234
+- Independent local Supabase regression Run 39869596844 at the same code SHA: genuine local Auth/JWT/PostgREST real-stack, strict baseline SQL parity and Stage1 synthetic UP/DOWN/UP rollback jobs SUCCESS. Manual harness was still IN_PROGRESS when this entry was written; do not assert all-four PASS without a completed workflow.
235
+- Current scope NOT STAGE3 COMPLETE: actual server source-post flow and owner-reviewed accounts mapping, fractional quantity rounding, non-rial amounts, COGS/returns, payment types, legacy data compatibility, hosted owner-ISP tests, real Production encrypted backup+restore, signed owner Stage2.2/3 acceptance, live migration and main merge remain BLOCKED. No production-write or cost authorization inferred. Use synthetic/free tests only.