سامانه صدور فاکتور و حسابداری
test: normalize marker absence assertion syntax
davoodmehraban89 committed
Nov 17, 2026 at 14:23 UTC
3700c400468ed3c702ec1e17082812d20bfd3fcc
1 file changed
+1
-1
supabase/tests/wp1_phase1a_stage1_sale_purchase_negatives.sql
+1
-1
@@ -127,7 +127,7 @@ BEGIN
127
IF NOT EXISTS(SELECT 1 FROM public.records WHERE organization_id=org AND collection='purchases'
128
AND id='PUR_NEG_1' AND data->>'journalVoucherId'='P_POST_1'
129
AND data->>'accountingStatus'='posted' AND data->>'documentStatus'='posted'
130
- AND NOT data ? 'accountingPostingPending') THEN
130
+ AND NOT (data ? 'accountingPostingPending')) THEN
131
RAISE EXCEPTION 'FINORA_PURCHASE_SOURCE_LINK_NOT_ATOMIC';END IF;
132
PERFORM public.finora_journal_reverse(org,'S_POST_1','S_REVERSE_1','1405/07/24',
133
'برگشت حسابداری تست',v,NULL);