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 -%]
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) || ' ' %][% IF row.id %]</a>[% END %]</td>
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) || ' ' %][% IF row.id %]</a>[% END %]</td>
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) || ' ' %][% IF row.id %]</a>[% END %]</td>
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) || ' ' %][% IF row.id %]</a>[% END %]</td>
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>