Fix indentation

This commit is contained in:
Jan Bader 2021-12-10 17:09:43 +00:00
parent 1826274ccc
commit 625e0635fd
2 changed files with 4 additions and 2 deletions

View File

@ -133,7 +133,8 @@ SELECT categories.id, categories.name, category_groups.name as group,
WHERE categories.id = t_hist.category_id AND t_hist.date < $1 WHERE categories.id = t_hist.category_id AND t_hist.date < $1
), 0) ), 0)
)::decimal(12,2) as available, )::decimal(12,2) as available,
( COALESCE(( (
COALESCE((
SELECT SUM(a_hist.amount) FROM assignments a_hist SELECT SUM(a_hist.amount) FROM assignments a_hist
WHERE categories.id = a_hist.category_id AND a_hist.date < $2 WHERE categories.id = a_hist.category_id AND a_hist.date < $2
), 0)+COALESCE(( ), 0)+COALESCE((

View File

@ -30,7 +30,8 @@ SELECT categories.id, categories.name, category_groups.name as group,
WHERE categories.id = t_hist.category_id AND t_hist.date < @to_date WHERE categories.id = t_hist.category_id AND t_hist.date < @to_date
), 0) ), 0)
)::decimal(12,2) as available, )::decimal(12,2) as available,
( COALESCE(( (
COALESCE((
SELECT SUM(a_hist.amount) FROM assignments a_hist SELECT SUM(a_hist.amount) FROM assignments a_hist
WHERE categories.id = a_hist.category_id AND a_hist.date < @from_date WHERE categories.id = a_hist.category_id AND a_hist.date < @from_date
), 0)+COALESCE(( ), 0)+COALESCE((