source/Application/Model/OrderArticle.php
public function cancelOrderArticle()
    {
        if ($this->oxorderarticles__oxstorno->value == 0) {
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
            $this->oxorderarticles__oxstorno = new \OxidEsales\Eshop\Core\Field(1);
            if ($this->save()) {
                $this->updateArticleStock($this->oxorderarticles__oxamount->value, $myConfig->getConfigParam('blAllowNegativeStock'));
            }
        }
    }
public function cancelOrderArticle()
    {
        if ($this->oxorderarticles__oxstorno->value == 0) {
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
            $this->oxorderarticles__oxstorno = new \OxidEsales\Eshop\Core\Field(1);
            if ($this->save()) {
                $this->updateArticleStock($this->oxorderarticles__oxamount->value, $myConfig->getConfigParam('blAllowNegativeStock'));
            }
        }
    }
public function cancelOrderArticle ( ) { if ( $ this -> oxorderarticles__oxstorno -> value == 0 ) { $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ this -> oxorderarticles__oxstorno = new \ OxidEsales \ Eshop \ Core \ Field ( 1 ) ; if ( $ this -> save ( ) ) { $ this -> updateArticleStock ( $ this -> oxorderarticles__oxamount -> value , $ myConfig -> getConfigParam ( 'blAllowNegativeStock' ) ) ; } } }
Sets order article storno value to 1 and if stock control is on -
restores previous oxarticle stock state
Sets order article storno value to 1 and if stock control is on - restores previous oxarticle stock state