epic-ts
[kivitendo-erp.git] / templates / webpages / generic / select_part.html
index f081041..300bf06 100644 (file)
@@ -9,7 +9,7 @@
   <input type="hidden" name="remap_parts_id" value="[% HTML.escape(remap_parts_id) %]">
   <input type="hidden" name="remap_partnumber" value="[% HTML.escape(remap_partnumber) %]">
 
-  <div class="listtop">[% 'Select a part or assembly' | $T8 %]</div>
+  <h1>[% 'Select a part or assembly' | $T8 %]</h1>
 
   <p>
    <table>
@@ -21,7 +21,7 @@
      <th class="listheading">[% 'Charge number' | $T8 %]</th>
      [% END %]
      [% IF has_bestbefore %]
-     [% IF conf_show_best_before %]
+     [% IF INSTANCE_CONF.get_show_bestbefore %]
      <th class="listheading">[% 'Best Before' | $T8 %]</th>
      [% END %]
      [% END %]
@@ -39,6 +39,8 @@
      <td>
       <input type="hidden" name="new_id_[% loop.count %]" value="[% HTML.escape(part.id) %]">
       <input type="hidden" name="new_number_[% loop.count %]" value="[% HTML.escape(part.number) %]">
+      <input type="hidden" name="new_warehouse_id_[% loop.count %]" value="[% HTML.escape(part.warehouse_id) %]">
+      <input type="hidden" name="new_bin_id_[% loop.count %]" value="[% HTML.escape(part.bin_id) %]">
       [% HTML.escape(part.number) %]
      </td>
 
@@ -55,7 +57,7 @@
      </td>
      [% END %]
      [% IF has_bestbefore %]
-     [% IF conf_show_best_before %]
+     [% IF INSTANCE_CONF.get_show_bestbefore %]
      <td>
       <input type="hidden" name="new_bestbefore_id_[% loop.count %]" value="[% HTML.escape(part.bestbefore_id) %]">
       <input type="hidden" name="new_bestbefore_[% loop.count %]" value="[% HTML.escape(part.bestbefore) %]">