Projekt

Allgemein

Profil

GX-Abgewiesen #64430

Von Ulrich Wenk vor mehr als 4 Jahren aktualisiert

Beim Einlösen eines prozentualen Rabatt-Kupons, der auf Kategorien eingeschränkt ist, wird die MwSt. falsch berechnet, sofern für die Kundengruppe Nettopreise angezeigt werden. 
 Außerdem verdoppelt sich fälschlicherweise der Kuponwert, wenn man einen weiteren Artikel im Warenkorb hat, der nicht in der Kategorie liegt, wo der Rabatt-Kupon gilt. 

 ___ 
 **EDIT** 08.10.2019 

 When you redeem a percentage discount coupon that is restricted to categories, VAT is calculated incorrectly if net prices are displayed for the customer group. 
 Also, if you have another item in your shopping cart that is not in the category where the discount coupon applies, the coupon value is wrongly doubled. 


 Preconditions: 
 1. Have at least 2 categories with products ready 
 2. go to Customers > Customer Groups >>> Create 
 3. choose a name for the Customer Group and fill in the forms as follows: 
 * Prices tax: excl. tax 
 * Show tax in order total: true 
 * Show prices: true 
 4. add this customer group 
 5. add a customer (user1) to this customer group (Customers > Customers >> Customer Status (dropdown), choose the respective customer group 
 6. go to Shop Settings > Special Modules >>> Activate Gift Voucher System (true) 
 7. go to Vouchers > Coupon Admin >>> Create 
 8. choose a name for your new coupon and fill in the forms as follows: 
 * Coupon Amount: 50% 
 * Coupon Code: xxx 
 * Uses per Customer: [nothing] 
 * Valid Category List: [ID of one category] 

 1. log into frontend as user1 
 2. go to the category where the 50%-coupon applies 
 3. put an item from this category into the basket 
 4. go to your basket 
 5. apply the coupon  
 6. calculate the VAT 
 * *expected:*   
 * item 1: 18.49 € (without VAT)   
 * coupon: 50%   
 * shipping: free   
 18.49 € / 2 = 9.245 €                 (item1 - 50% = 9.245 €       9.245 € + VAT 19% = 11.00155 €) 
 9.245 € x 1.19 = 11.00155 € (total)   
 11.00155 € - 9.245 € = 1.75655 € (VAT)   
 the shop whatsoever calculates 2.04 € VAT which equals 11.28 € (total) 
 11. now put an additional item in the basket, from another category, where the coupon doesn't apply 
 12. go to your basket 
 13. calculate the VAT, the coupon and the total 
 * *expected:* 
 * item1: 18.49 € 
 * item2: 16.76 € 
 * coupon: 50% 
 *shipping: free 
 18.49 € / 2 = 9.245 €    
 16.76 € + 9.245 € = 26.005 €   
 26.005 € x 1.19 = 30.94595 € (total)   
 30.94595 € - 26.005 € =    4.94095 € (VAT)   
 the shop whatsoever applies the coupon two times on item1 (-18.50 €) and the VAT is also calculated wrong (see screenshot) 



Zurück