1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]
2 <div id="quotations_and_orders" class="quotations-and-orders-context-menu">
3 <h2>[% LxERP.t8("Assignment of articles to sections") %]</h2>
5 [% SET sections = SELF.requirement_spec.sections_sorted %]
6 [% IF !sections.size %]
8 [% LxERP.t8("No sections have been created yet.") %]
11 <table id="quotations_and_orders_sections" style="width: 100%">
13 <tr class="listheading">
14 <th>[% LxERP.t8("Number") %]</th>
15 <th>[% LxERP.t8("Title") %]</th>
16 <th>[% LxERP.t8("Description") %]</th>
17 <th>[% LxERP.t8("Article") %]</th>
22 [% FOREACH section = sections %]
24 <td>[% HTML.escape(section.fb_number) %]</td>
25 <td>[% HTML.escape(section.title) %]</td>
26 <td>[% HTML.escape(P.truncate(section.description_as_stripped_html)) %]</td>
28 [% IF section.order_part %]
29 [% HTML.escape(section.order_part.partnumber) %] [% HTML.escape(section.order_part.description) %]
31 [% LxERP.t8("no article assigned yet") %]
40 <h2>[% LxERP.t8("Quotations and orders") %]</h2>
42 [% SET orders = SELF.requirement_spec.orders_sorted %]
44 <div>[% LxERP.t8("No quotations or orders have been created yet.") %]</div>
47 <table style="width:100%">
49 <tr class="listheading">
50 <th>[% LxERP.t8("Type") %]</th>
51 <th>[% LxERP.t8("Requirement Spec Version") %]</th>
52 <th>[% LxERP.t8("Record number") %]</th>
53 <th>[% LxERP.t8("Transaction description") %]</th>
54 <th>[% LxERP.t8("Quotation/Order Date") %]</th>
55 <th>[% LxERP.t8("Creation Date") %]</th>
60 [% FOREACH rs_order = orders %]
61 <tr class="listrow quotations-and-orders-order-context-menu">
62 [% L.hidden_tag('order_id', rs_order.id, no_id=1) %]
63 <td>[% rs_order.order.type == 'sales_quotation' ? LxERP.t8('Sales quotation') : LxERP.t8('Sales Order') %]</td>
65 [% IF rs_order.version %]
66 [% HTML.escape(rs_order.version.version_number) %]
68 [% LxERP.t8("working copy") %]
72 <a href="oe.pl?action=edit&id=[% HTML.url(rs_order.order_id) %]&type=[% HTML.url(rs_order.order.type) %]">
73 [% HTML.escape(rs_order.order.quotation ? rs_order.order.quonumber : rs_order.order.ordnumber) %]
76 <td>[% HTML.escape(rs_order.order.transaction_description) %]</td>
77 <td>[% rs_order.order.transdate.to_kivitendo(precision='day') %]</td>
78 <td>[% rs_order.itime.to_kivitendo(precision='day') %]</td>