View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005323 | OXID eShop (all versions) | 1.03. Basket, checkout process | public | 2013-07-31 00:28 | 2013-09-02 09:44 |
| Reporter | suabo | Assigned To | |||
| Priority | high | Severity | major | Reproducibility | always |
| Status | closed | Resolution | unable to reproduce | ||
| Platform | AMD eight-core x86 | OS | Windows 7 | OS Version | SP1 |
| Product Version | 4.7.3 / 5.0.3 revision 54408 | ||||
| Summary | 0005323: bug in paymentprice calculation leads to wrong total price | ||||
| Description | If 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 Reproduce | Order 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 Information | I 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; } | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Theme | Both | ||||
| Browser | All | ||||
| PHP Version | any | ||||
| Database Version | any | ||||