[% USE T8 %] [% USE HTML %] [% USE LxERP %]
[% IF ( SELF.is_customer() ) %] [% ELSE %] [%- END %] [% FOREACH row = SELF.delivery %] [% row.script = SELF.is_vendor() ? ( row.invoice ? 'ir' : 'ap' ) : ( row.invoice ? 'is' : 'ar' ) %] [%- IF INSTANCE_CONF.get_feature_experimental_order -%] [%- ELSE -%] [%- END -%] [% 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 %][% 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 %]