Fix indentation
This commit is contained in:
parent
1826274ccc
commit
625e0635fd
@ -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((
|
||||||
|
@ -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((
|
||||||
|
Loading…
x
Reference in New Issue
Block a user