22 if ( $soxId !=
'-1' && isset( $soxId)) {
24 $oDiscount =
oxNew(
'oxdiscount' );
25 $oDiscount->load( $soxId );
26 $this->_aViewData[
'edit'] = $oDiscount;
29 if ($oDiscount->isDerived())
30 $this->_aViewData[
'readonly'] =
true;
38 $oDiscountArticlesAjax =
oxNew(
'discount_articles_ajax' );
39 $this->_aViewData[
'oxajax'] = $oDiscountArticlesAjax->getColumns();
41 return "popups/discount_articles.tpl";
42 } elseif ( $iAoc == 2 ) {
43 $oDiscountCategoriesAjax =
oxNew(
'discount_categories_ajax' );
44 $this->_aViewData[
'oxajax'] = $oDiscountCategoriesAjax->getColumns();
46 return "popups/discount_categories.tpl";
48 return 'discount_articles.tpl';