View Issue Details

IDProjectCategoryView StatusLast Update
0006811OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2024-10-15 11:41
Reporterfthielen Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version6.0.1 
Fixed in Version6.2.0-rc.1 
Summary0006811: Scale Prices in Netto
DescriptionIn 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 Reproduce1. Enable the Option "Enter Product Prices as Net Prices (plus VAT)" in the Backend
2. Set a scale price for a article
TagsScale Price, VAT
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

marco_steinhaeuser

2018-03-20 16:36

reporter   ~0012424

https://forum.oxid-esales.com/t/oxid-6-mengenstaffelpreise-werden-nicht-brutto-angezeigt/93258/

hrieth

2018-04-12 15:10

reporter   ~0012436

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

bYemma

2019-07-18 14:07

reporter   ~0012945

Thank you, Helmuth. Your solution works like a charm.

This should be fixed!

Alpha-Sys

2019-08-01 17:20

reporter   ~0012955

I created a pull request for the first part of the bugfix: https://github.com/OXID-eSales/oxideshop_ce/pull/720

bYemma

2019-08-23 10:03

reporter   ~0012969

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