source/Application/Model/Order.php
protected function _getArticles($blExcludeCanceled = false)
    {
        $sSelect = "SELECT `oxorderarticles`.* FROM `oxorderarticles`
                        WHERE `oxorderarticles`.`oxorderid` = '" . $this->getId() . "'" .
                   ($blExcludeCanceled ? " AND `oxorderarticles`.`oxstorno` != 1 " : " ") . "
                        ORDER BY `oxorderarticles`.`oxartid`, `oxorderarticles`.`oxselvariant`, `oxorderarticles`.`oxpersparam` ";

        // order articles
        $oArticles = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
        $oArticles->init('oxorderarticle');
        $oArticles->selectString($sSelect);

        return $oArticles;
    }
protected function _getArticles($blExcludeCanceled = false)
    {
        $sSelect = "SELECT `oxorderarticles`.* FROM `oxorderarticles`
                        WHERE `oxorderarticles`.`oxorderid` = '" . $this->getId() . "'" .
                   ($blExcludeCanceled ? " AND `oxorderarticles`.`oxstorno` != 1 " : " ") . "
                        ORDER BY `oxorderarticles`.`oxartid`, `oxorderarticles`.`oxselvariant`, `oxorderarticles`.`oxpersparam` ";

        // order articles
        $oArticles = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
        $oArticles->init('oxorderarticle');
        $oArticles->selectString($sSelect);

        return $oArticles;
    }
protected function _getArticles ( $ blExcludeCanceled = false ) { $ sSelect = "SELECT `oxorderarticles`.* FROM `oxorderarticles`
                        WHERE `oxorderarticles`.`oxorderid` = '" . $ this -> getId ( ) . "'" . ( $ blExcludeCanceled ? " AND `oxorderarticles`.`oxstorno` != 1 " : " " ) . "
                        ORDER BY `oxorderarticles`.`oxartid`, `oxorderarticles`.`oxselvariant`, `oxorderarticles`.`oxpersparam` " ; // order articles $ oArticles = oxNew ( \ OxidEsales \ Eshop \ Core \ Model \ ListModel :: class ) ; $ oArticles -> init ( 'oxorderarticle' ) ; $ oArticles -> selectString ( $ sSelect ) ; return $ oArticles ; }
returned assigned orderarticles from order

@param bool $blExcludeCanceled excludes canceled items from list

@return \oxlist
returned assigned orderarticles from order