6 <div id="orders_report">
8 <caption class="listtop">[%- HTML.escape(title) %]</caption>
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">[% 'Salesman' | $T8 %]</td>
16 <td class="listheading">[% 'Transaction description' | $T8 %]</td>
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_order -%]
24 <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.escape(row.id) %]'>
25 [% END %][% HTML.escape(row.quonumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
27 <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.oe_id) %]'>
28 [% END %][% HTML.escape(row.quonumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
31 [% IF FORM.db == 'customer' %][% 'Sales Order' | $T8 %][% ELSE %][% 'Purchase Order' | $T8 %][% END %]</td>
32 [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
33 <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.id) %]'>
34 [% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
36 <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.oe_id) %]'>
37 [% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
40 <td>[% row.transdate.to_kivitendo | html %]</td>
41 <td class="numeric">[%- LxERP.format_amount(row.amount, 2) %]</td>
42 <td>[% row.employee.name | html %]</td>
43 <td>[% row.transaction_description | html %]</td>