X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec%2F_show_time_and_cost_estimate_item.html;h=d051972479e6308fe403b3a346f78a6307cc20a2;hb=cecc0509e2a2abeaca123ab95a2364eb98d0a380;hp=844afd0b7c76211080d1ba589d4a3f431765d1b2;hpb=c19b1e03fb03f195d86a5b78f8ce2338f745f599;p=kivitendo-erp.git
diff --git a/templates/webpages/requirement_spec/_show_time_and_cost_estimate_item.html b/templates/webpages/requirement_spec/_show_time_and_cost_estimate_item.html
index 844afd0b7..d05197247 100644
--- a/templates/webpages/requirement_spec/_show_time_and_cost_estimate_item.html
+++ b/templates/webpages/requirement_spec/_show_time_and_cost_estimate_item.html
@@ -1,13 +1,15 @@
[%- USE HTML -%][%- USE LxERP -%][%- USE P -%]
- [%- P.simple_format(item.fb_number _ ": " _ item.description) -%]
+ [%- item.fb_number _ ": " _ item.description_as_restricted_html -%]
|
[%- HTML.escape(item.complexity.description) -%] |
[%- HTML.escape(item.risk.description) -%] |
[%- IF !item.children.size -%]
[%- P.format_man_days(item.time_estimation, skip_zero=1) -%] |
- [%- LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate, 2) -%] EUR |
+ [%- UNLESS SELF.requirement_spec.is_template %]
+ [%- LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor, 2) -%] EUR |
+ [%- END %]
[%- ELSE -%]
|
|
@@ -15,15 +17,18 @@
[%- IF item.children.size -%]
- [%- FOREACH child = item.children -%]
+ [%- FOREACH child = item.children_sorted -%]
[%- INCLUDE 'requirement_spec/_show_time_and_cost_estimate_item.html'
- item = child
- level = level + 1 -%]
+ section = section
+ item = child
+ level = level + 1 -%]
[%- END -%]
[%- LxERP.t8("Sum for #1", item.fb_number) -%]: |
[%- P.format_man_days(item.time_estimation, skip_zero=1) -%] |
- [%- LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate, 2) -%] EUR |
+ [%- UNLESS SELF.requirement_spec.is_template %]
+ [%- LxERP.format_amount(item.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor, 2) -%] EUR |
+ [%- END %]
[%- END -%]