source/Application/Model/Voucher.php
public function markAsReserved()
    {
        //saving oxreserved field
        $sVoucherID = $this->oxvouchers__oxid->value;

        if ($sVoucherID) {
            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            $sQ = "update oxvouchers set oxreserved = " . time() . " where oxid = " . $oDb->quote($sVoucherID);
            $oDb->Execute($sQ);
        }
    }
public function markAsReserved()
    {
        //saving oxreserved field
        $sVoucherID = $this->oxvouchers__oxid->value;

        if ($sVoucherID) {
            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            $sQ = "update oxvouchers set oxreserved = " . time() . " where oxid = " . $oDb->quote($sVoucherID);
            $oDb->Execute($sQ);
        }
    }
public function markAsReserved ( ) { //saving oxreserved field $ sVoucherID = $ this -> oxvouchers__oxid -> value ; if ( $ sVoucherID ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sQ = "update oxvouchers set oxreserved = " . time ( ) . " where oxid = " . $ oDb -> quote ( $ sVoucherID ) ; $ oDb -> Execute ( $ sQ ) ; } }
mark voucher as reserved
mark voucher as reserved