سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 15:45 UTC
docs(phase0): record green watermark regression and phase-acceptance carry-forward
davoodmehraban89 committed
Oct 12, 2026 at 09:56 UTC
de66e1d98299b856efd7b58bbc5fb11d466dd378
1 file changed
+7
PROJECT_STATE.md
+7
@@ -293,3 +293,10 @@ 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 draft watermark fix — CONTROLLED-QA-PASSED / RELEASE PENDING
299
+- Actual owner paper photo shows pale diagonal `پیشنویس — غیرقطعی` over invoice header. Shared ordinary print `renderAndPrintDirect` included a `draftMark` markup string for a `draft` invoice, proving source cause; purchase popup print already has no such mark. The user directed immediate watermark removal and continuation of Phase 0 acceptance.
300
+- PR **#90** branch `fix/phase0-print-no-draft-watermark-20261012`, based on current protected-main acceptance ledger, changes only `js/print.js` (removes stamp), `index.html` (cache bust), `scripts/accounting-document-workflow.spec.js` (actual Chromium print of formal draft, preview + isolated frame, financial status still draft and zero journal posts), `scripts/phase0-invoice-persistence.spec.js` (pro-forma), `scripts/posting-idempotency-check.mjs` (enforces no watermark while retaining posting invariants), plus these docs.
301
+- First branch test caught a **stale pre-existing static assertion requiring the very watermark now explicitly prohibited**; fixed that assertion, preserving accounting controls. Corrected head `72a69b372ef59ffbb7dddebf81d64304b3559b04`: Quality **`38212287209` SUCCESS** (static job `114688933341`: **83/83 Chromium PASS, 54.8s**, Golden + financial draft/posted static contract PASS, three disposable database jobs SUCCESS); Security **`38212287223` SUCCESS** (CodeQL + release safety). No production DB, company, finance postings, role, Auth, RLS or schema changes.
302
+- PR #90 acceptance register now records reproduced owner-photo defect and controlled fix with **physical printer / owner-authenticated PDF and actual existing invoice still UNVERIFIED**, Phase 0 F0-04/whole Phase 0 remain OPEN. On updated documentation head rerun PR QA/security and merge if clean; verify exact-main gated release, then ask owner to confirm actual reprint. Rollback: revert PR #90.