[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]

[% LxERP.t8("Assignment of articles to sections") %]

[% SET sections = SELF.requirement_spec.sections_sorted %] [% IF !sections.size %]
[% LxERP.t8("No sections have been created yet.") %]
[% ELSE %] [% FOREACH section = sections %] [% END %]
[% LxERP.t8("Number") %] [% LxERP.t8("Title") %] [% LxERP.t8("Description") %] [% LxERP.t8("Article") %] [% LxERP.t8("Unit") %] [% LxERP.t8("Position type in quotation/order") %]
[% HTML.escape(section.fb_number) %] [% HTML.escape(section.title) %] [% HTML.escape(P.truncate(section.description_as_stripped_html)) %] [% IF section.order_part %] [% HTML.escape(section.order_part.partnumber) %] [% HTML.escape(section.order_part.description) %] [% ELSE %] [% LxERP.t8("no article assigned yet") %] [% END %] [% HTML.escape(section.order_part.unit) %] [% IF section.order_part_id && section.order_part.unit_obj.is_time_based %] [% LxERP.t8("time and effort based position") %] [% ELSIF section.order_part_id %] [% LxERP.t8("flat-rate position") %] [% END %]
[% END %]

[% LxERP.t8("Quotations and orders") %]

[% SET orders = SELF.requirement_spec.orders_sorted %] [% IF !orders.size %]
[% LxERP.t8("No quotations or orders have been created yet.") %]
[% ELSE %] [% FOREACH rs_order = orders %] [% L.hidden_tag('order_id', rs_order.id, no_id=1) %] [%- END %]
[% LxERP.t8("Type") %] [% LxERP.t8("Requirement Spec Version") %] [% LxERP.t8("Record number") %] [% LxERP.t8("Transaction description") %] [% LxERP.t8("Quotation/Order Date") %] [% LxERP.t8("Creation Date") %]
[% rs_order.order.type == 'sales_quotation' ? LxERP.t8('Sales quotation') : LxERP.t8('Sales Order') %] [% IF rs_order.version %] [% HTML.escape(rs_order.version.version_number) %] [% ELSE %] [% LxERP.t8("working copy") %] [% END %] [%- IF INSTANCE_CONF.get_feature_experimental_order -%] [%- ELSE -%] [%- END -%] [% HTML.escape(rs_order.order.quotation ? rs_order.order.quonumber : rs_order.order.ordnumber) %] [% HTML.escape(rs_order.order.transaction_description) %] [% rs_order.order.transdate.to_kivitendo(precision='day') %] [% rs_order.itime.to_kivitendo(precision='day') %]
[% END %]