1 [% USE HTML %][% USE LxERP %]
6 <tr class="listheading">
7 <th class="listheading">Shipping Address</th>
8 <th class="listheading">Invoice</th>
9 <th class="listheading">Order</th>
10 <th class="listheading">Invdate</th>
11 <th class="listheading">Description</th>
12 <th class="listheading">Qty</th>
13 <th class="listheading">Unit</th>
15 <th class="listheading">Sell Price</th>
17 <th class="listheading">Last Cost</th>
20 [%- FOREACH row = DELIVERY %]
22 row.script = is_customer ? ( row.invoice ? 'is' : 'ar' )
23 : ( row.invoice ? 'ir' : 'ap' )
25 <tr class="listrow[% loop.count % 2 %]">
26 <td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td>
27 <td>[% IF row.id %]<a href='[% row.script %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
28 <td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td>
29 <td>[% HTML.escape(row.transdate) || ' ' %]</td>
30 <td>[% HTML.escape(row.description) || ' ' %]</td>
31 <td>[% HTML.escape(row.qty) || ' ' %]</td>
32 <td>[% HTML.escape(row.unit) || ' ' %]</td>
33 <td>[% LxERP.format_amount(row.sellprice, 2) || ' ' %]</td>
38 [%- IF DELIVERY.size == 15 %]
39 <p>This list is capped at 15 items to keep it fast. If you need a full list, please use reports.</p>