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

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

docs: record post-fix Quality 237/249, remaining failures and QA boundary (#216)

davoodmehraban89 committed Nov 22, 2026 at 01:45 UTC a651a345b2a8961e2aadbce8ffe6b2b9ddcca8e5
1 file changed +4
PROJECT_STATE.md
+4
@@ -449,3 +449,7 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
449 - **Next verification:** collect isolated browser traces for the three failure clusters at PR218 exact SHA, with matching organization membership fixture; compare current main/PR212 to classify regressions; then targeted RED/GREEN changes by designated implementation owner, followed by same-SHA Quality, Security, WP1, WP2 and independent review. No such rerun or green repair is claimed here.
450
451 - **2026-11-22 continuation / verified source-level root cause FIN-QA-218-01:** `js/accounting.js` declares `purchaseAffectsBalance` inside an IIFE, not on `window`. `js/products.js::productKardexRows` previously guarded its purchase loop with `typeof purchaseAffectsBalance==='function'`, always false in the independent module; therefore purchase Kardex=0 even when `productMovement` includes posted purchases (observed exact-head RED in Quality `44949211793`, 236 pass/13 fail). The original Kardex also omitted active-company filtering present in inventory movement. Scoped correction commit `91221fa4ca4abc98bedb6d9c074dfae4494c8cb3` uses `purchaseDocumentStatus` with posted/legacy_review and the same active-company/legacy-company rules as `productMovement` for purchase and sale lines. Existing `scripts/accounting-document-workflow.spec.js:485` and subsequent reversal/repost assertions are unchanged. **Post-fix CI and independent review must be inspected before acceptance**. The other 12 old failures are not attributed to this change. No SQL, source financial data, production changes or owner-occupied files changed.
452 +
453 +- **2026-11-22 post-fix CI result:** exact commit `0b3b1e1a19396279f40eb694ec752c459bfdfb87` [Quality 44954272409](https://github.com/davoodmehraban89/Factor-easy/actions/runs/44954272409) completed **FAIL**: 237 passed, 12 failed (previous exact-head RED was 236 passed, 13 failed). `scripts/accounting-document-workflow.spec.js:476` is no longer among failures; Kardex scenario passed in the suite. All three Quality DB jobs passed; browser static-quality failed. [Security 44954272331](https://github.com/davoodmehraban89/Factor-easy/actions/runs/44954272331) passed; [WP1 44954272389](https://github.com/davoodmehraban89/Factor-easy/actions/runs/44954272389) was in progress at this observation. WP2 not observed on this SHA. **This is test evidence, not production acceptance.**
454 +- **Remaining 12 failures classified without masking:** commerce route 2, phase0 invoice persistence 5, UX hardening 5. Logs for commerce and UX clicks show `#finora-membership-lock` intercepting events; UX hydration checkbox mismatch is a separate assertion. Invoice test harness seeds `QA_PROD` in its fake RPC server but the selector has zero matching options after `enterApp`; cause may be read/hydration or authorization, not yet proven. Fixtures replace `fetchCurrentUser`, `sb.from`, `sb.rpc` and abort Supabase network, so a browser fixture pass would not establish authorized real-service posting. These tests are not skipped, weakened or changed.
455 +- **Next work and ownership:** Codex main to review PR221 scoped Kardex change and resolve any overlapping canonical docs with PR220. Independent QA should collect membership-lock reason and tenant/company hydration snapshots on PR218/PR221 exact SHA, compare to permitted real membership fixture, then assign minimal correction to the owner of that module. No independent implementation of `sync.js`, `organization-rbac.js`, or `journal-ui.js` is authorized.