@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / fa2f21e
Fork 0

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

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 4, 06:45 UTC

test: verify commerce-only actor is denied accounting post of an existing org-A voucher

davoodmehraban89 committed Oct 16, 2026 at 17:07 UTC fa2f21e8c36a8aa6c6e4d2ad71eb6e0dcaa6d8f4
1 file changed +1 -1
supabase/tests/phase1a_stage1_sql_behavior.sql
+1 -1
@@ -137,7 +137,7 @@ BEGIN
137 r:=public.finora_journal_autopost(org_a,'SOURCE_DOC_C_1','invoices','SOURCE_C_1',header,lines);
138 IF r#>>'{voucher,status}'<>'posted' THEN RAISE EXCEPTION 'FINORA_STAGE1_SOURCE_POST_FAILED %',r;END IF;
139 BEGIN
140 - PERFORM public.finora_journal_post(org_a,'VOUCHER_B_1',1);
140 + PERFORM public.finora_journal_post(org_a,'VOUCHER_A_1',2);
141 RAISE EXCEPTION 'FINORA_STAGE1_C_ACCOUNTING_APPROVE_ALLOWED';
142 EXCEPTION WHEN insufficient_privilege THEN NULL;END;
143 RAISE NOTICE 'FINORA_STAGE1_ROLE_PASS source commerce create works without accounting approve';