// Stock : updated stock{cover, mvt, instant_state}controllers
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
{/if}
|
||||
{if count($stock_cover_warehouses) > 1}
|
||||
<div id="stock_cover_form_warehouse">
|
||||
<label for="coverage_warehouse">{l s="Select a warehouse:"}</label>
|
||||
<select name="coverage_warehouse" onChange="$(this).parent().parent().submit();">
|
||||
<label for="id_warehouse">{l s="Select a 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}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
<input type="hidden" name="token" value="{$token}" />
|
||||
{if count($stock_instant_state_warehouses) > 1}
|
||||
<div id="stock_instant_state_form_warehouse">
|
||||
<label for="instant_state_warehouse">{l s="Select a warehouse:"}</label>
|
||||
<select name="instant_state_warehouse" onChange="$(this).parent().parent().submit();">
|
||||
<label for="id_warehouse">{l s="Select a warehouse:"}</label>
|
||||
<select name="id_warehouse" onChange="$(this).parent().parent().submit();">
|
||||
{foreach from=$stock_instant_state_warehouses key=k item=i}
|
||||
<option {if $i.id_warehouse == $stock_instant_state_cur_warehouse} selected="selected"{/if} value="{$i.id_warehouse}">{$i.name}</option>
|
||||
{/foreach}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{extends file="helper/list/list_header.tpl"}
|
||||
{block name=leadin}
|
||||
{if count($list_warehouses) > 1}
|
||||
<form type="get" onchange="submit();">
|
||||
<label for="warehouse">{l s="Select a warehouse:"}</label>
|
||||
<form type="get">
|
||||
<label for="id_warehouse">{l s="Select a warehouse:"}</label>
|
||||
<input type="hidden" name="controller" value="AdminStockMvt" />
|
||||
<input type="hidden" name="token" value="{$token}" />
|
||||
<select name="warehouse">
|
||||
<select name="id_warehouse" onChange="$(this).parent().submit();">
|
||||
{foreach $list_warehouses as $warehouse}
|
||||
<option {if $warehouse.id_warehouse == $current_warehouse}selected="selected"{/if} value="{$warehouse.id_warehouse}">{$warehouse.name}</option>
|
||||
{/foreach}
|
||||
|
||||
@@ -24,4 +24,65 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{$content}
|
||||
{extends file="helper/view/view.tpl"}
|
||||
{block name="override_tpl"}
|
||||
{if isset($warehouse)}
|
||||
<div style="margin-top: 20px">
|
||||
<fieldset>
|
||||
<legend><img src="/img/t/AdminPreferences.gif" alt="" /> {l s='General informations'}</legend>
|
||||
<table style="width: 400px;" classe="table">
|
||||
<tr>
|
||||
<td>{l s='Reference:'}</td>
|
||||
<td>{$warehouse->reference}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Name:'}</td>
|
||||
<td>{$warehouse->name}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Country:'}</td>
|
||||
<td>{if $address->country != ''}{$address->country}{else}{l s='N/D'}{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Phone:'}</td>
|
||||
<td>{if $address->phone != ''}{$address->phone}{else}{l s='N/D'}{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Management type:'}</td>
|
||||
<td>{$warehouse->management_type}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Manager:'}</td>
|
||||
<td>{$employee->lastname} {$employee->firstname}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Products:'}</td>
|
||||
<td>{$warehouse_num_products} {l s='references'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Products physical quantities:'}</td>
|
||||
<td>{$warehouse_quantities}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Stock valuation:'}</td>
|
||||
<td>{$currency->prefix} {$warehouse_value} {$currency->suffix}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div style="margin-top: 30px">
|
||||
<fieldset>
|
||||
<legend><img src="/img/t/AdminStock.gif" alt="" /> {l s='Stock'}</legend>
|
||||
<a href="index.php?controller=adminstockinstantstate&id_warehouse={$warehouse->id}&token={getAdminToken tab='AdminStockInstantState'}">{l s='Click here if you want details on products in this warehouse'}</a>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div style="margin-top: 30px">
|
||||
<fieldset>
|
||||
<legend><img src="/img/t/AdminLogs.gif" alt="" /> {l s='History'}</legend>
|
||||
<a href="index.php?controller=adminstockmvt&id_warehouse={$warehouse->id}&token={getAdminToken tab='AdminStockMvt'}">{l s='Click here if you want details on what happened in this warehouse'}</a>
|
||||
</fieldset>
|
||||
</div>
|
||||
{else}
|
||||
{l s='This warehouse does not exist'}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user