/**
  * AdminController::init() override
  * @see AdminController::init()
  */
 public function init()
 {
     if ($this->controller_status == STATUS1) {
         $this->informations[] = '<b><a href="?controller=AdminModules&configure=erpillicopresta&token=' . Tools::getAdminTokenLite('AdminModules') . '">' . $this->l('Do not limit yourself to 1 trial order, take advantage of the Light version of the Supplier area for €79.99 before tax or €8.00/month before tax. Go to your back-office, under the module tab, page 1-Click ERP!') . '</b></a><br/><br/>';
     } else {
         if ($this->controller_status == STATUS2) {
             $this->informations[] = '<a href="?controller=AdminModules&configure=erpillicopresta&token=' . Tools::getAdminTokenLite('AdminModules') . '">' . $this->l('Optimise Supplier management with accounting reconciliation, multiple product selection and a decision-making assistant tool for just €20.00 before tax or €1.00/month before tax. Go to your back-office, under the module tab, page 1-Click ERP!') . '</a>';
         } else {
             if ($this->controller_status == STATUS3) {
                 $this->informations[] = '<a href="?controller=AdminModules&configure=erpillicopresta&token=' . Tools::getAdminTokenLite('AdminModules') . '">' . $this->l('Activate additional features in your TIME SAVER module in the Module section of your back-office! Go to your back-office, under the module tab, page 1-Click ERP!') . '</a>';
             }
         }
     }
     parent::init();
     if (Tools::isSubmit('addsupply_order') || Tools::isSubmit('submitAddsupply_order') || Tools::isSubmit('updatesupply_order') && Tools::isSubmit('id_supply_order')) {
         // override table, lang, className and identifier for the current controller
         $this->table = 'supply_order';
         $this->className = 'SupplyOrder';
         $this->identifier = 'id_supply_order';
         $this->lang = false;
         $this->action = 'new';
         $this->display = 'add';
         if (Tools::isSubmit('updatesupply_order')) {
             if ($this->tabAccess['edit'] === '1') {
                 $this->display = 'edit';
             } else {
                 $this->errors[] = Tools::displayError($this->l('You do not have permission to edit this.'));
             }
         }
     }
     if (Tools::isSubmit('update_receipt') && Tools::isSubmit('id_supply_order')) {
         // change the display type in order to add specific actions to
         $this->display = 'update_receipt';
         // display correct toolBar
         $this->initToolbar();
     }
 }