Projekt

Allgemein

Profil

Aktionen

GX-Abgewiesen #64430

geschlossen

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.

Von Moritz Bunjes vor mehr als 4 Jahren hinzugefügt. Vor fast 4 Jahren aktualisiert.

Status:
Abgewiesen
Priorität:
Dringend
Zugewiesen an:
Daniel Wu
Kategorie:
Checkout
Zielversion:
Beginn:
Abgabedatum:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Release Notes Langtext:
Tags:
Fix

Beschreibung

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:
  4. Prices tax: excl. tax
  5. Show tax in order total: true
  6. Show prices: true
  7. add this customer group
  8. add a customer (user1) to this customer group (Customers > Customers >> Customer Status (dropdown), choose the respective customer group
  9. go to Shop Settings > Special Modules >>> Activate Gift Voucher System (true)
  10. go to Vouchers > Coupon Admin >>> Create
  11. choose a name for your new coupon and fill in the forms as follows:
  12. Coupon Amount: 50%
  13. Coupon Code: xxx
  14. Uses per Customer: [nothing]
  15. Valid Category List: [ID of one category]

  16. log into frontend as user1

  17. go to the category where the 50%-coupon applies

  18. put an item from this category into the basket

  19. go to your basket

  20. apply the coupon

  21. calculate the VAT

  22. expected:

  23. item 1: 18.49 € (without VAT)

  24. coupon: 50%

  25. 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)

  26. now put an additional item in the basket, from another category, where the coupon doesn't apply

  27. go to your basket

  28. calculate the VAT, the coupon and the total

  29. expected:

  30. item1: 18.49 €

  31. item2: 16.76 €

  32. 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)


Dateien

ot_coupon_fix.patch (4,94 KB) ot_coupon_fix.patch Moritz Bunjes, 04.10.2019 17:51
faulty_VAT_with_coupon2.JPG (136 KB) faulty_VAT_with_coupon2.JPG Ulrich Wenk, 08.10.2019 15:24
faulty_VAT_with_coupon1.JPG (122 KB) faulty_VAT_with_coupon1.JPG Ulrich Wenk, 08.10.2019 15:24

Aktionen #1

Von Moritz Bunjes vor mehr als 4 Jahren aktualisiert

  • Tags wurde auf Fix, stable gesetzt
Aktionen #3

Von Moritz Bunjes vor mehr als 4 Jahren aktualisiert

  • Datei ot_coupon_fix.patch wurde gelöscht
Aktionen #4

Von Moritz Bunjes vor mehr als 4 Jahren aktualisiert

Aktionen #5

Von Ulrich Wenk vor mehr als 4 Jahren aktualisiert

Aktionen #6

Von Daniel Wu vor mehr als 4 Jahren aktualisiert

  • Status wurde von Anerkannt zu In Bearbeitung geändert
  • Zugewiesen an wurde auf Daniel Wu gesetzt
  • Zielversion wurde von 133 zu 3.15.2.0 beta1 geändert
Aktionen #7

Von Daniel Wu vor mehr als 4 Jahren aktualisiert

  • Status wurde von In Bearbeitung zu Testing geändert
Aktionen #8

Von Daniel Wu vor mehr als 4 Jahren aktualisiert

  • Zielversion wurde von 3.15.2.0 beta1 zu 3.14.2.0 beta1 geändert
Aktionen #9

Von Daniel Wu vor mehr als 4 Jahren aktualisiert

  • Tracker wurde von GX-Bug zu GX-Abgewiesen geändert
  • Status wurde von Testing zu Abgewiesen geändert

Dieser Fix funktioniert in 3.14 nicht, da das Refactoring der Coupons fehlt.

Aktionen #10

Von Moritz Bunjes vor fast 4 Jahren aktualisiert

  • Tags wurde von Fix, stable zu Fix geändert
Aktionen

Auch abrufbar als: Atom PDF