source/Application/Model/Voucher.php
public function checkVoucherAvailability($aVouchers, $dPrice)
    {
        $this->_isAvailableWithSameSeries($aVouchers);
        $this->_isAvailableWithOtherSeries($aVouchers);
        $this->_isValidDate();
        $this->_isAvailablePrice($dPrice);
        $this->_isNotReserved();

        // returning true - no exception was thrown
        return true;
    }
public function checkVoucherAvailability($aVouchers, $dPrice)
    {
        $this->_isAvailableWithSameSeries($aVouchers);
        $this->_isAvailableWithOtherSeries($aVouchers);
        $this->_isValidDate();
        $this->_isAvailablePrice($dPrice);
        $this->_isNotReserved();

        // returning true - no exception was thrown
        return true;
    }
public function checkVoucherAvailability ( $ aVouchers , $ dPrice ) { $ this -> _isAvailableWithSameSeries ( $ aVouchers ) ; $ this -> _isAvailableWithOtherSeries ( $ aVouchers ) ; $ this -> _isValidDate ( ) ; $ this -> _isAvailablePrice ( $ dPrice ) ; $ this -> _isNotReserved ( ) ; // returning true - no exception was thrown return true ; }
Checks availability without user logged in. Returns array with errors.

@param array  $aVouchers array of vouchers
@param double $dPrice    current sum (price)

@throws oxVoucherException exception

@return array
Checks availability without user logged in . Returns array with errors .