[% USE T8 %] [% USE L %] [% USE P %] [% USE HTML %] [% USE LxERP %]

[% title | html %]

[% INCLUDE 'common/flash.html' %]
[% IF INSTANCE_CONF.get_show_bestbefore %] [% END %]
[% 'Part' | $T8 %] [% P.part.picker('part_id', SELF.part, class='wi-wide') %]
[% 'Destination warehouse' | $T8 %] [% L.select_tag('warehouse_id', SELF.warehouses, default=SELF.warehouse.id, title_key='description', class='wi-wide') %] [% IF SELF.warehouse.id %] [% L.select_tag('bin_id', SELF.warehouse.bins, default=SELF.bin.id, title_key='description', class='wi-wide below') %] [% ELSE %] [% END %]
[% 'Charge number' | $T8 %] [% L.input_tag('chargenumber', FORM.chargenumber, class='wi-wide') %]
[% 'Best Before' | $T8 %] [% L.date_tag('bestbefore', FORM.bestbefore) %]
[% 'Quantity' | $T8 %] [% L.input_tag('qty', LxERP.format_amount(FORM.qty), class='wi-verysmall') %] [% IF SELF.part.unit %] [% L.select_tag('unit_id', SELF.part.available_units, title_key='name', default=SELF.unit.id, class='wi-small') %] [% ELSE %] [% L.select_tag('unit_id', SELF.units, title_key='name', class='wi-small') %] [% END %]
[% 'Select type of transfer in' | $T8 %] [% L.select_tag('transfer_type_id', TRANSFER_TYPES, title_key='description', class='wi-wide') %]
[% 'Optional comment' | $T8 %] [% L.input_tag('comment', FORM.comment, class='wi-wide') %]
[% PROCESS 'inventory/_stock.html' %]
[% PROCESS 'inventory/_journal.html' journal=SELF.mini_journal %]