سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 13:00 UTC
docs(finora): register Issue223 independent browser QA before test implementation
davoodmehraban89 committed
Nov 23, 2026 at 12:10 UTC
aa97170e1bcc4dbb0345e989f3338436dfccd1bc
1 file changed
+9
PROJECT_STATE.md
+9
@@ -796,3 +796,12 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
796
### 2026-11-23 — FIN-QA-ISSUE238-WAREHOUSE-COMPANY-READMODEL / actual test fixture correction before rerun
797
- Replaced the **one** shared observed active-company foreign-purchase status expectation from `posted` to `legacy_review` in new Playwright test, based on exact failed browser trace at SHA `f1c80fd2043461eb6b1bec163898570d2a55e646`. The foreign fixture's actual company-B journal remains source-linked POSTED, company scoped and balanced in `issue238SeedPostedPurchase`; only source projection seen from active company A is `legacy_review`. All quantities, costs, physical warehouse absence, company filters, posted-only company A Kardex, 6/150 known current mismatch and required 2/50 remain unchanged. Third-state fail-closed remains.
798
- Previous initial `Quality #45120021818` was FAIL 1/268, not a successful QA gate; Security #45120021767 and WP2 #45120021716 SUCCESS on that old SHA only. Full exact-head CI rerun must be verified before acceptance. QA/doc-only; no product code or data changed.
799
+
800
+
801
+### 2026-11-23 — FIN-QA-223-MANUAL-KARDEX / decision BEFORE test changes
802
+- Owner asked to continue from completed Stage A Draft PR241. Rechecked live GitHub: protected `main dab1a45fcfc4f12e675cfe055e477138cd3e99fa`; proposed financial base PR218 `bcd8d4eebd4f6852ecf8090670741d81dbc27332` Draft; PR240 QA baseline `790772b98668c052152846bf3481d21659273acf` Draft; no new PR242+ was open at task start. PR241 final head `91c21a5e7c6dc2f679bd7a61c18c8f032ed79bf6` has docs-only successful Quality/Security, not financial acceptance. Existing core product P0 defects remain owner-held.
803
+- **Non-overlap selection:** [Issue223](https://github.com/davoodmehraban89/Factor-easy/issues/223) identifies a *distinct* source-level manual stock movement Kardex gap still **unexecuted**, unlike four executed Phase5 PR240 cases. Read exact staged `js/products.js::productKardexRows` at PR240: it adds all same-owner `datastore.stockMovements` with no company or posted filter and unsigned outgoing/transfer quantity. `js/phase5-enterprise.js::p5ManualEvents` already filters active company + posted status and applies warehouse sign. This is source evidence, **not** a proven SQL RLS breach or actual browser defect before running tests.
804
+- Create *QA-only* child branch `qa/finora-issue223-manual-kardex-browser-red-20261123` from exact PR240 SHA. Permitted files: existing `scripts/accounting-document-workflow.spec.js`, append-only `PROJECT_STATE.md` and existing `docs/EXECUTION_STATUS.md`. No application `js/`, SQL/migration, financial API, Auth/RLS/organization/sync, workflows, production, merge/release or posted history changes. Codex-main remains sole financial implementation owner and final reviewer.
805
+- Proposed executable browser scenarios use existing authenticated synthetic Supabase harness, one product and strictly verified fixtures: (1) same-owner other company posted adjustment excluded; (2) own-company draft adjustment excluded; (3) own posted `adjustment_out` negative against valid opening; (4) own posted inter-warehouse transfer contributes zero to **company-aggregate Kardex** while Phase5 W1 decreases and W2 increases. The last requirement is deliberately only net aggregate zero; exact row presentation/per-warehouse costing remain Codex-main policy.
806
+- **Fail-closed test contract:** require expected fixed projection or one exact known broken fingerprint, otherwise ordinary test failure; `test.fail` only when current known bad projection actually matches. No generic xfail, skip, diluted expectation, or incorrect claim that green QA means product repair. Ensure test fixture doesn't contain unrelated purchases/invoices. Prior PR240 tests untouched.
807
+- Validate actual GitHub Quality (browser run markers), WP1/WP2/Security trigger/results on exact final SHA, record independent review as not performed unless real. Roadmap/phase estimates A90/B50/C20/D55/E53/F10 stay unchanged. No backup-connection request for historical conversion; no historical conversion authorized.