View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005908 | OXID eShop (all versions) | 2.8. Service | public | 2014-10-05 14:55 | 2024-09-25 10:47 |
Reporter | gerldental | Assigned To | |||
Priority | low | Severity | trivial | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 4.8.7 / 5.1.7 | ||||
Summary | 0005908: Price alert list: problem with brutto/netto price mode in shop | ||||
Description | in pricealarm_list.tpl in line 112: ... [{ $listitem->getFPrice() }] This function returns always brutto-price and seems to be deprecated ( why just not using here oxprice object? ) in oxpricealarm.php: 00129 public function getPrice() 00130 { 00131 if ( $this->_dPrice == null ) { 00132 $this->_dPrice = false; 00133 if ( $oArticle = $this->getArticle() ) { 00134 $myUtils = oxRegistry::getUtils(); 00135 $oThisCurr = $this->getPriceAlarmCurrency(); 00136 00137 // #889C - Netto prices in Admin 00138 // (we have to call $oArticle->getPrice() to get price with VAT) 00139 $dArtPrice = $oArticle->getPrice()->getBruttoPrice() * $oThisCurr->rate; 00140 $dArtPrice = $myUtils->fRound( $dArtPrice ); 00141 00142 $this->_dPrice = $dArtPrice; 00143 } 00144 } 00145 return $this->_dPrice; 00146 } in the comment: "#889C - Netto prices in Admin" but after 1 line: $dArtPrice = $oArticle->getPrice()->getBruttoPrice() * $oThisCurr->rate; (?!) where not better "$oArticle->getPrice()->getPrice()" in this place? | ||||
Tags | No tags attached. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||