+[%- USE T8 %]
[% USE HTML %][% USE JavaScript %][% USE LxERP %]<body onload="on_load(); [% onload %]">
<script type="text/javascript" src="js/common.js"></script>
<p>
<table>
<tr>
- <th align="right" nowrap><translate>Destination warehouse</translate></th>
+ <th align="right" nowrap>[% 'Destination warehouse' | $T8 %]</th>
<td>
<select name="warehouse_id" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0)">
[%- FOREACH warehouse = WAREHOUSES %]
</tr>
<tr>
- <th align="right" nowrap><translate>Destination bin</translate>:</th>
+ <th align="right" nowrap>[% 'Destination bin' | $T8 %]:</th>
<td><select id="bin_id" name="bin_id"></select></td>
</tr>
<tr>
- <th align="right" nowrap><translate>Part Number</translate></th>
+ <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
<td>
<input type="hidden" name="parts_id" id="parts_id" value="[% HTML.escape(parts_id) %]">
<input type="hidden" name="old_partnumber" id="old_partnumber" value="[% HTML.escape(partnumber) %]">
</tr>
<tr>
- <th align="right" nowrap><translate>Part Description</translate></th>
+ <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
<td>
<input name="description" size="30" value="[% HTML.escape(description) %]">
<input type="button" onclick="part_selection_window('partnumber', 'description', 'parts_id', 0, 'Form', 'no_services:click_button=update_button')" value="?">
</tr>
<tr>
- <th align="right" nowrap><translate>Charge number</translate></th>
+ <th align="right" nowrap>[% 'Charge number' | $T8 %]</th>
<td><input name="chargenumber" size="30" value="[% HTML.escape(chargenumber) %]"></td>
</tr>
+ [% IF conf_show_best_before %]
<tr>
- <th align="right" nowrap><translate>Quantity</translate></th>
+ <th align="right" nowrap>[% 'Best Before' | $T8 %]</th>
+ <td>
+ <input name="bestbefore" id="bestbefore" size="11" value="[% HTML.escape(bestbefore) %]" title="[% myconfig_dateformat %]">
+ <input type="button" name="b_bestbefore" id="bestbefore_trigger" value="?">
+ </td>
+ </tr>
+ [% END %]
+
+ <tr>
+ <th align="right" nowrap>[% 'EAN' | $T8 %]</th>
+ <td><input name="ean" size="30" value="[% HTML.escape(ean) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap>[% 'Quantity' | $T8 %]</th>
<td>
<input name="qty" size="10" value="[% HTML.escape(LxERP.format_amount(qty)) %]">
<select name="unit">
</tr>
<tr>
- <th align="right" nowrap><translate>Optional comment</translate></th>
- <td><input name="comment" size="30" value="[% HTML.escape(comment) %]"></td>
+ <th align="right" nowrap>[% 'Optional comment' | $T8 %]</th>
+ <td><input name="comment" size="60" value="[% HTML.escape(comment) %]"></td>
</tr>
</table>
</p>
<p>
- <input type="submit" class="submit" name="action" id="update_button" value="<translate>Update</translate>">
+ <input type="submit" class="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
[%- IF parts_id %]
- <input type="submit" class="submit" name="action" value="<translate>Stock</translate>">
+ <input type="submit" class="submit" name="action" value="[% 'Stock' | $T8 %]">
[%- END %]
</p>
</form>
+ [% IF conf_show_best_before %]
+ <script type="text/javascript">
+ <!--
+ Calendar.setup( {
+ inputField : "bestbefore",
+ ifFormat :"[% myconfig_jsc_dateformat %]",
+ align : "BR",
+ button : "bestbefore_trigger"
+ });
+ //-->
+ </script>
+ [% END %]
+
</body>
</html>