[% USE LxERP %] [% USE L %] [% USE HTML %] [% USE P %] [% DEFAULT id_prefix = 'time_and_cost_estimate_form' %] [% SET total_cost = 0 %]
[% LxERP.t8("Neither sections nor function blocks have been created yet.") %]
[% ELSE %] [% SET at_least_one_function_block = 0 %][% LxERP.t8("Function block") %] | [% LxERP.t8("Complexity") %] | [% LxERP.t8("Risk") %] | [% LxERP.t8("Time estimate") %] | [% UNLESS SELF.requirement_spec.is_template %][% LxERP.t8("Price") %] | [% END %]
---|---|---|---|---|
[% HTML.escape(section.fb_number) %]: [% HTML.escape(section.title) %] | ||||
[% LxERP.t8("Sum for section") %]: | [% P.format_man_days(section.time_estimation, 'skip_zero'=1) %] | [% UNLESS SELF.requirement_spec.is_template %] [% SET section_cost = section.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor; total_cost = total_cost + section_cost %][% LxERP.format_amount(section_cost, 2) %] EUR | [% END %]||
[% LxERP.t8("Sum for #1", SELF.requirement_spec.type.description) %]: | [% P.format_man_days(SELF.requirement_spec.time_estimation) %] | [% UNLESS SELF.requirement_spec.is_template %][% LxERP.format_amount(total_cost, 2) %] EUR | [% END %]