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

docs: record Persian print digit browser QA, screenshot and CI evidence

davoodmehraban89 committed Oct 11, 2026 at 16:43 UTC 9137a804a97131c8efcefb98db44e6b86f04fda7
1 file changed +4 -1
PROJECT_STATE.md
+4 -1
@@ -187,6 +187,9 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
187 - No schema, RLS, Auth, roles, tenant membership, Supabase records, invoices, posting, or production data changed. Caveat: user's actual authenticated product master and post-merge site cache/live refresh NOT YET VERIFIED at this checkpoint. Verified after merge: PR #69 merged as `7a3f1f7703ff128bcbbf0906e44889b2833e3dd7`; exact SHA main Quality `38135114282` SUCCESS, Security `38135114272` SUCCESS, Release gate `38135220443` SUCCESS, gated Pages deployment `38135239645` SUCCESS; `CNAME` maps Pages to `factoreasy.ir`. Remote Windows Desktop Commander remains connected and Chromium controlled 6/6 PASS, but attempted Windows interactive desktop capture returned `CopyFromScreen: The handle is invalid`, and direct DNS resolution of `factoreasy.ir` failed from remote and sandbox environments. Thus **a real authenticated user-session product-list lookup and domain HTTP inspection are NOT VERIFIED**; do not claim them. Screenshot artifacts were created only on the authorized remote QA machine, with synthetic inputs, and visually returned to the user in chat. No user finance data was changed. Exactly one safest next action: owner hard-refreshes the deployed site and searches a known real product such as `هارد` in invoice item box; if it still fails, capture screenshot plus browser Console error without sharing credentials.
188
189 ## 2026-10-11 invoice print Persian-digit consistency — owner request
190 -- Owner reports mixed Persian/Latin glyph digits on printed invoices, including invoice number and trailing digits of date. Requested consistent Persian numerals everywhere in invoice print. **REQUEST RECORDED / IMPLEMENTATION IN PROGRESS**.
190 +- Owner reports mixed Persian/Latin glyph digits on printed invoices, including invoice number and trailing digits of date. Requested consistent Persian numerals everywhere in invoice print. **IMPLEMENTED / REMOTE CHROMIUM 4 OF 4 PASS / PR QUALITY+SECURITY PASS / MERGE PENDING**.
191 - Baseline main `7eccf2757c99ea19ede3bac98847be0d2b0782b3`. Scope: all human-readable digit text in regular formal/non-formal/pre-invoice and official taxpayer invoice print/preview (including page counters, monetary amounts, numbers, IDs embedded as visible labels) while retaining original ASCII serial/ID/date values in storage, attributes, URLs, machine integrations and journal calculations. No financial/database/RLS/auth/write changes.
192 - Required checks: verify exact live browser print and PDF DOM, synthetic values with mixed Latin, Eastern Arabic and Persian digits; ensure no Latin/Eastern-Arabic decimal glyphs remain in printable text, numeric totals intact, sensitive URL/attributes unchanged, preview and isolated iframe consistent, multi-page invoices intact. Final CI and gated Pages deployment only if tests pass. Rollback: revert specific PR.
193 +- Verified implementation on branch: `js/print.js` normalizes only rendered text nodes in preview, iframe/PDF, taxpayer and ordinary invoices; `js/purchases.js` applies same safe shared formatter to popup output. `index.html` cache-busts both bundles. Underlying values `PINV-31` and mixed `۱۴۰5/٠۷/19` remain unchanged in datastore; displayed `PINV-۳۱`, `۱۴۰۵/۰۷/۱۹`. HTML attribute/code remains literal `TAX12A340`; visible human-readable digits become Persian. No data/permission mutations.
194 +- On Windows remote `DESKTOP-71SJ63M`, isolated test server explicitly verified new asset (port 51867, avoiding occupied 4173/4175). `node scripts/syntax-check.mjs` passed 54 JS + 50 MJS, `node scripts/ux-hardening-r2-check.mjs` PASS, `npx playwright test scripts/taxpayer-print.spec.js` PASS **4/4 real Chromium** (official taxpayer landscape, image readiness, formal/nonformal/taxpayer digits, purchase popup) including PDF one-page assertions. Separate formal invoice screenshot `print-persian-formal-qa.png` captured via remote browser, text-node scan reports **0 Latin/Arabic-Indic decimal glyphs**. Screenshot uses only synthetic information, not real customer invoice.
195 +- PR #71 initial head `f9129f5dc6fc52a78e76aa5e9bfe21b383926efd`: Quality `38142219556` **SUCCESS**, Security `38142219616` **SUCCESS**. Pending merge, main gated CI/Pages deployment, and owner-authenticated print check with actual production invoice. No change to tax ID submission, serial storage, numeric math, RLS, schemas or real accounting entries.