View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006811 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2018-03-20 11:57 | 2024-10-15 11:41 |
Reporter | fthielen | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 6.0.1 | ||||
Fixed in Version | 6.2.0-rc.1 | ||||
Summary | 0006811: Scale Prices in Netto | ||||
Description | In OXID 6 the Scale Prices are always shown as entered, even if the option "Enter Product Prices as Net Prices (plus VAT)" is enabled. All other prices are shown in brutto, as they should. | ||||
Steps To Reproduce | 1. Enable the Option "Enter Product Prices as Net Prices (plus VAT)" in the Backend 2. Set a scale price for a article | ||||
Tags | Scale Price, VAT | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
https://forum.oxid-esales.com/t/oxid-6-mengenstaffelpreise-werden-nicht-brutto-angezeigt/93258/ |
|
Hello, i think there are two problem: 1. \OxidEsales\EshopCommunity\Application\Model\Article::_prepareModifiedPrice /** * @param double $dPrice * * @return double */ protected function _prepareModifiedPrice($dPrice) { $this->_preparePrice($dPrice, $this->getArticleVat()); return $dPrice; } should be /** * @param double $dPrice * * @return double */ protected function _prepareModifiedPrice($dPrice) { $dPrice = $this->_preparePrice($dPrice, $this->getArticleVat()); return $dPrice; } 2. in Flow source/Application/views/flow/tpl/page/details/inc/priceinfo.tpl:21 [{block name="details_productmain_price"}] [{$priceItem->fbrutprice}] [{$currency->sign}] [{if $oDetailsProduct->getUnitName() and $priceItem->fbrutamountprice}] ([{$priceItem->fbrutamountprice}] [{$currency->sign}] / [{$oDetailsProduct->getUnitName()}]) [{/if}] [{/block}] should be [{block name="details_productmain_price"}] [{assign var="oConfig" value=$oView->getConfig()}] [{if $oConfig->getConfigParam('blShowNetPrice')}] [{$priceItem->fnetprice}] [{$currency->sign}] [{if $oDetailsProduct->getUnitName() and $priceItem->fnetamountprice}] ([{$priceItem->fnetamountprice}] [{$currency->sign}] / [{$oDetailsProduct->getUnitName()}]) [{/if}] [{else}] [{$priceItem->fbrutprice}] [{$currency->sign}] [{if $oDetailsProduct->getUnitName() and $priceItem->fbrutamountprice}] ([{$priceItem->fbrutamountprice}] [{$currency->sign}] / [{$oDetailsProduct->getUnitName()}]) [{/if}] [{/if}] [{/block}] Greetings Helmut |
|
Thank you, Helmuth. Your solution works like a charm. This should be fixed! |
|
I created a pull request for the first part of the bugfix: https://github.com/OXID-eSales/oxideshop_ce/pull/720 |
|
Bugfix is now merged into wave and flow. Flow commit: https://github.com/OXID-eSales/flow_theme/pull/151 Wave commit: https://github.com/OXID-eSales/wave-theme/pull/65 |