7 <h1>[% title | html %]</h1>
11 [% INCLUDE 'common/flash.html' %]
13 <form method="post" action="controller.pl" id="stocktaking_form">
15 <div class="select-item control-panel">
16 [% "Select article" | $T8 %] [% P.part.picker("part_id", "", with_makemodel=1) %]
19 <div id="stock"></div>
21 <table id="stocktaking_registration_table" class="tbl-horizontal">
22 <caption>[% 'Registration' | $T8 %]</caption>
23 <colgroup><col class="wi-mediumsmall"><col class="wi-wide"></colgroup>
26 <th>[% 'Destination warehouse' | $T8 %]</th>
28 [% L.select_tag('warehouse_id', SELF.warehouses, default=SELF.warehouse.id, title_key='description', class='wi-wide' ) %]
29 [% IF SELF.warehouse.id %]
30 <span class="below wi-wide condensed">[% L.select_tag('bin_id', SELF.warehouse.bins, default=SELF.bin.id, title_key='description', class='wi-wide' ) %]</span>
32 <span id="bin_id" class="wi-wide"></span>
37 <th>[% 'Charge number' | $T8 %]</th>
38 <td>[% L.input_tag('chargenumber', "", size=30, class='wi-wide') %]</td>
40 [% IF INSTANCE_CONF.get_show_bestbefore %]
42 <th>[% 'Best Before' | $T8 %]</th>
43 <td>[% L.date_tag('bestbefore', "", class='wi-date') %]</td>
47 <th>[% 'Target Qty' | $T8 %]</th>
49 [% L.input_tag('target_qty', '', size=10, class='numeric wi-small') %]
50 [% IF SELF.part.unit %]
51 [% L.select_tag('unit_id', SELF.part.available_units, title_key='name', default=SELF.unit.id, class='wi-small' ) %]
53 [% L.select_tag('unit_id', SELF.units, title_key='name', class='wi-small') %]
58 <th>[% 'Cutoff Date' | $T8 %]</th>
59 <td>[% L.date_tag('cutoff_date_as_date', SELF.stocktaking_cutoff_date, class='wi-date' ) %]</td>
62 <th>[% 'Optional comment' | $T8 %]</th>
63 <td>[% L.input_tag('comment', SELF.stocktaking_comment, size=30, class='wi-wide') %]</td>
70 <div id="stocktaking_history">[% LxERP.t8("Loading...") %]</div>
73 </div><!-- /.wrapper -->