@davoodmehraban89 / Factor-easy / commits / 71f77cb
Fork 0

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

docs(phase0): record F0-04 released clean print and owner print verification gate

davoodmehraban89 committed Oct 12, 2026 at 10:00 UTC 71f77cb7780d19ff547d055dcd77d063f9af425c
1 file changed +12 -1
docs/FINORA_PHASE0_ACCEPTANCE_REGISTER_2026-10-12.md
+12 -1
@@ -22,7 +22,7 @@ Status definitions: **CONTROLLED QA PASS** = actual Chromium or isolated tests w
22 | **F0-01** · Login/affected ISP | Production HTTP 200, historical synthetic Auth probes | **UNVERIFIED real user** / P0 open | Existing authorized login and refresh from affected ISP; browser/time/error screenshot with secrets redacted. QA/Auth. |
23 | **F0-02** · Real product & person selection | PR #83 merged; keyboard/F2 and synthetic matching in Chromium | **CONTROLLED QA PASS; live tenant UNVERIFIED** / P0 open | Select existing `هارد` or `بلوک` and person in authorized tenant; correct unit/price/company boundary; no cross-tenant leak. UX/Data. |
24 | **F0-03** · Invoice lifecycle | `scripts/phase0-invoice-persistence.spec.js` passes **2/2** on mock RPC: save→reload→edit→print, retry without duplication; no ledger posting | **CONTROLLED QA PASS; real persistence UNVERIFIED** / P0 open | Only separately approved isolated account/test scope: actual server save/reload/edit/print and reconcile duplicate count; never post fake accounting in production. Commerce/QA. |
25 -| **F0-04** · Print | PR #71 Persian print and controlled browser evidence | **CONTROLLED QA PASS; real printer/invoice UNVERIFIED** / P0 open | Authorized pre-existing saved invoice, formal/non-formal/purchase/taxpayer PDF/print; line totals/dates/pagination and physical-printer differences. Print QA. |
25 +| **F0-04** · Print | Owner hardcopy/photo reproduced pale diagonal `پیش‌نویس — غیرقطعی` overlay on existing goods/services invoice; narrowly removed in PR #90; draft and pro-forma Chromium checks added, accounting state unchanged | **FIX RELEASED + CONTROLLED QA PASS; OWNER REPRINT UNVERIFIED** / P0 open | On the deployed PR #90 code, owner still checks a saved draft/ordinary sale invoice and purchase/pro-forma print: watermark absent, all rows/totals/dates visible; real printer/PDF and taxpayer-specific semantics are separate. Print QA. |
26 | **F0-05** · Large selectors | `scripts/phase0-selector-stress.spec.js`, **1,208 synthetic products + 1,206 persons** passed 2/2; keyboard/Persian/metadata covered | **CONTROLLED QA PASS for products/persons; real catalog and other high-volume selectors UNVERIFIED** / P1 open | Owner tenant/real workstation test plus assess account/project/contract selectors where applicable; measure interactive latency. UX/Perf. |
27 | **F0-06** · Modal, keyboard, RTL, themes | Controlled modal/dashboard regression and keyboard/F2, Quality suite green | **CONTROLLED QA PARTIAL; full visual/flow acceptance UNVERIFIED** / P1 open | Owner screenshots, all critical save/delete/import/export and RTL scrolling/dark-light. UI/QA. |
28 | **F0-07** · Access and release safety | GitHub Security PASS; Supabase 21+3+1 advisor results | **VERIFIED READ-ONLY metadata; dual-user tenant/RLS proof UNVERIFIED** / P0 open | Independent role/tenant negative E2E with authorized second identity, strict no-write safe plan; formal Phase 1 security audit. Security. |
@@ -66,3 +66,14 @@ All nine PR heads **diverge** from current main (observed GitHub compare); there
66 - Phase acceptance requires full evidence and explicit owner approval. **No phase promotion now.**
67
68 **Rollback:** revert this documentation PR; no runtime, customer data, migrations, credentials, roles, accounting entries or production workflow modified.
69 +
70 +
71 +## 2026-10-12 F0-04 owner's photographed watermark defect — controlled fix evidence
72 +
73 +- Photograph provided by owner shows pale, diagonal `پیش‌نویس — غیرقطعی` rectangle over the title of an existing ordinary sales/goods-services invoice. This is **user-visible reproduction evidence**, not synthetic data. Source root: `renderAndPrintDirect` appended `draftMark` to `containerHtml` in `js/print.js` whenever `invoiceDocumentStatus(inv)==='draft'`.
74 +- **Merged PR #90:** shared ordinary invoice builder now prints complete `containerHtml` directly, with a new cache version in `index.html`. Independent purchase popup already had no draft watermark. The code does **not** alter `invoiceDocumentStatus`, journal posting/finalization, stored documents, tax-authority electronic print restrictions, money/date display, print pagination or signatures.
75 +- **Verified on PR head before acceptance note:** GitHub Quality `38212287209` SUCCESS, including 83/83 real Chromium (54.8s), three disposable DB jobs and Golden accounting; Security `38212287223` SUCCESS (CodeQL and release safety). Browser regression tests cover a formal accounting draft and a pro-forma invoice: complete printed totals/number, watermark absent from both preview and isolated iframe, formal draft remains unposted. The financial static guard in `scripts/posting-idempotency-check.mjs` now rejects accidental reintroduction of the watermark while retaining posted/draft constraints.
76 +- **Acceptance boundary:** This is a controlled correction, **not** proof that the owner's physical printer or saved live document is now correct. Do not close F0-04 or Phase 0 until owner-authenticated preview/real print check. Other F0-01/02/03/06/07/08 checks are not automatically satisfied.
77 +
78 +- **Exact protected-main promotion:** PR #90 (validated head `72a69b372ef59ffbb7dddebf81d64304b3559b04`) merged to `main` as **`8a0023c53f0c14b0063ab771fdb3669a05997387`**. Same-SHA [Quality 38212519911](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38212519911), [Security 38212519908](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38212519908), [Release gate 38212644579](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38212644579) and [Deploy gated Pages 38212680498](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38212680498) **all SUCCESS**. Canceled/skipped duplicate workflow runs were not counted.
79 +- **Real-domain read-only proof:** From authorized remote Windows device, HTTP reads of `https://factoreasy.ir/?cleanPrint=20261012` and `https://factoreasy.ir/js/print.js?v=20261012-clean-invoice-print-v1` confirmed the live HTML references new print bundle (`True`), the bundle includes `stageInvoicePrint(containerHtml,spec)` (`True`), and the old `draftMark` string is absent (`False`). This verifies published code/asset, **not** physical hardcopy success.