forked from brmlab/brmbar-github
Fix i_transaction_id as v_transaction_id elsewhere.
This commit is contained in:
parent
95e55aef23
commit
be0b50fedd
1 changed files with 2 additions and 2 deletions
|
@ -60,12 +60,12 @@ BEGIN
|
||||||
|
|
||||||
-- the item
|
-- the item
|
||||||
INSERT INTO public.transaction_splits (transaction, side, account, amount, memo)
|
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');
|
'Cash');
|
||||||
|
|
||||||
-- the cash
|
-- the cash
|
||||||
INSERT INTO public.transaction_splits (transaction, side, account, amount, memo)
|
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);
|
i_item_name);
|
||||||
|
|
||||||
-- Return the cost
|
-- Return the cost
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue