سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 18:15 UTC
docs: record exact Persian invoice print release and verified production-domain browser evidence
davoodmehraban89 committed
Oct 11, 2026 at 16:49 UTC
4b6a293155287a215e72d36b488f2293da66260b
1 file changed
+6
-1
PROJECT_STATE.md
+6
-1
@@ -187,9 +187,14 @@ 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. **IMPLEMENTED / REMOTE CHROMIUM 4 OF 4 PASS / PR QUALITY+SECURITY PASS / MERGE PENDING**.
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. **MERGED / MAIN QUALITY+SECURITY+RELEASE+PAGES VERIFIED / LIVE READ-ONLY CHROMIUM QA PASS**.
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.
196
+
197
+### Persian print digits — final release verification 2026-10-11
198
+- PR #71 merged into protected `main` at exact commit `991c61f70980518e1b9570984108b0fbab025fd2`. Same-SHA main GitHub Quality `38142480225` **SUCCESS**, Security `38142480264` **SUCCESS**, Release gate `38142569490` **SUCCESS**, Pages deployment `38142585021` **SUCCESS**.
199
+- Independent remote desktop `DESKTOP-71SJ63M` GET `https://factoreasy.ir/?printDigitsQa=20261011` returned **HTTP 200**, exact deployed assets `js/print.js?v=20261011-persian-print-v1`, `js/purchases.js?v=20261011-persian-print-v1`, and fetched print bundle contains `localizePrintHtmlDigits`. Headless Chromium loaded the **real production domain's code**, generated a synthetic formal invoice without logging in, and inspected actual isolated printable text: **PASS, zero remaining ASCII/Eastern Arabic decimal digit glyphs**; original serial `PINV-31` and date `۱۴۰5/٠۷/19` remained untouched while human-visible print uses `PINV-۳۱`, `۱۴۰۵/۰۷/۱۹`. Remote screenshot `print-persian-formal-qa.png` was returned inline to owner; image is local QA artifact, not saved in repository.
200
+- Scope caveat: production user-authenticated real customer printer test, printer-driver headers and actual hardcopy **NOT VERIFIED**. No real invoice save/edit or financial data change, no schema/auth/RLS/permission change. Owner can hard-refresh then print-preview any existing saved invoice as a safe final visual check. Rollback: revert PR #71, redeploy gated Pages, and clear browser cache.