1 [% USE HTML %][% USE LxERP %]
6 <tr class="listheading">
7 <th class="listheading"><translate>Shipping Address</translate></th>
8 <th class="listheading"><translate>Invoice</translate></th>
9 <th class="listheading"><translate>Order</translate></th>
10 <th class="listheading"><translate>Invdate</translate></th>
11 <th class="listheading"><translate>Description</translate></th>
12 <th class="listheading"><translate>Qty</translate></th>
13 <th class="listheading"><translate>Unit</translate></th>
15 <th class="listheading"><translate>Sell Price</translate></th>
17 <th class="listheading"><translate>Last Cost</translate></th>
20 [%- FOREACH row = DELIVERY %]
21 <tr class="listrow[% loop.count % 2 %]">
22 <td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td>
23 <td>[% IF row.id %]<a href='[% IF is_customer %]is[% ELSE %]ir[% END %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
24 <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>
25 <td>[% HTML.escape(row.transdate) || ' ' %]</td>
26 <td>[% HTML.escape(row.description) || ' ' %]</td>
27 <td>[% HTML.escape(row.qty) || ' ' %]</td>
28 <td>[% HTML.escape(row.unit) || ' ' %]</td>
29 <td>[% LxERP.format_amount(row.sellprice, 2) || ' ' %]</td>
34 [%- IF DELIVERY.size == 15 %]
35 <p><translate>This list is capped at 15 items to keep it fast. If you need a full list, please use reports.</translate></p>