2 [%- USE HTML %][%- USE JavaScript %]
 
   5  <form method="post" action="wh.pl">
 
   7   <input type="hidden" name="nextsub" value="remove_parts">
 
   8   <input type="hidden" name="warehouse_id" value="[% HTML.escape(warehouse_id) %]">
 
  10   <p>[% 'Removal from warehouse' | $T8 %]: [% warehouse_description %]</p>
 
  15      <td>[% 'Select type of removal' | $T8 %]:</td>
 
  17       <select name="transfer_type_id">
 
  18        [%- FOREACH type = TRANSFER_TYPES %]<option value="[% HTML.escape(type.id) %]">[% HTML.escape(type.description) %]</option>[% END %]
 
  24      <td>[% 'Optional comment' | $T8 %]:</td>
 
  25      <td><input name="comment" size="60"></td>
 
  33      <th class="listheading">[% 'Bin' | $T8 %]</th>
 
  34      <th class="listheading">[% 'Part Number' | $T8 %]</th>
 
  35      <th class="listheading">[% 'Part Description' | $T8 %]</th>
 
  36      <th class="listheading">[% 'Charge Number' | $T8 %]</th>
 
  37      [% IF INSTANCE_CONF.get_show_bestbefore %]
 
  38      <th class="listheading">[% 'Best Before' | $T8 %]</th>
 
  40      <th class="listheading">[% 'EAN' | $T8 %]</th>
 
  41      <th class="listheading">[% 'Available qty' | $T8 %]</th>
 
  42      <th class="listheading">[% 'Removal qty' | $T8 %]</th>
 
  45     [% FOREACH row = CONTENTS %]
 
  46     <tr class="listrow[% loop.count % 2 %]">
 
  47      <input type="hidden" name="src_bin_id_[% loop.count %]" value="[% HTML.escape(row.binid) %]">
 
  48      <input type="hidden" name="parts_id_[% loop.count %]" value="[% HTML.escape(row.parts_id) %]">
 
  49      <input type="hidden" name="partnumber_[% loop.count %]" value="[% HTML.escape(row.partnumber) %]">
 
  50      <input type="hidden" name="partdescription_[% loop.count %]" value="[% HTML.escape(row.partdescription) %]">
 
  51      <input type="hidden" name="chargenumber_[% loop.count %]" value="[% HTML.escape(row.chargenumber) %]">
 
  52      [% IF INSTANCE_CONF.get_show_bestbefore %]
 
  53      <input type="hidden" name="bestbefore_[% loop.count %]" value="[% HTML.escape(row.bestbefore) %]">
 
  55      <input type="hidden" name="ean_[% loop.count %]" value="[% HTML.escape(row.ean) %]">
 
  56      <td>[% HTML.escape(row.bindescription) %]</td>
 
  57      <td>[% HTML.escape(row.partnumber) %]</td>
 
  58      <td>[% HTML.escape(row.partdescription) %]</td>
 
  59      <td>[% HTML.escape(row.chargenumber) %]</td>
 
  60      [% IF INSTANCE_CONF.get_show_bestbefore %]
 
  61      <td>[% HTML.escape(row.bestbefore) %]</td>
 
  63      <td>[% HTML.escape(row.ean) %]</td>
 
  64      <td>[% HTML.escape(row.qty) %]</td>
 
  66       <input name="qty_[% loop.count %]">
 
  67       <select name="unit_[% loop.count %]">
 
  68        [% FOREACH unit = row.UNITS %]<option[% IF unit.selected %] selected[% END %]>[% HTML.escape(unit.name) %]</option>[% END %]
 
  75     <input type="hidden" name="rowcount" value="[% CONTENTS.size %]">
 
  77     <tr><td colspan="7"><hr size="3" noshade></td></tr>
 
  83    <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">