7 <h1>[% title | html %]</h1>
 
   9 [%- INCLUDE 'common/flash.html' %]
 
  11 <form method="post" action="controller.pl" id="stocktaking_form">
 
  14   <label for="part_id">[% "Article" | $T8 %]</label>
 
  15   [% P.part.picker("part_id", "", with_makemodel=1) %]
 
  19    <div id="stock"></div>
 
  22  <table id="stocktaking_settings_table">
 
  24      <th align="right" nowrap>[% 'Destination warehouse' | $T8 %]</th>
 
  25      <td>[% L.select_tag('warehouse_id', SELF.warehouses, default=SELF.warehouse.id, title_key='description') %]
 
  26        [% IF SELF.warehouse.id %]
 
  27          [% L.select_tag('bin_id', SELF.warehouse.bins, default=SELF.bin.id, title_key='description') %]
 
  29          <span id='bin_id'></span>
 
  35      <th align="right" nowrap>[% 'Charge number' | $T8 %]</th>
 
  36      <td>[% L.input_tag('chargenumber', "", size=30) %]</td>
 
  39    [% IF INSTANCE_CONF.get_show_bestbefore %]
 
  41        <th align="right" nowrap>[% 'Best Before' | $T8 %]</th>
 
  42        <td>[% L.date_tag('bestbefore', "") %]</td>
 
  47      <th align="right" nowrap>[% 'Target Qty' | $T8 %]</th>
 
  49        [% L.input_tag('target_qty', '', size=10, class='numeric') %]
 
  50        [%- IF SELF.part.unit %]
 
  51          [% L.select_tag('unit_id', SELF.part.available_units, title_key='name', default=SELF.unit.id) %]
 
  53          [% L.select_tag('unit_id', SELF.units, title_key='name') %]
 
  59      <th align="right" nowrap>[% 'Cutoff Date' | $T8 %]</th>
 
  61        [% L.date_tag('cutoff_date_as_date', SELF.stocktaking_cutoff_date) %]
 
  66      <th align="right" nowrap>[% 'Optional comment' | $T8 %]</th>
 
  68        [% L.input_tag('comment', SELF.stocktaking_comment, size=40) %]
 
  76   <div id="stocktaking_history">
 
  77     [%- LxERP.t8("Loading...") %]