[%- USE T8 %] [%- USE L %] [%- USE HTML %][%- USE LxERP %][%- USE JavaScript %]

[% title %]

[%- UNLESS delivered %] [%- END %]
[%- IF ERRORS && ERRORS.size %]

[% ERRORS.join('
') %]

[%- END %]

[% 'Part Number' | $T8 %] [% HTML.escape(PART_INFO.partnumber) %]
[% 'Description' | $T8 %] [% HTML.escape(PART_INFO.description) %]
[% 'Qty according to delivery order' | $T8 %] [% HTML.escape(do_qty) %] [% HTML.escape(do_unit) %]

[% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] [%- FOREACH row = STOCK_INFO %] [%- IF delivered %] [% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] [%- ELSE %] [% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] [%- END %] [%- END %]
  [% 'Warehouse' | $T8 %] [% 'Bin' | $T8 %] [% 'Charge Number' | $T8 %][% 'Best Before' | $T8 %][% 'Qty' | $T8 %] [% 'Unit' | $T8 %]
[% loop.count %][% HTML.escape(row.warehouse_description) %] [% HTML.escape(row.bin_description) %] [% HTML.escape(row.chargenumber) %][% HTML.escape(row.bestbefore) %][% HTML.escape(LxERP.format_amount(row.qty)) %] [% HTML.escape(row.unit) %] [% L.date_tag('bestbefore_'_ loop.count, row.bestbefore) %]


[%- IF delivered %] [%- ELSE %] [%- END %]