View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006404 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2016-05-31 14:13 | 2024-03-27 09:35 |
Reporter | fricca | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 4.9.8 / 5.2.8 | ||||
Summary | 0006404: Wrong vat calculation for vouchers in baskets with mixed vat rates | ||||
Description | If a voucher/coupon is valid for only part of the articles in a basket and the articles have different vat rates, the taxes and netto sum are calculated as if the voucher was valid for all. | ||||
Steps To Reproduce | 1. Create voucher (= coupon series) with discount 10% (in test: test10perc). 2. Assign product to series (in test: 1503 Smart Loop NAISH). 3. Assign "Spec. VAT" to one article (in test: 7% for 2401 Binding O'BRIEN DECADE CT 2010). 4. Add both articles to basket. 5. Apply coupon. Screenshot part 1: basket without coupon Tax 7% is 23,49 €. Tax 19% is 16,76 €. Screenshot part 2: basket with coupon 10% for 1503 Tax 7% is 22,95 €. The 19% tax is 16,39 €. Both taxes are reduced to 0000148:0000097.7%, but only the 19% tax should be reduced to 90%. The 7% tax should stay untouched. As a result the netto sum is also wrong. Screenshot part 3: basket with coupon for 1503 and 2401 with option "Skip all negative Discounts". Tax 7% is 23,49 €. Tax 19% is 15,09 €. Taxes and netto sum are correct. | ||||
Additional Information | This is not fixed with https://github.com/OXID-eSales/oxideshop_ce/pull/311 In https://github.com/OXID-eSales/oxideshop_ce/blob/29cd70ea6d55cda6159f082fba657c46df942a45/source/Application/Model/Basket.php#L1115 ff. all vats are reduced except for articles that have set the option "Skip all negative discounts". This workaround was already described in the following bug report https://bugs.oxid-esales.com/view.php?id=5795 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
parent of | 0005795 | resolved | anton.fedurtsya | Percentual voucher assigned to article leads to wrong VAT and netto sum calculation in mixed baskets |