// Remove AdminPdf controller and move its configuration in AdminInvoices controller

This commit is contained in:
rMalie
2012-02-29 12:41:05 +00:00
parent 1b88a7a9ad
commit 84807f52d8
9 changed files with 21 additions and 103 deletions
+10 -3
View File
@@ -31,6 +31,8 @@ class AdminInvoicesControllerCore extends AdminController
{
$this->table = 'invoice';
parent::__construct();
$this->options = array(
'general' => array(
'title' => $this->l('Invoice options'),
@@ -68,13 +70,18 @@ class AdminInvoicesControllerCore extends AdminController
'type' => 'select',
'identifier' => 'value',
'list' => $this->getInvoicesModels()
),
'PS_PDF_USE_CACHE' => array(
'title' => $this->l('Use disk as cache for PDF invoices'),
'desc' => $this->l('Save memory but slow down the rendering process.'),
'validation' => 'isBool',
'cast' => 'intval',
'type' => 'bool'
)
),
'submit' => array()
),
)
);
parent::__construct();
}
public function initFormByDate()