@davoodmehraban89 / Factor-easy / commits / 6d8fd58
Fork 0

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

docs(pilot): record owner go-ahead and purchase correction scope before implementation

davoodmehraban89 committed Oct 14, 2026 at 08:50 UTC 6d8fd58a63d3d46502c1be208f24dce54aee4a74
1 file changed +6
PROJECT_STATE.md
+6
@@ -191,6 +191,12 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
191 - **Explicitly not implemented / not accepted:** purchase invoices, receipts/payments, expenses/income, electronic submitted tax documents, legacy records without valid source-voucher linkage, locked fiscal years, adversarial second-user/tenant tests, real production owner corrective edit/repost. Source-specific inventory/settlement contracts require separate verified slices. No automatic unposting or physical deletion of posted records. Rollback of software cannot delete future legitimate compensating financial entries.
192 - Boundary: no Supabase DDL/DML/permissions/Auth/RLS/roles, paid resource, SMS, real financial-history rewrite or live posted user record mutation occurred in this engineering delivery. Owner pilot acceptance and F0-01 slowness remain OPEN. Next: separately controlled purchase-correction workflow and authorized non-financial/synthetic owner smoke.
193
194 +### 2026-10-14 Owner approves in-system pilot correction rollout and continuation — PURCHASE SLICE STARTED
195 +- **New owner instruction:** «تاییده انجام بده من می خوام داخل سیستم ببینم» following PR #124 sale/manual document correction. Live protected `main=3f596568ccbfb8a63e980e672dbb45aa49bd25ef` has Quality `38515487117`, Security `38515487169`, Release `38515771924`, Pages `38515796836` all SUCCESS on this same commit. Existing sale/manual controls should be visible at `factoreasy.ir` under حسابداری ← مدیریت اسناد / فهرست اسناد حسابداری after fresh load; real user login/browser proof still open.
196 +- **Scope now:** extend the same traceable posted→compensating reversal→editable corrective draft→repost/cancel UX to **purchase invoices**, including purchase list and central document manager, with server-acknowledged sync and correct warehouse/project reporting that excludes reversed originals and unposted corrective drafts. Retain legacy purchases outside automatic conversion unless source/voucher mapping is proven. Cover posted settlement references, ownership/company and locked fiscal year fail-closed. For already posted purchase rows keep existing source and ledger history unchanged. Normal new purchase posting behavior should not silently change unless explicitly tested.
197 +- **Next dependencies and constraints:** first verify current source and live Supabase read-only, use isolated synthetic read/write fixture for tests and same-commit state notes, PR-head and protected-main Quality/Security/Chromium/Golden/three disposable PostgreSQL plus gated Pages. Do not mutate real production financial records or Auth/RLS/schema. Receipts/payments and expenses/income remain distinct follow-up types and are not implemented by a purchase-only slice.
198 +- **Rollback:** revert specific JS/document manager/QA PR. A real user financial reversal is immutable historical evidence and cannot be erased by code rollback. Owner acceptance on actual app is separate from CI.
199 +
200 ## Current change ledger
201 | 2026-10-07 | Owner requested accounting/product usability refinement from live screenshots: automatic non-user-entered floating-detail codes, contextual in-product guides (especially accounting/chart/dimensions), remove duplicate product internal tax ID and use product code as internal item ID, strengthen in-control product/person search, introduce hierarchical product group/subgroup coding with deterministic 6-digit product codes, and keep sale/purchase commercial-document workspace layout stable while only semantic fields change. | **IMPLEMENTED / LOCAL VERIFICATION PASSED / CI PENDING** | Baseline main = `7e58c75f7d754f378d94ca3f356c1ae580aa7ee3`. Automatic dimension type/value codes, contextual guides, product-code-as-internal-ID, normalized multi-token search, and additive six-digit product coding implemented. Existing historical codes preserved. Commercial sale/purchase workspaces now share a stable `صدور سند تجاری` header/actions layout; duplicate purchase sidebar injection removed; the public selector is the single document-type selector and the legacy internal invoice-kind control is hidden. Local syntax/static/commerce/UX/accounting phases 2–6/Golden checks passed; protected-branch CI remains pending. |
202