d051972479e6308fe403b3a346f78a6307cc20a2
[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   [%- item.fb_number _ ": " _ item.description_as_restricted_html -%]
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   [%- UNLESS SELF.requirement_spec.is_template %]
11    <td align="right" nowrap>[%- LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor, 2) -%] EUR</td>
12   [%- END %]
13  [%- ELSE -%]
14   <td>&nbsp;</td>
15   <td>&nbsp;</td>
16  [%- END -%]
17 </tr>
18
19 [%- IF item.children.size -%]
20  [%- FOREACH child = item.children_sorted -%]
21   [%- INCLUDE 'requirement_spec/_show_time_and_cost_estimate_item.html'
22               section = section
23               item    = child
24               level   = level + 1 -%]
25  [%- END -%]
26
27  <tr class="listrow subtotal">
28   <td style="padding-left: [%- (level + 1) * 50 -%]px" colspan="3">[%- LxERP.t8("Sum for #1", item.fb_number) -%]:</td>
29   <td align="right" nowrap>[%- P.format_man_days(item.time_estimation, skip_zero=1) -%]</td>
30   [%- UNLESS SELF.requirement_spec.is_template %]
31    <td align="right" nowrap>[%- LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor, 2) -%] EUR</td>
32   [%- END %]
33  </tr>
34 [%- END -%]