844afd0b7c76211080d1ba589d4a3f431765d1b2
[kivitendo-erp.git] / templates / webpages / requirement_spec / _show_time_and_cost_estimate_item.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE P -%]
2 <tr class="listrow">
3  <td style="padding-left: [%- level * 50 -%]px">
4   [%- P.simple_format(item.fb_number _ ": " _ item.description) -%]
5  </td>
6  <td>[%- HTML.escape(item.complexity.description) -%]</td>
7  <td>[%- HTML.escape(item.risk.description) -%]</td>
8  [%- IF !item.children.size -%]
9   <td align="right" nowrap>[%- P.format_man_days(item.time_estimation, skip_zero=1) -%]</td>
10   <td align="right" nowrap>[%- LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate, 2) -%] EUR</td>
11  [%- ELSE -%]
12   <td>&nbsp;</td>
13   <td>&nbsp;</td>
14  [%- END -%]
15 </tr>
16
17 [%- IF item.children.size -%]
18  [%- FOREACH child = item.children -%]
19   [%- INCLUDE 'requirement_spec/_show_time_and_cost_estimate_item.html'
20               item  = child
21               level = level + 1 -%]
22  [%- END -%]
23
24  <tr class="listrow subtotal">
25   <td style="padding-left: [%- (level + 1) * 50 -%]px" colspan="3">[%- LxERP.t8("Sum for #1", item.fb_number) -%]:</td>
26   <td align="right" nowrap>[%- P.format_man_days(item.time_estimation, skip_zero=1) -%]</td>
27   <td align="right" nowrap>[%- LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate, 2) -%] EUR</td>
28  </tr>
29 [%- END -%]