Commit 5b7ff689 authored by Frank Bergmann's avatar Frank Bergmann

Fixed issue with dependency tree

parent cec70eff
<h1>'@locale@'</h1>
<if 1 eq @show_html_p@> <if 1 eq @show_html_p@>
<table> <table>
<tr valign=top> <tr valign=top>
......
...@@ -50,7 +50,7 @@ lappend main_project_id 0 ...@@ -50,7 +50,7 @@ lappend main_project_id 0
set costs_sql " set costs_sql "
select cost_id, item_id, cost_name, cost_nr, cost_type_id, cost_status_id, item_source_invoice_id, select cost_id, item_id, cost_name, cost_nr, cost_type_id, cost_status_id, item_source_invoice_id,
cost_amount, cost_currency, coalesce(cost_amount, 0.0) as cost_amount, cost_currency,
CASE WHEN item_source_invoice_id = cost_id THEN null ELSE item_source_invoice_id END as source_id CASE WHEN item_source_invoice_id = cost_id THEN null ELSE item_source_invoice_id END as source_id
from ( from (
select c.*, select c.*,
...@@ -69,7 +69,7 @@ set costs_sql " ...@@ -69,7 +69,7 @@ set costs_sql "
c.cost_type_id not in (3714, 3718, 3720, 3722, 3726, 3736, 73102) c.cost_type_id not in (3714, 3718, 3720, 3722, 3726, 3736, 73102)
UNION UNION
select c.*, select c.*,
c.amount as cost_amount, coalesce(c.amount, 0.0) as cost_amount,
c.currency as cost_currency, c.currency as cost_currency,
i.*, i.*,
ii.* ii.*
......
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