// Fix stock on shop import
This commit is contained in:
@@ -94,6 +94,7 @@ class ShopCore extends ObjectModel
|
|||||||
'store' => array('type' => 'shop'),
|
'store' => array('type' => 'shop'),
|
||||||
'webservice_account' => array('type' => 'shop'),
|
'webservice_account' => array('type' => 'shop'),
|
||||||
'warehouse' => array('type' => 'shop'),
|
'warehouse' => array('type' => 'shop'),
|
||||||
|
'stock_available' => array('type' => 'fk_shop'),
|
||||||
);
|
);
|
||||||
|
|
||||||
protected $webserviceParameters = array(
|
protected $webserviceParameters = array(
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ class AdminShopControllerCore extends AdminController
|
|||||||
|
|
||||||
if (Tools::isSubmit('id_shop'))
|
if (Tools::isSubmit('id_shop'))
|
||||||
{
|
{
|
||||||
$shop = new Shop(Tools::getValue('id_shop'));
|
$shop = new Shop((int)Tools::getValue('id_shop'));
|
||||||
$parent = $shop->id_category;
|
$parent = $shop->id_category;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -405,7 +405,6 @@ class AdminShopControllerCore extends AdminController
|
|||||||
'stock_available' => $this->l('Available quantities for sale'),
|
'stock_available' => $this->l('Available quantities for sale'),
|
||||||
'store' => $this->l('Stores'),
|
'store' => $this->l('Stores'),
|
||||||
'warehouse' => $this->l('Warehouse'),
|
'warehouse' => $this->l('Warehouse'),
|
||||||
'stock_available' => $this->l('Stock Available'),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!$this->object->id)
|
if (!$this->object->id)
|
||||||
|
|||||||
Reference in New Issue
Block a user