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

[% title | html %]

[% INCLUDE 'common/flash.html' %]
[% "Select article" | $T8 %] [% P.part.picker("part_id", "", with_makemodel=1) %]
[% IF INSTANCE_CONF.get_show_bestbefore %] [% END %]
[% 'Registration' | $T8 %]
[% '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' ) %] [% ELSE %] [% END %]
[% 'Charge number' | $T8 %] [% L.input_tag('chargenumber', "", size=30, class='wi-wide') %]
[% 'Best Before' | $T8 %] [% L.date_tag('bestbefore', "", class='wi-date') %]
[% 'Target Qty' | $T8 %] [% L.input_tag('target_qty', '', size=10, class='numeric wi-small') %] [% 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 %]
[% 'Cutoff Date' | $T8 %] [% L.date_tag('cutoff_date_as_date', SELF.stocktaking_cutoff_date, class='wi-date' ) %]
[% 'Optional comment' | $T8 %] [% L.input_tag('comment', SELF.stocktaking_comment, size=30, class='wi-wide') %]
[% LxERP.t8("Loading...") %]