// Supply order bootstraping
This commit is contained in:
+2
-2
@@ -34,7 +34,7 @@
|
||||
<div class="form-group">
|
||||
<label for="id_warehouse" class="control-label col-lg-3">{l s='Filter by warehouse:'}</label>
|
||||
<div class="col-lg-9">
|
||||
<select name="id_warehouse" onChange="$(this).parent().parent().submit();">
|
||||
<select name="id_warehouse" onChange="$('#supply_orders').submit();">
|
||||
{foreach from=$warehouses key=k item=i}
|
||||
<option {if $i.id_warehouse == $current_warehouse} selected="selected"{/if} value="{$i.id_warehouse}">{$i.name}</option>
|
||||
{/foreach}
|
||||
@@ -44,7 +44,7 @@
|
||||
<div class="form-group">
|
||||
<div class="checkbox col-lg-3 col-lg-push-3">
|
||||
<label for="filter_status">
|
||||
<input type="checkbox" name="filter_status" class="noborder" onChange="$(this).parent().parent().submit();" {if $filter_status == 1}value="on" checked{/if} /> {l s='Choose not to display completed/canceled orders:'}
|
||||
<input type="checkbox" name="filter_status" class="noborder" onChange="$('#supply_orders').submit();" {if $filter_status == 1}value="on" checked{/if} /> {l s='Choose not to display completed/canceled orders:'}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -108,12 +108,5 @@
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<fieldset>
|
||||
<h3>
|
||||
<i class="icon-dropbox"></i>
|
||||
{if isset($is_template) && $is_template == 1} {l s='Template'} {/if}{l s='Products:'}
|
||||
</h3>
|
||||
{$supply_order_detail_content}
|
||||
</fieldset>
|
||||
|
||||
{$supply_order_detail_content}
|
||||
{/block}
|
||||
|
||||
@@ -1477,7 +1477,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
public function displayCreateSupplyOrderLink($token = null, $id)
|
||||
{
|
||||
if (!array_key_exists('CreateSupplyOrder', self::$cache_lang))
|
||||
self::$cache_lang['CreateSupplyOrder'] = $this->l('Use this template to create a supply order.');
|
||||
self::$cache_lang['CreateSupplyOrder'] = $this->l('Use this template to create a supply order');
|
||||
|
||||
if (!array_key_exists('CreateSupplyOrderConfirm', self::$cache_lang))
|
||||
self::$cache_lang['CreateSupplyOrderConfirm'] = $this->l('Are you sure you want to use this template?');
|
||||
@@ -1583,20 +1583,17 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
$this->fields_list = array(
|
||||
'date_add' => array(
|
||||
'title' => $this->l('Last update'),
|
||||
'width' => 50,
|
||||
'align' => 'left',
|
||||
'type' => 'datetime',
|
||||
'havingFilter' => true
|
||||
),
|
||||
'employee' => array(
|
||||
'title' => $this->l('Employee'),
|
||||
'width' => 100,
|
||||
'align' => 'left',
|
||||
'havingFilter' => true
|
||||
),
|
||||
'quantity' => array(
|
||||
'title' => $this->l('Quantity received'),
|
||||
'width' => 100,
|
||||
'align' => 'left',
|
||||
'havingFilter' => true
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user