[+] 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
+11 -4
View File
@@ -27,6 +27,8 @@
class AdminZonesControllerCore extends AdminController
{
public $asso_type = 'shop';
public function __construct()
{
$this->table = 'zone';
@@ -42,7 +44,12 @@ class AdminZonesControllerCore extends AdminController
'name' => array('title' => $this->l('Zone'), 'width' => 'auto'),
'active' => array('title' => $this->l('Enabled'), 'width' => '70', 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false)
);
parent::__construct();
}
public function initForm()
{
$this->fields_form = array(
'legend' => array(
'title' => $this->l('Zones'),
@@ -80,17 +87,17 @@ class AdminZonesControllerCore extends AdminController
),
array(
'type' => 'asso_shop',
'label' => 'Shop groups:',
'label' => 'Shop :',
'name' => ''
)
),
'asso_shop' => 'group',
'asso_shop' => $this->asso_type,
'submit' => array(
'title' => $this->l(' Save '),
'class' => 'button'
)
);
parent::__construct();
return parent::initForm();
}
}