@davoodmehraban89 / Factor-easy / commits / 3992105
Fork 0

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

docs(phase0): log owner print watermark defect and safe fix scope

davoodmehraban89 committed Oct 12, 2026 at 09:47 UTC 3992105295c7b63c0a8c3a403504bfda93ab1a9d
1 file changed +8
PROJECT_STATE.md
+8
@@ -278,3 +278,11 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
278 - **Status:** acceptance started and register independently read back; PHASE 0 OPEN, NOT OWNER-ACCEPTED. Next: review acceptance documentation PR with exact-head CI; then collect approved existing-user login/catalog/print test evidence, addressing actual reproducible bugs before phase signoff. Rollback: docs-only PR revert.
279
280 - **Additional Phase 0 live asset check:** On authorized remote PC, separate read-only HTTP GETs returned 200 for deployed `js/login-connectivity.js`, `js/ux-hardening-r2.js`, and `js/print.js`; this does not establish exact cache-version parity, real sign-in, tenant catalog, invoice data or printer acceptance. The acceptance register records this evidence. PR #88 initial head Quality `38211055354` and Security `38211055404` **SUCCESS**; later head must rerun gates after this documentation update. No runtime/DB/auth/financial changes.
281 +
282 +
283 +## 2026-10-12 Phase 0 F0-04 owner screenshot: remove draft watermark from printed invoices — FIX REQUESTED / IN PROGRESS
284 +- **Owner direction:** The attached photograph of an actual printed sale-goods/services invoice shows a pale diagonal header overlay `پیش‌نویس — غیرقطعی`. Remove that overlay from all ordinary invoice printouts (formal, informal, pro-forma, purchase where applicable), without interrupting ongoing Phase 0 acceptance. The owner requests a clean full invoice layout independent of document draft status.
285 +- **Baseline:** protected `main` `5c2a5bf263f7a3bfe5a6b2e99cba5c8e5443db04`; Phase 0 acceptance register from merged PR #88 is present. Investigation isolated overlay to `js/print.js` `renderAndPrintDirect` lines building `draftMark` and prepending it to `stageInvoicePrint`. Print-preview isolated frame and printable container both use that string. Taxpayer/electronic document printing has a separate explicit post/finalization check and remains unchanged.
286 +- **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.
287 +- **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.
288 +- **State:** REPRODUCED IN SOURCE / IMPLEMENTATION STARTING. Phase 0 acceptance stays OPEN.