forked from brmlab/brmbar-github
Schema 0017: fix semicolon before return
This commit is contained in:
parent
f7f137821b
commit
1eff329496
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ BEGIN
|
|||
COALESCE(SUM(CASE WHEN side='credit' THEN amount ELSE 0 END),0) crsum,
|
||||
COALESCE(SUM(CASE WHEN side='debit' THEN amount ELSE 0 END),0) dbsum
|
||||
INTO v_crsum, v_dbsum
|
||||
FROM public.transaction_splits ts WHERE ts.account=4
|
||||
FROM public.transaction_splits ts WHERE ts.account=4;
|
||||
RETURN v_dbsum - v_crsum;
|
||||
END; $$;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue