Revision 8529496f
Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt
templates/webpages/requirement_spec/_show_time_and_cost_estimate_item.html | ||
---|---|---|
1 |
<tr class="listrow"> |
|
2 |
<td style="padding-left: [%- level * 50 -%]px"> |
|
3 |
[%- item.fb_number _ ": " _ item.description_as_restricted_html -%] |
|
4 |
</td> |
|
5 |
<td>[%- HTML.escape(item.complexity.description) -%]</td> |
|
6 |
<td>[%- HTML.escape(item.risk.description) -%]</td> |
|
7 |
[%- IF !item.children.size -%] |
|
8 |
<td align="right" nowrap>[%- P.format_man_days(item.time_estimation, skip_zero=1) -%]</td> |
|
9 |
[%- UNLESS SELF.requirement_spec.is_template %] |
|
10 |
<td align="right" nowrap>[%- LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor, 2) -%] EUR</td> |
|
11 |
[%- END %] |
|
12 |
[%- ELSE -%] |
|
13 |
<td> </td> |
|
14 |
<td> </td> |
|
15 |
[%- END -%] |
|
16 | 1 |
[% USE HTML %] |
17 | 2 |
[% USE LxERP %] |
18 | 3 |
[% USE P %] |
4 |
|
|
5 |
<tr> |
|
6 |
<td style="padding-left:[% level * 50 %]px;"> |
|
7 |
[% item.fb_number _ ": " _ item.description_as_restricted_html %] |
|
8 |
</td> |
|
9 |
<td>[% HTML.escape(item.complexity.description) %]</td> |
|
10 |
<td>[% HTML.escape(item.risk.description) %]</td> |
|
11 |
[% IF !item.children.size %] |
|
12 |
<td class="right">[% P.format_man_days(item.time_estimation, skip_zero=1) %]</td> |
|
13 |
[% UNLESS SELF.requirement_spec.is_template %] |
|
14 |
<td class="right">[% LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor, 2) %] EUR</td> |
|
15 |
[% END %] |
|
16 |
[% ELSE %] |
|
17 |
<td> </td> |
|
18 |
<td> </td> |
|
19 |
[% END %] |
|
19 | 20 |
</tr> |
20 | 21 |
|
21 |
[%- IF item.children.size -%]
|
|
22 |
[%- FOREACH child = item.children_sorted -%]
|
|
23 |
[%- INCLUDE 'requirement_spec/_show_time_and_cost_estimate_item.html'
|
|
24 |
section = section
|
|
25 |
item = child
|
|
26 |
level = level + 1 -%]
|
|
27 |
[%- END -%]
|
|
22 |
[% IF item.children.size %]
|
|
23 |
[% FOREACH child = item.children_sorted %]
|
|
24 |
[% INCLUDE 'requirement_spec/_show_time_and_cost_estimate_item.html'
|
|
25 |
section = section |
|
26 |
item = child |
|
27 |
level = level + 1 %]
|
|
28 |
[% END %]
|
|
28 | 29 |
|
29 |
<tr class="listrow subtotal"> |
|
30 |
<td style="padding-left: [%- (level + 1) * 50 -%]px" colspan="3">[%- LxERP.t8("Sum for #1", item.fb_number) -%]:</td> |
|
31 |
<td align="right" nowrap>[%- P.format_man_days(item.time_estimation, skip_zero=1) -%]</td> |
|
32 |
[%- UNLESS SELF.requirement_spec.is_template %] |
|
33 |
<td align="right" nowrap>[%- LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor, 2) -%] EUR</td> |
|
34 |
[%- END %] |
|
35 |
</tr> |
|
36 |
[%- END -%] |
|
30 |
<tr class="subtotal"> |
|
31 |
<td style="padding-left:[% (level + 1) * 50 %]px;" colspan="3">[% LxERP.t8("Sum for #1", item.fb_number) %]:</td> |
|
32 |
<td class="right">[% P.format_man_days(item.time_estimation, skip_zero=1) %]</td> |
|
33 |
[% UNLESS SELF.requirement_spec.is_template %] |
|
34 |
<td class="right">[% LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor, 2) %] EUR</td> |
|
35 |
[% END %] |
|
36 |
</tr> |
|
37 |
[% END %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/requirement_spec/_show_time_and_cost_estimate_item.html