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