cbde1746e297e48eb3a302e5d79dd7567e643d23
[kivitendo-erp.git] / templates / webpages / customer_vendor_turnover / _list_open_orders.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE L %]
4 [%- USE HTML %]
5
6 <div id="orders_report">
7   <table width="100%">
8     <caption class="listtop">[%- HTML.escape(title) %]</caption>
9     <tbody>
10       <tr>
11         <td class="listheading">[% 'Type' | $T8 %]</td>
12         <td class="listheading">[% 'Order/RFQ Number' | $T8 %]</td>
13         <td class="listheading">[% 'Date' | $T8 %]</td>
14         <td class="listheading">[% 'Amount' | $T8 %]</td>
15         <td class="listheading">[% 'Saleman' | $T8 %]</td>
16         <td class="listheading">[% 'Transaction description' | $T8 %]</td>
17       </tr>
18
19       [%- FOREACH row = orders %]
20       <tr class="listrow[% loop.count % 2 %]">
21         <td>[% IF row.quotation %]
22           [% IF FORM.db == 'customer' %][% 'Sales quotation' | $T8 %][% ELSE %][% 'RFQ' | $T8 %][% END %]</td>
23               [%- IF INSTANCE_CONF.get_feature_experimental -%]
24                 <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
25               [%- ELSE -%]
26                 <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_quotation[% ELSE %]request_quotation[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
27               [%- END -%]
28             [% ELSE %]
29             [% IF FORM.db == 'customer' %][% 'Sales Order' | $T8 %][% ELSE %][% 'Purchase Order' | $T8 %][% END %]</td>
30               [%- IF INSTANCE_CONF.get_feature_experimental -%]
31                 <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
32               [%- ELSE -%]
33                 <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
34               [%- END -%]
35             [% END %]
36         <td>[% row.transdate.to_kivitendo | html %]</td>
37         <td>[%- LxERP.format_amount(row.amount, 2) %]</td>
38         <td>[% row.employee.name | html %]</td>
39         <td>[% row.transaction_description | html %]</td>
40       </tr>
41       [% END %]
42     </tbody>
43   </table>
44 </div>