فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
docs(A01): third-party cheque endorsement evidence and remaining financial gates
davoodmehraban89 committed
Oct 22, 2026 at 23:38 UTC
c748a30356a3e282f4e12b9eb4a7956ad6996452
1 file changed
+11
STATUS.md
+11
@@ -155,3 +155,14 @@ Review CI on latest A03 PR head, fix failing fixtures and ensure restore authori
155
- **Exact post-merge main SHA `dbab4e5857aacc062f423c1d84c165541e9d429b`**: [quality 39552039952](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39552039952) completed SUCCESS, 273/273 Linux and 273/273 Windows tests plus build/audit/installer; [native Windows 39552039783](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39552039783) completed SUCCESS, same `chequeEventDateDifferentFromDueDate:true` evidence on actual installed candidate.
156
- Three review perspectives documented on PR #128 are sequential checks by **one assistant**, not independent agents. Scope is event-date correctness only, **not** a full cheque endorsement/reversal or post-clearance correction state machine. Customer-device data, accountant signoff, real printer and physical power-loss tests are absent. `A01.accepted=false`; `INDEPENDENT_QA=false`; `DATA_BACKUP=false`; A03/A04 software gates remain true. No public release.
157
- Next A01 actions: cheque reassignment / return / reversal and financial reconciliation with approved policy and negative E2E, then unresolved commercial corrections; full independent financial signoff is still required for release acceptance.
158
+
159
+## A01 third-party cheque endorsement — 2026-10-22 (MERGED; A01 STILL OPEN)
160
+
161
+- PR #130 (https://github.com/davoodmehraban89/Factor-easyPro/pull/130) merged in main at `fb8f1482fdb85ca87e7a93cbcb64b7ed1b2bc51a`. Previously `changeChequeStatus(...,'spent')` debited account 201 for the original cheque drawer, despite describing a transfer to **a different person**. The finance service now requires a real same-company third-party endorsee distinct from the original drawer and strict `explicitlyApproved===true`. Debit 201 has the **endorsee** reference and credit 105 retains the **original drawer** reference; no cash transaction is fabricated. This remains limited to an initial inbound cheque transition from `pending`.
162
+- The cheque UI now provides an endorsee selector and explicit second confirmation dialog; the controller already forwards the options. The status row retains endorsee, approver and business date; an immutable, uniquely-keyed `document_corrections` `endorsement` receipt with original drawer and endorsee identities, correlation journal ID and actor is appended atomically alongside cheque update, balanced journal and A03 audit.
163
+- Two added Node regressions assert no writes on missing/nonexistent/cross-company/same-drawer payee or missing/string confirmation; a successful endorsement posts two GL lines against **different** contact IDs, with a single immutable correction and no treasury receipt; duplicate endorsement is rejected. An intentionally conflicting correction idempotency key verifies rollback of provisional cheque, journal, audit, treasury and correction writes.
164
+- An installed Windows NSIS/Tauri WebView2 UI flow creates a synthetic inbound cheque, selects the third party, rejects missing payee, asserts **zero writes before confirmation**, and confirms account/contact dimensions, linked immutable correction and no phantom cash after confirmation.
165
+- **Exact final PR-head SHA `affa4d38cb50ecc9e9a26c45ae4a04d8bc8fed88`**: [quality 39843781285](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39843781285) completed SUCCESS, 275/275 Linux and 275/275 Windows tests plus build/audit/Windows installer; [installed native VM 39843781284](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39843781284) completed SUCCESS, including `missingEndorseeRejected:true`, `confirmationRequiredBeforeWrite:true`, `endorseeLedgerDimensionCorrect:true`, `drawerChequeAssetPreserved:true`, `appendOnlyEndorsementCorrelated:true`, `noPhantomCash:true`.
166
+- **Exact postmerge main SHA `fb8f1482fdb85ca87e7a93cbcb64b7ed1b2bc51a`**: [quality 39845074404](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39845074404) completed SUCCESS, 275/275 Linux and 275/275 Windows plus packaging; [installed native VM 39845074702](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39845074702) completed SUCCESS with same endorsement scenario and all six native assertions true.
167
+- Review recorded in PR #130 is sequential work by **one assistant**, not independent QA. Operator confirmation is not a cryptographic signature or independent second signer. Further endorsement/reversal after `spent` or `cleared`, bounced-after-clearing treatment, actual payable balance allocation and all commercial document correction variants still need business policy, negative tests and accountant signoff. A01 remains **accepted=false**; A03 and A04 remain true; A02/A05/A06/A07/A08, INDEPENDENT_QA and DATA_BACKUP remain false. No customer database was accessed, no public release issued.
168
+- Next A01: design and verify post-clearing cheque reversal / dishonour and subsequent endorsed-cheque return without directly mutating posted status or journal history. Accounting entries with material judgment require an approved policy before enabling customer use.