Commit 79dfeba2 authored by Frank Bergmann's avatar Frank Bergmann

Added cancellation invoice

parent 362d1397
......@@ -53,7 +53,7 @@ for {set year $start_year} {$year <= $today_year} {incr year} {
lappend year_sql_list "
,( select coalesce(sum(c.amount), 0.0)
from im_costs c
where c.cost_type_id = 3700 and
where c.cost_type_id in (select * from im_sub_categories(3700)) and
to_char(c.effective_date, 'YYYY') = '$year' and
to_char(c.effective_date, 'MM') = months.month
) as invoices_$year"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment