[%- USE T8 %] [% USE HTML %][% USE LxERP %]
[%- IF is_customer %] [%- ELSE %] [%- END %] [%- FOREACH row = DELIVERY %] [%- row.script = is_customer ? ( row.invoice ? 'is' : 'ar' ) : ( row.invoice ? 'ir' : 'ap' ) -%] [%- END %]
[% 'Shipping Address' | $T8 %] [% 'Invoice' | $T8 %] [% 'Order' | $T8 %] [% 'Invdate' | $T8 %] [% 'Description' | $T8 %] [% 'Qty' | $T8 %] [% 'Unit' | $T8 %][% 'Sell Price' | $T8 %][% 'Last Cost' | $T8 %]
[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]  [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] [% IF row.oe_id %][% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %][% END %] [% HTML.escape(row.transdate) || ' ' %] [% HTML.escape(row.description) || ' ' %] [% HTML.escape(row.qty) || ' ' %] [% HTML.escape(row.unit) || ' ' %] [% LxERP.format_amount(row.sellprice, 2) || ' ' %]
[%- IF DELIVERY.size == 15 %]

[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]

[%- END %]