source/Application/Controller/Admin/VoucherSerieGenerate.php
public function run()
    {
        $blContinue = true;
        $iExportedItems = 0;

        // file is open
        $iStart = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("iStart");

        for ($i = $iStart; $i < $iStart + $this->iGeneratePerTick; $i++) {
            if (($iExportedItems = $this->nextTick($i)) === false) {
                // end reached
                $this->stop(ERR_SUCCESS);
                $blContinue = false;
                break;
            }
        }

        if ($blContinue) {
            // make ticker continue
            $this->_aViewData['refresh'] = 0;
            $this->_aViewData['iStart'] = $i;
            $this->_aViewData['iExpItems'] = $iExportedItems;
        }
    }
public function run()
    {
        $blContinue = true;
        $iExportedItems = 0;

        // file is open
        $iStart = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("iStart");

        for ($i = $iStart; $i < $iStart + $this->iGeneratePerTick; $i++) {
            if (($iExportedItems = $this->nextTick($i)) === false) {
                // end reached
                $this->stop(ERR_SUCCESS);
                $blContinue = false;
                break;
            }
        }

        if ($blContinue) {
            // make ticker continue
            $this->_aViewData['refresh'] = 0;
            $this->_aViewData['iStart'] = $i;
            $this->_aViewData['iExpItems'] = $iExportedItems;
        }
    }
public function run ( ) { $ blContinue = true ; $ iExportedItems = 0 ; // file is open $ iStart = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "iStart" ) ; for ( $ i = $ iStart ; $ i < $ iStart + $ this -> iGeneratePerTick ; $ i ++ ) { if ( ( $ iExportedItems = $ this -> nextTick ( $ i ) ) === false ) { // end reached $ this -> stop ( ERR_SUCCESS ) ; $ blContinue = false ; break ; } } if ( $ blContinue ) { // make ticker continue $ this -> _aViewData [ 'refresh' ] = 0 ; $ this -> _aViewData [ 'iStart' ] = $ i ; $ this -> _aViewData [ 'iExpItems' ] = $ iExportedItems ; } }
Runs voucher generation
Runs voucher generation