سامانه صدور فاکتور و حسابداری
test(wp4): repair literal dollar-quoted DO boundaries without JS replacement expansion
davoodmehraban89 committed
Nov 23, 2026 at 22:57 UTC
a61d7393efcdc2ba333a52c14f1e5e61b2fa74c3
1 file changed
+3
-3
supabase/tests/wp4_journal_document_lifecycle.sql
+3
-3
@@ -28,7 +28,7 @@ BEGIN
28
'{"companyId":"WP4_COMPANY","code":"WP4C","name":"Credit fixture","postingAllowed":true,"active":true}'::jsonb);
29
END $fixture$;
30
31
-DO $
31
+DO $$
32
DECLARE
33
org uuid;
34
company text;
@@ -143,7 +143,7 @@ BEGIN
143
END $$;
144
145
-- Source <-> voucher draft deletion is atomic in both directions.
146
-DO $
146
+DO $$
147
DECLARE org uuid; company text; fy text; atf bigint;
148
BEGIN
149
SELECT id INTO org FROM public.organizations WHERE owner_user_id='b9000000-0000-4000-8000-000000000001' LIMIT 1;
@@ -191,6 +191,6 @@ BEGIN
191
IF EXISTS(SELECT 1 FROM public.records WHERE organization_id=org AND collection='journalVouchers' AND id='WP4_SOURCE_V_B')
192
THEN RAISE EXCEPTION 'WP4_SOURCE_DELETE_DID_NOT_DELETE_VOUCHER'; END IF;
193
RAISE NOTICE 'WP4_SOURCE_VOUCHER_ATOMIC_DELETE_PASS';
194
-END $;
194
+END $$;
195
196
ROLLBACK;