Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / inventory / stocktaking / form.html
diff --git a/templates/webpages/inventory/stocktaking/form.html b/templates/webpages/inventory/stocktaking/form.html
new file mode 100644 (file)
index 0000000..ffe3600
--- /dev/null
@@ -0,0 +1,79 @@
+[%- USE T8 %]
+[%- USE L %]
+[%- USE P %]
+[%- USE HTML %]
+[%- USE LxERP %]
+
+<h1>[% title | html %]</h1>
+
+[%- INCLUDE 'common/flash.html' %]
+
+<form method="post" action="controller.pl" id="stocktaking_form">
+
+ <p>
+  <label for="part_id">[% "Article" | $T8 %]</label>
+  [% P.part.picker("part_id", "", with_makemodel=1) %]
+ </p>
+
+ <p>
+   <div id="stock"></div>
+ </p>
+
+ <table id="stocktaking_settings_table">
+   <tr>
+     <th align="right" nowrap>[% 'Destination warehouse' | $T8 %]</th>
+     <td>[% L.select_tag('warehouse_id', SELF.warehouses, default=SELF.warehouse.id, title_key='description') %]
+       [% IF SELF.warehouse.id %]
+         [% L.select_tag('bin_id', SELF.warehouse.bins, default=SELF.bin.id, title_key='description') %]
+       [%- ELSE %]
+         <span id='bin_id'></span>
+       [% END %]
+     </td>
+   </tr>
+
+   <tr>
+     <th align="right" nowrap>[% 'Charge number' | $T8 %]</th>
+     <td>[% L.input_tag('chargenumber', "", size=30) %]</td>
+   </tr>
+
+   [% IF INSTANCE_CONF.get_show_bestbefore %]
+     <tr>
+       <th align="right" nowrap>[% 'Best Before' | $T8 %]</th>
+       <td>[% L.date_tag('bestbefore', "") %]</td>
+     </tr>
+   [%- END %]
+
+   <tr>
+     <th align="right" nowrap>[% 'Target Qty' | $T8 %]</th>
+     <td>
+       [% L.input_tag('target_qty', '', size=10, class='numeric') %]
+       [%- IF SELF.part.unit %]
+         [% L.select_tag('unit_id', SELF.part.available_units, title_key='name', default=SELF.unit.id) %]
+       [%- ELSE %]
+         [% L.select_tag('unit_id', SELF.units, title_key='name') %]
+       [%- END %]
+     </td>
+   </tr>
+
+   <tr>
+     <th align="right" nowrap>[% 'Cutoff Date' | $T8 %]</th>
+     <td>
+       [% L.date_tag('cutoff_date_as_date', SELF.stocktaking_cutoff_date) %]
+     </td>
+   </tr>
+
+   <tr>
+     <th align="right" nowrap>[% 'Optional comment' | $T8 %]</th>
+     <td>
+       [% L.input_tag('comment', SELF.stocktaking_comment, size=40) %]
+     </td>
+   </tr>
+ </table>
+
+</form>
+
+<p>
+  <div id="stocktaking_history">
+    [%- LxERP.t8("Loading...") %]
+  </div>
+</p>