[+] BO : Add Accounting Management

This commit is contained in:
vSchoener
2011-11-08 14:20:24 +00:00
parent 79abbc000f
commit d7649ae28a
12 changed files with 407 additions and 16 deletions
+7 -2
View File
@@ -94,7 +94,8 @@ class AdminTabsControllerCore extends AdminController
'input' => array(
array(
'type' => 'hidden',
'name' => 'position'
'name' => 'position',
'required' => false
),
array(
'type' => 'text',
@@ -221,7 +222,7 @@ class AdminTabsControllerCore extends AdminController
return;
}
/* PrestaShop demo mode*/
if (($id_tab = (int)Tools::getValue('id_tab')) && ($direction = Tools::getValue('move')) && Validate::isLoadedObject($tab = new Tab($id_tab)))
{
if ($tab->move($direction))
@@ -240,7 +241,11 @@ class AdminTabsControllerCore extends AdminController
Tools::redirectAdmin(self::$currentIndex.'&conf=5&token='.Tools::getAdminTokenLite('AdminTabs'));
}
else
{
// Temporary add the position depend of the selection of the parent category
$_POST['position'] = Tab::getNbTabs(Tools::getValue('id_parent'));
parent::postProcess();
}
}
public function getList($id_lang, $order_by = null, $order_way = null, $start = 0, $limit = null, $id_lang_shop = false)