From afb5476c2d4f3a6bff1c26c5295a2ba819310219 Mon Sep 17 00:00:00 2001 From: TMA Date: Sat, 12 Jul 2025 19:11:25 +0200 Subject: [PATCH] o_id -> i_id --- brmbar3/schema/0020-shop-undo.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brmbar3/schema/0020-shop-undo.sql b/brmbar3/schema/0020-shop-undo.sql index a279580..d2d12b3 100644 --- a/brmbar3/schema/0020-shop-undo.sql +++ b/brmbar3/schema/0020-shop-undo.sql @@ -41,7 +41,7 @@ DECLARE v_old_split public.transaction_splits%ROWTYPE; BEGIN SELECT * INTO v_old_trn FROM public.transactions WHERE id = i_id; - INSERT INTO transactions ("description") VALUES ('undo '||o_id||' ('||v_old_trn.description||')') RETURNING id into v_ntrn_id; + INSERT INTO transactions ("description") VALUES ('undo '||i_id||' ('||v_old_trn.description||')') RETURNING id into v_ntrn_id; FOR v_old_split IN SELECT * FROM transaction_splits WHERE "transaction" = i_id LOOP