/**
  * Saves main Voucherserie parameters changes.
  *
  * @return mixed
  */
 public function save()
 {
     parent::save();
     // Parameter Processing
     $soxId = $this->getEditObjectId();
     $aSerieParams = oxConfig::getParameter("editval");
     // Voucher Serie Processing
     $oVoucherSerie = oxNew("oxvoucherserie");
     // if serie already exist use it
     if ($soxId != "-1") {
         $oVoucherSerie->load($soxId);
     } else {
         $aSerieParams["oxvoucherseries__oxid"] = null;
     }
     $oVoucherSerie->assign($aSerieParams);
     $oVoucherSerie->save();
     // set oxid if inserted
     $this->setEditObjectId($oVoucherSerie->getId());
 }
 /**
  * Saves main Voucherserie parameters changes.
  *
  * @return mixed
  */
 public function save()
 {
     parent::save();
     // Parameter Processing
     $soxId = $this->getEditObjectId();
     $aSerieParams = oxRegistry::getConfig()->getRequestParameter("editval");
     // Voucher Serie Processing
     $oVoucherSerie = oxNew("oxvoucherserie");
     // if serie already exist use it
     if ($soxId != "-1") {
         $oVoucherSerie->load($soxId);
     } else {
         $aSerieParams["oxvoucherseries__oxid"] = null;
     }
     //Disable editing for derived items
     if ($oVoucherSerie->isDerived()) {
         return;
     }
     $aSerieParams["oxvoucherseries__oxdiscount"] = abs($aSerieParams["oxvoucherseries__oxdiscount"]);
     $oVoucherSerie->assign($aSerieParams);
     $oVoucherSerie->save();
     // set oxid if inserted
     $this->setEditObjectId($oVoucherSerie->getId());
 }
 /**
  * Creates shop object, passes shop data to Smarty engine and returns name of
  * template file
  *
  * @return string
  */
 public function render()
 {
     $this->createMainExportView();
     return parent::render();
 }