Pflichtenhefte: Locales & Spalte "Auftrags-/Angebotsdatum"
[kivitendo-erp.git] / templates / webpages / requirement_spec_order / list.html
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>
4
5  [% SET sections = SELF.requirement_spec.sections_sorted %]
6  [% IF !sections.size %]
7  <div>
8   [% LxERP.t8("No sections have been created yet.") %]
9  </div>
10  [% ELSE %]
11  <table id="quotations_and_orders_sections" style="width: 100%">
12   <thead>
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>
18    </tr>
19   </thead>
20
21   <tbody>
22    [% FOREACH section = sections %]
23     <tr class="listrow">
24      <td>[% HTML.escape(section.fb_number) %]</td>
25      <td>[% HTML.escape(section.title) %]</td>
26      <td>[% HTML.escape(P.truncate(section.description)) %]</td>
27      <td>
28       [% IF section.order_part %]
29        [% HTML.escape(section.order_part.partnumber) %] [% HTML.escape(section.order_part.description) %]
30       [% ELSE %]
31        [% LxERP.t8("no article assigned yet") %]
32       [% END %]
33      </td>
34     </tr>
35    [% END %]
36   </tbody>
37  </table>
38  [% END %]
39
40  <h2>[% LxERP.t8("Quotations and orders") %]</h2>
41
42  [% SET orders = SELF.requirement_spec.orders_sorted %]
43  [% IF !orders.size %]
44   <div>[% LxERP.t8("No quotations or orders have been created yet.") %]</div>
45  [% ELSE %]
46
47   <table style="width:100%">
48    <thead>
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>
56     </tr>
57    </thead>
58
59    <tbody>
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>
64      <td>
65       [% IF rs_order.version %]
66        [% HTML.escape(rs_order.version.version_number) %]
67       [% ELSE %]
68        [% LxERP.t8("working copy") %]
69       [% END %]
70      </td>
71      <td>[% HTML.escape(rs_order.order.quotation ? rs_order.order.quonumber : rs_order.order.ordnumber) %]</td>
72      <td>[% HTML.escape(rs_order.order.transaction_description) %]</td>
73      <td>[% rs_order.order.transdate.to_kivitendo(precision='day') %]</td>
74      <td>[% rs_order.itime.to_kivitendo(precision='day') %]</td>
75     </tr>
76     [%- END %]
77    </tbody>
78   </table>
79  [% END %]
80 </div>