سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 15:45 UTC
docs(phase0): persist F0-04 exact main release proof and next acceptance gates
davoodmehraban89 committed
Oct 12, 2026 at 10:00 UTC
1bf2c5b6916da2b9a5d5d5671aa4c772fe74a828
1 file changed
+8
PROJECT_STATE.md
+8
@@ -293,3 +293,11 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
293
- **Accountable:** implementation/print with independent QA. **Narrow authorized scope:** remove display watermark only; add browser regression asserting clean formal draft and a pro-forma/non-formal printed page still contains all invoice content, amounts, and unchanged financial draft status. Preserve `invoiceDocumentStatus` / posting gate, electronic taxpayer safeguards, numeric formatting, pagination, dimensions, signature areas, invoice saving/editing and report status. Change `index.html` print asset cache key to force deployment refresh. Add regression to existing Quality suite, PR gates and gated deployment verification.
294
- **Forbidden:** changing stored draft/posted status, auto-posting, RLS/Auth/schema/roles, financial data, Supabase, legal/tax declarations, closing Phase 0 by inference. Recheck with owner's real printed invoice remains separate F0-04 authenticated acceptance gate. Revert the targeted PR for rollback if necessary.
295
- **State:** REPRODUCED IN SOURCE / IMPLEMENTATION STARTING. Phase 0 acceptance stays OPEN.
296
+
297
+
298
+### 2026-10-12 F0-04 owner photo → fixed print → gated live release — PHASE 0 STILL OPEN
299
+- Owner supplied real photograph of an ordinary sales/goods-services invoice stamped by a pale `پیشنویس — غیرقطعی` header watermark; requested its removal across ordinary invoice variants **before continuing Phase 0 acceptance**. Confirmed `js/print.js` `renderAndPrintDirect` injected `draftMark`, irrespective of invoice content; the purchase-specific popup already had no watermark.
300
+- **Fix delivered:** PR [#90](https://github.com/davoodmehraban89/Factor-easy/pull/90), squash merged to protected `main` exact SHA **`8a0023c53f0c14b0063ab771fdb3669a05997387`**. Ordinary invoice print now uses clean complete `stageInvoicePrint(containerHtml,spec)`. Cache-busted `js/print.js?v=20261012-clean-invoice-print-v1`. No changes to draft/posted state, financial postings, taxpayer explicit finalization rule, data, Auth, RLS, schema, roles or money formatting. Revert PR #90 and redeploy for rollback if needed.
301
+- **Independent controlled regression:** corrected PR head `72a69b372ef59ffbb7dddebf81d64304b3559b04` Quality `38212287209` SUCCESS (83/83 real Chromium, includes *formal draft* preview+isolated iframe without watermark, subtotal/number retained, draft state and zero vouchers, pro-forma print; Golden financial invariants and 3 disposable DB jobs PASS); Security `38212287223` SUCCESS. Initial static CI failed because its historic assertion **required** the old watermark; intentionally inverted to disallow watermark without relaxing posting safeguards, then retested green.
302
+- **Same merged-main SHA production gate:** Quality **`38212519911`**, Security **`38212519908`**, Release **`38212644579`**, gated Pages **`38212680498`** all SUCCESS. Skipped/cancelled concurrent duplicates not counted. On connected authorized remote Windows device, real domain HTML references exact `20261012-clean-invoice-print-v1` bundle; fetched live JavaScript has `stageInvoicePrint(containerHtml,spec)` and **no `draftMark`**. No owner login, actual tenant invoice or physical printer test made.
303
+- **Acceptance status:** F0-04 **FIX RELEASED / CONTROLLED QA PASS / LIVE BUNDLE VERIFIED**, but **OWNER-AUTHENTICATED REPRINT STILL OPEN**. Phase 0 as a whole remains OPEN; F0-01 affected-ISP login, F0-02 real tenant lookup, F0-03 safe-scoped actual Supabase persistence, F0-06 broader UI, F0-07 role isolation and F0-08 old PR final disposal retain their previous gates. Next: owner reprints same existing invoice with browser hard refresh and confirms no watermark/unchanged totals; continue remaining Phase 0 read-only checks without waiting to build new modules.