@davoodmehraban89 / Factor-easy / commits / 72aa7b6
Fork 0

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

docs: scope minimal Issue229 linked draft UI classification patch

davoodmehraban89 committed Nov 22, 2026 at 16:39 UTC 72aa7b63f3f223b236fe7c7692ec9ce4740417be
1 file changed +8
PROJECT_STATE.md
+8
@@ -606,3 +606,11 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
606 - **QA facts:** immutable code SHA `bd244962915824d0ad825e99b5cda4d530f18402` had exact-SHA Quality/WP1/WP2/Security SUCCESS; the preceding docs-head `3e10e8c24892b36cc52dbaf4ad2e484793cc077e` had exact-SHA Quality/WP2/Security SUCCESS while WP1 still running at later check. New docs HEAD `299893e1e0e8f6b5232ea8d98306f0449caf1c55` triggered new GitHub CI (Quality 45021776472, WP1 45021776508, WP2 45021776497, Security 45021776444), **in progress** at this checkpoint. Do not infer pass for successor documentation commits until individually completed.
607 - **Owner reporting instruction:** after each verified milestone, report A–F as short single-row percentages, mapping six-phase 0–5 without presenting them as measured facts: currently A audit/architecture 90%, B server financial core 50%, C draft-first lifecycle 20%, D ledger health 55%, E UX 50%, F release readiness 10%. These estimates **did not rise** because only QA/documentation was delivered; update only with accepted product evidence.
608 - **No release action:** PR231 remains Draft/unmerged, main `dab1a45fcfc4f12e675cfe055e477138cd3e99fa` unmodified, no hosted DB/production access, SQL schema/RLS/Auth/grants, financial app code, migrations or posted history changed. Next: verify exact HEAD CI and independent Codex-main adoption; avoid parallel accounting engine.
609 +
610 +
611 +### 2026-11-22 — ISSUE229-UI-STATE: owner continuation, isolated linked-draft projection repair (decision BEFORE code)
612 +- **Owner request:** continue actual execution and provide concise A–F progress percentages after each verifiable checkpoint. Canonical six phases 0 audit/architecture, 1 server financial core, 2 source/journal lifecycle, 3 ledger health, 4 UX, 5 sales readiness map to A/B/C/D/E/F respectively. Conservative starting estimates A90/B50/C20/D55/E50/F10; these are judgments, not measured metrics. Do not raise Phase C/F merely because QA reproduces product P0.
613 +- **Remote evidence:** protected main remains `dab1a45fcfc4f12e675cfe055e477138cd3e99fa`; Draft PR231 head `a244a0cf88a98f9a7940537a3f494ee98a5238a6`, exact-head Quality 45021915129/WP1 45021915045/WP2 45021915017/Security 45021915055 all SUCCESS. Issues216 and 229 still P0 OPEN. QA real-JWT sale and purchase approval bypass persists.
614 +- **New *separate* scoped branch:** `fix/issue229-linked-draft-status-20261122`, created from exact PR231 head. Fix **only** the UI classification of a business source with an existing **draft** linked journal in `js/invoices.js::invoiceDocumentStatus` and `js/purchases.js::purchaseDocumentStatus`. Current invoice logic incorrectly labels any linked voucher as posted; purchase logic labels linked draft legacy_review. Ensure conflicting posted source flags against linked draft yield `legacy_review`, and missing linked voucher is not misrepresented as posted solely because link ID is nonempty. Do not alter server RPC/migrations/financial posting, original posted history, generic sync, RLS or permissions.
615 +- **Acceptance:** turn exactly the SECOND Issue229 `test.fail` browser case into a normal PASS (leave the purchase Save auto-post expected RED untouched), and strengthen status test for linked draft, conflicting statuses and dangling link, without weakening posted/reversed/tenant-safe gates. Verify syntax and exact-head Quality/WP1/WP2/Security on an isolated Draft PR stacked on PR231; independent Codex-main review before merge. No production/main changes or deployment.
616 +- **Next:** commit minimal source/test patch after this pre-code decision and inspect real CI with exact code SHA. Report A–F conservatively; only raise E/C marginally on actual verified successful UI regression, not claim closure of Issue229.