سامانه صدور فاکتور و حسابداری
test: clarify pending marker absence assertions
davoodmehraban89 committed
Nov 17, 2026 at 14:20 UTC
1ab27b0e146228ff9c4662f33af60787f1873466
1 file changed
+1
-1
supabase/tests/wp1_phase1a_stage1_sale_purchase_negatives.sql
+1
-1
@@ -120,7 +120,7 @@ BEGIN
120
IF NOT EXISTS(SELECT 1 FROM public.records WHERE organization_id=org AND collection='invoices'
121
AND id='SOURCE_C_1' AND data->>'journalVoucherId'='S_POST_1'
122
AND data->>'accountingStatus'='posted' AND data->>'documentStatus'='posted'
123
- AND NOT data ? 'accountingPostingPending') THEN
123
+ AND NOT (data ? 'accountingPostingPending')) THEN
124
RAISE EXCEPTION 'FINORA_SALE_SOURCE_LINK_NOT_ATOMIC';END IF;
125
r:=public.finora_journal_autopost(org,'P_POST_1','purchases','PUR_NEG_1',hdr_p,NULL);
126
IF r#>>'{voucher,status}'<>'posted' THEN RAISE EXCEPTION 'FINORA_PURCHASE_NOT_POSTED';END IF;