From be0b50fedd088c2db3f3c0d711c4b61aaced058e Mon Sep 17 00:00:00 2001 From: TMA Date: Thu, 17 Jul 2025 16:57:42 +0200 Subject: [PATCH] Fix i_transaction_id as v_transaction_id elsewhere. --- brmbar3/schema/0015-shop-buy-for-cash.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brmbar3/schema/0015-shop-buy-for-cash.sql b/brmbar3/schema/0015-shop-buy-for-cash.sql index 5cf12bb..90cb883 100644 --- a/brmbar3/schema/0015-shop-buy-for-cash.sql +++ b/brmbar3/schema/0015-shop-buy-for-cash.sql @@ -60,12 +60,12 @@ BEGIN -- the item INSERT INTO public.transaction_splits (transaction, side, account, amount, memo) - VALUES (i_transaction_id, 'debit', i_item_id, i_amount, + VALUES (v_transaction_id, 'debit', i_item_id, i_amount, 'Cash'); -- the cash INSERT INTO public.transaction_splits (transaction, side, account, amount, memo) - VALUES (i_transaction_id, 'credit', i_cash_account_id, v_cost, + VALUES (v_transaction_id, 'credit', i_cash_account_id, v_cost, i_item_name); -- Return the cost