سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 01:45 UTC
Document verified Phase 1 and Phase 2 acceptance evidence
davoodmehraban89 committed
Sep 28, 2026 at 15:25 UTC
5114e9a9f2d7f9a5720ce0e58569f572491e942c
1 file changed
+28
docs/PHASE_1_2_VERIFICATION.md
new
+28
@@ -0,0 +1,28 @@
1
+# Phase 1–2 Verification Evidence
2
+
3
+Verified on 2026-09-28 against production repository and Supabase project.
4
+
5
+## Phase 1 — Core, Financial Accuracy, Security and Data Integrity
6
+
7
+- Cloud collections include purchases and first-class payments/settlements.
8
+- Sales/purchase/contact/company/project deletion guards preserve referenced financial history.
9
+- Sales receivables and purchase payables use allocated settlements without double-counting cheque lifecycle records.
10
+- Runtime self-check covers sales, purchases, settlements, contacts, companies and product references.
11
+- Production data integrity query reports zero invoice contact/company reference issues using the application's payload IDs.
12
+- Supabase performance advisor reports no findings.
13
+- Supabase security advisor has no critical finding. Remaining warnings are documented platform hardening items: authenticated SECURITY DEFINER RPC exposure (functions perform internal authorization) and leaked-password protection disabled.
14
+- GitHub Quality workflow is required as executable regression evidence; Security workflow runs CodeQL on main.
15
+
16
+## Phase 2 — Financial Operations and Accounting Completion
17
+
18
+- Purchase invoices support supplier, project/cost center, cash/credit settlement and active-company scoping.
19
+- Receipt/payment ledger supports inbound/outbound, partial invoice allocation, over-allocation prevention, edit/delete and cloud backup/sync.
20
+- Settlement allocation validates contact, direction, invoice type and cash/credit semantics.
21
+- Expenses/income support contact, project/cost-center and company attribution.
22
+- Derived inventory computes opening + purchases - sales without mutable stock side effects.
23
+- Project financial engine exposes sales, purchases, expenses, income, receipts, payments, accrual profit and cash net, scoped to the active company.
24
+- Projects and companies cannot be deleted while referenced by financial documents or settlements.
25
+
26
+## Verification boundary
27
+
28
+Static JavaScript syntax and application invariants are executed by GitHub Actions on every main push. CodeQL is executed by the Security workflow. Interactive browser/physical printer behavior is outside Phase 1–2 acceptance and belongs to Phase 3–4 QA.