source/Application/Model/OrderArticle.php
public function delete($sOXID = null)
    {
        if ($blDelete = parent::delete($sOXID)) {
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
            if ($this->oxorderarticles__oxstorno->value != 1) {
                $this->updateArticleStock($this->oxorderarticles__oxamount->value, $myConfig->getConfigParam('blAllowNegativeStock'));
            }
        }

        return $blDelete;
    }
public function delete($sOXID = null)
    {
        if ($blDelete = parent::delete($sOXID)) {
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
            if ($this->oxorderarticles__oxstorno->value != 1) {
                $this->updateArticleStock($this->oxorderarticles__oxamount->value, $myConfig->getConfigParam('blAllowNegativeStock'));
            }
        }

        return $blDelete;
    }
public function delete ( $ sOXID = null ) { if ( $ blDelete = parent :: delete ( $ sOXID ) ) { $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; if ( $ this -> oxorderarticles__oxstorno -> value != 1 ) { $ this -> updateArticleStock ( $ this -> oxorderarticles__oxamount -> value , $ myConfig -> getConfigParam ( 'blAllowNegativeStock' ) ) ; } } return $ blDelete ; }
Deletes order article object. If deletion succeded - updates
article stock information. Returns deletion status

@param string $sOXID Article id

@return bool
Deletes order article object . If deletion succeded - updates article stock information . Returns deletion status