[%- USE T8 %] [%- USE HTML %][%- USE LxERP %] [%- IF delivered %] [%- SET RO = ' readonly' %] [%- END %]
[% title %]
[%- 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) %]

[%- UNLESS WHCONTENTS.size %]

[% 'There are no items in stock.' | $T8 %]

[%- ELSE %]

[% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] [%- UNLESS delivered %] [%- END %] [%- FOREACH row = WHCONTENTS %] [% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] [%- IF delivered %] [%- ELSE %] [%- END %] [% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] [%- END %]
  [% 'Warehouse' | $T8 %] [% 'Bin' | $T8 %] [% 'Charge Number' | $T8 %][% 'Best Before' | $T8 %][% 'Available qty' | $T8 %][% 'Qty' | $T8 %] [% 'Unit' | $T8 %]
[% loop.count %] [% HTML.escape(row.warehousedescription) %] [% HTML.escape(row.bindescription) %] [% HTML.escape(row.chargenumber) %][% HTML.escape(row.bestbefore) %][% HTML.escape(LxERP.format_amount(row.stock_qty)) %] [% HTML.escape(row.stock_unit) %][% HTML.escape(row.available_qty) %]


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

[%- END %]