// Updated OrderHistory / StockManager. Added feature to StockCover: it is now possible to display the number of sales per product / and highlight products which coverage is less than a given threshold
This commit is contained in:
@@ -30,20 +30,31 @@
|
||||
<input type="hidden" name="controller" value="AdminStockCover" />
|
||||
<input type="hidden" name="token" value="{$token}" />
|
||||
{if count($stock_cover_periods) > 1}
|
||||
<label for="coverage_period">{l s='Filter by period/warehouse:'}</label>
|
||||
<select name="coverage_period" onChange="$(this).parent().submit();">
|
||||
<div>
|
||||
<label for="coverage_period">{l s='Filter by period:'}</label>
|
||||
<select name="coverage_period" onChange="$(this).parent().parent().submit();">
|
||||
{foreach from=$stock_cover_periods key=k item=i}
|
||||
<option {if $i == $stock_cover_cur_period} selected="selected"{/if} value="{$i}">{$k}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if count($stock_cover_warehouses) > 0}
|
||||
<select name="id_warehouse" onChange="$(this).parent().submit();">
|
||||
<div>
|
||||
<label for="id_warehouse">{l s='Filter by warehouse:'}</label>
|
||||
<select name="id_warehouse" onChange="$(this).parent().parent().submit();"">
|
||||
{foreach from=$stock_cover_warehouses key=k item=i}
|
||||
<option {if $i.id_warehouse == $stock_cover_cur_warehouse} selected="selected"{/if} value="{$i.id_warehouse}">{$i.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
<div>
|
||||
<label for="warn_days">{l s='Highlight when coverage is less than:'}</label>
|
||||
<input name="warn_days" type="text" size="3" onChange="$(this).parent().parent().submit();"
|
||||
value="{if isset($stock_cover_warn_days)}{$stock_cover_warn_days}{/if}">
|
||||
</input>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user