سامانه صدور فاکتور و حسابداری
test: document strict source autopost header fixture
davoodmehraban89 committed
Nov 17, 2026 at 23:36 UTC
f51e94eba2e0ff7e27d7913608e3c1d6c12efc2e
1 file changed
+2
-1
supabase/tests/wp1_phase1a_stage1_sql_behavior.sql
+2
-1
@@ -185,7 +185,8 @@ BEGIN
185
header-'sourceType'-'sourceId'-'voucherType'-'sourceVersion',lines);
186
RAISE EXCEPTION 'FINORA_STAGE1_C_ACCOUNTING_CREATE_ALLOWED';
187
EXCEPTION WHEN insufficient_privilege THEN NULL;END;
188
- -- Negative tests must fail BEFORE creating an orphan draft or audit entry.
188
+ -- Autopost source headers carry voucherType + sourceVersion; keep this fixture aligned with the strict RPC contract.
189
+-- Negative tests must fail BEFORE creating an orphan draft or audit entry.
190
BEGIN
191
PERFORM public.finora_journal_autopost(org_a,'SOURCE_C_AMOUNT_DENY',
192
'invoices','SOURCE_C_1',header,