[%- USE T8 %]
[%- USE L %]
+[%- USE P %]
+[%- USE LxERP %]
[%- USE HTML %][%- USE JavaScript %]
<h1>[% 'Report about warehouse contents' | $T8 %]</h1>
-->
</script>
- <form method="post" name="Form" action="wh.pl">
+ <form method="post" name="Form" action="wh.pl" id="form">
<input type="hidden" name="nextsub" value="generate_report">
- <p>
<table>
<tr>
<th class="listheading" align="left" valign="top" colspan="6" nowrap>[% 'Filter' | $T8 %]</th>
</tr>
<tr>
<th align="right" nowrap>[% 'Part Number' | $T8 %]:</th>
- <td><input name="partnumber" size=20></td>
+ <td><input name="partnumber" size=20 value="[% partnumber %]"></td>
+ </tr>
+ <tr>
+ <th align="right" nowrap>[% 'Parts Classification' | $T8 %]:</th>
+ <td>[% P.part.select_classification('classification_id') %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Part Description' | $T8 %]:</th>
<td><input name="description" size=40></td>
</tr>
+ <tr>
+ <th align="right" nowrap>[% 'Partsgroup' | $T8 %]:</th>
+ <td>[% L.select_tag('partsgroup_id', PARTSGROUPS, value_key = 'id', title_key = 'partsgroup', with_empty = 1) %]</td>
+ </tr>
<tr>
<th align="right" nowrap>[% 'Charge Number' | $T8 %]:</th>
<td><input name="chargenumber" size=40></td>
</select>
</td>
</tr>
+ <tr>
<th align="right" nowrap>[% 'Stock Qty for Date' | $T8 %]:</th>
<td>[% L.date_tag('date') %]</td>
+ </tr>
+ <tr>
+ <th align="right">
+ [% "basis for stock value" | $T8 %]:
+ </th>
+ <td align="left">
+ [% L.radio_button_tag("stock_value_basis", value='purchase_price', checked=1, label=LxERP.t8('Purchase price')) %]
+ [% L.radio_button_tag("stock_value_basis", value='list_price', checked=0, label=LxERP.t8('List Price')) %]
+ </td>
+ </tr>
<tr>
+ <th align="right">
+ [% "List all rows" | $T8 %]:
+ </th>
+ <td align="left">
+ [% L.yes_no_tag("allrows", 1) %]
+ </td>
</tr>
+ <tr>
+ <th align="right">
+ [% "Results per page" | $T8 %]:
+ </th>
+ <td align="left">
+ [% L.input_number_tag("per_page", 20, size=4) %]
+ </td>
+ </tr>
+ [% CUSTOM_VARIABLES_FILTER_CODE %]
</table>
</td>
</tr>
[% END %]
</tr>
- <tr><td colspan="4"><hr noshade height="1"></td></tr>
+ <tr><td colspan="6"><hr noshade height="1"></td></tr>
<tr>
<td align="right"><input name="subtotal" id="subtotal" class="checkbox" type="checkbox" value="Y"></td>
<tr>
<td align="right"><input name="l_stock_value" id="l_stock_value" class="checkbox" type="checkbox" value="Y"></td>
<td nowrap><label for="l_stock_value">[% 'Stock value' | $T8 %]</label></td>
+ <td align="right"><input name="l_purchase_price" id="l_purchase_price" class="checkbox" type="checkbox" value="Y"></td>
+ <td nowrap><label for="l_purchase_price">[% 'Purchase price' | $T8 %]</label></td>
+ <td align="right"><input name="l_list_price" id="l_list_price" class="checkbox" type="checkbox" value="Y"></td>
+ <td nowrap><label for="l_list_price">[% 'List Price' | $T8 %]</label></td>
</tr>
-
+ </table>
+ <table>
+ [% CUSTOM_VARIABLES_INCLUSION_CODE %]
</table>
</td>
</tr>
</table>
- </p>
-
- <p>
- <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
- </p>
</form>
-