سامانه صدور فاکتور و حسابداری
docs: record real UI VAT mismatch, v2 decimal draft and Stage 2.1-only approval
davoodmehraban89 committed
Oct 17, 2026 at 19:55 UTC
0c2f1a5219613d20bb957d57a423f086d4d5dc1e
1 file changed
+8
PROJECT_STATE.md
+8
@@ -132,3 +132,11 @@
132
- شاهد مبنای پذیرش: SHA `83e031e1cda4b38662d37d61b01b6031634e854f`، Run `39013215513` SUCCESS، Job `117339931348` Steps 13–32، oracle sale Job `117339931168` Step 7، oracle purchase Job `117339931270` Step 7. Job `117339931399` Step 7 فقط EXPECTED RED است و سازگاری کلاینت نیست. Run اسناد قبلی `39026945693` روی SHA `a4a3167f9a3f5757c9e47bfc525d436dacf84ae4` نیز SUCCESS.
133
- Stage 2 **فقط طرح سند دستی** بدون کدنویسی تا تصویب طرح توسط مالک؛ Stage 3 فقط گزارش مباحث همارزی JS/SQL، مقدار اعشاری، روش پرداخت، Production read-only و COGS. تا تأیید بعدی، **هیچ کد Stage 2 و هیچ تغییر روی مسیر ورود**. بدون Production DDL/DML، بدون merge به `main`، بدون Phase 1B و بدون Production enforce.
134
- نکتهٔ انتشار: snapshotهای فعلی سازمانها هنوز تأیید مالک همان سازمان را ندارند؛ استقرار Production و E2E واقعی جداگانه نیازمند مجوز و ارزیابی است.
135
+
136
+
137
+### 2026-10-17 — Owner Stage 2.1-only consent; Stage 3 field-parity blocker
138
+- **اوراکلهای sale/purchase با ورودی کامل قرارداد سبز شدند ولی با خروجی UI واقعی همارز ثابت نشدهاند.** Prior run 39013215513, jobs 117339931168 and 117339931270 step 7 generated complete source payloads, NOT actual invoice/purchase UI writes.
139
+- Production **READ-ONLY aggregates**: 15/15 formal and non_formal invoice records have **no `vatMode`**, so **under the current server SQL contract they would be rejected**; purchase records: **zero**. Inline SELECT-only reason-code evaluation: FINORA_SOURCE_VAT_RULE_INVALID=15; FINORA_SOURCE_TYPE_OR_VERSION_MISMATCH=4 pre-invoices. No retroactive validation or data changes.
140
+- **Stage 3 only, not implemented:** real JS/SQL parity, currency scale, quantity decimals, payment methods, COGS and actual UI integration. Proposed **v2 draft, not approved for implementation**: quantities <=3 decimal places when unit permits; count units integer only; per-line round-half-up to integer rial using scaled integer arithmetic in JS; total from rounded lines; reject overprecision explicitly; validate client/server with same seed and actual UI functions. Monetary unit semantics for non-rial settings need owner-approved policy; do NOT silently multiply/divide by 10. Payment and inventory valuation remain separate owner decisions.
141
+- **Before any Production enforce**, approve explicit opening/closing voucher contracts, and organization-owner role assignments for BOTH live organizations. Opening/closing are disabled under Stage 2 enforce pending owner approval.
142
+- Stage 2 scope **ONLY step 2.1 infrastructure + local canaries**: production-target preconnection deny, authenticated direct posted-status rejection, real negative/positive CI runs and artifacts, Draft PR marked DO NOT MERGE after PR/security checks. Stage 2.2 manual voucher browser lifecycle is **NOT authorized** and must not start; atomic correction/reversal RPC and audited owner-controlled server flag are **design only** until separately approved. Login resilience path STOPPED; no merge main, no Production DDL/DML, no Production enforce, no Phase 1B.