View Issue Details

IDProjectCategoryView StatusLast Update
0005323OXID eShop (all versions)1.03. Basket, checkout processpublic2013-09-02 09:44
Reportersuabo Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionunable to reproduce 
PlatformAMD eight-core x86OSWindows 7OS VersionSP1
Product Version4.7.3 / 5.0.3 revision 54408 
Summary0005323: bug in paymentprice calculation leads to wrong total price
DescriptionIf u make an order including an artikel with tax and shipping cost and u pick a payment with a discount or fee the calculation is wrong.
Steps To ReproduceOrder an article with tax an shipping fee. Pick a payment with discount or fee and you see the shop calculating like in this example:

Artikel netto 100,42 EUR
Artikel brutto 119,50 EUR
Rabatt - 0,00 EUR
MwSt (19%) 19,08 EUR
Versandkosten 4,95 EUR
Zahlungsart-Gebühren -2,49 EUR
Gesamt Netto 120,09 EUR
Gesamt Brutto 121,96 EUR

Now let's check this results:

121,96 / 119 * 100 = 102,49 != 120,09
Additional InformationI detected this back in 2010 but didn't report it. shame on me :D
Now there we go:

The value 'oxdelivery' don't have to be part of the discount or fee,
so i exclude for this calculation in oxbasket with a little fix:

    public function getPriceForPayment() {
        $iCostsDelivery = $this->_aCosts['oxdelivery'];
        $this->_aCosts['oxdelivery'] = null;
        
        $dPrice = parent::getPriceForPayment();
        
        $this->_aCosts['oxdelivery'] = $iCostsDelivery;
        
        return $dPrice;
    }
TagsNo tags attached.
Attached Files
2013-08-19_1746.png (39,061 bytes)   
2013-08-19_1746.png (39,061 bytes)   
2013-08-19_1800.png (8,943 bytes)   
2013-08-19_1800.png (8,943 bytes)   
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

svetlana

2013-08-19 17:09

reporter   ~0008962

Reminder sent to: suabo

Hi,

Please see the screenshots. I tried the same situation as you wrote. But I can't see "Gesamt Netto 120,09 EUR" in shop basket and in admin order overview. So could you provide more details, how to reproduce it?