[%- USE LxERP -%][%- USE L -%][%- USE HTML -%][%- USE P -%] [%- DEFAULT id_prefix = 'time_and_cost_estimate_form' %]
[%- IF !SELF.requirement_spec.sections.size %]

[%- LxERP.t8("Neither sections nor function blocks have been created yet.") %]

[%- ELSE %] [%- SET at_least_one_function_block = 0 %] [%- FOREACH section = SELF.requirement_spec.sections %] [%- UNLESS SELF.requirement_spec.is_template %] [%- END %] [%- IF section.children.size %] [%- SET at_least_one_function_block = 1 %] [%- FOREACH child = section.children %] [%- INCLUDE 'requirement_spec/_show_time_and_cost_estimate_item.html' item = child level = 1 %] [%- END %] [%- UNLESS SELF.requirement_spec.is_template %] [%- END %] [%- END -%] [%- END -%] [%- UNLESS SELF.requirement_spec.is_template %] [%- END %]
[%- LxERP.t8("Function block") %] [%- LxERP.t8("Complexity") %] [%- LxERP.t8("Risk") %] [%- LxERP.t8("Time estimate") %][%- LxERP.t8("Cost") %]
[%- HTML.escape(section.fb_number) %]: [%- HTML.escape(section.title) %]
[%- LxERP.t8("Sum for section") -%]: [%- P.format_man_days(section.time_estimation, 'skip_zero'=1) -%][%- LxERP.format_amount(section.time_estimation * SELF.requirement_spec.hourly_rate, 2) -%] EUR
[%- LxERP.t8("Sum for #1", SELF.requirement_spec.type.description) -%]: [%- P.format_man_days(SELF.requirement_spec.time_estimation) -%][%- LxERP.format_amount(SELF.requirement_spec.time_estimation * SELF.requirement_spec.hourly_rate, 2) -%] EUR
[%- END %]