Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#1617 closed defect (fixed)

Coupon discount calculation is wrong with prices excl. VAT

Reported by: michael.ritter Owned by: michael.ritter
Priority: normal Milestone: Contrexx 3.0 SP5
Component: Shop Version: 3.0.4
Severity: normal Keywords:
Cc:

Description

If prices are stored excluding VAT and a coupon code with a discount in percent is applied, the calculation is wrong. Here's a sample showing the problem (calculation 3 is what the shop does):

Premises:

  • Product A costs 100$ without VAT
  • VAT rate is 8%
  • A discount of 10% is applied

Calculation 1 (correct):

Product 100.-
VAT (8%) 8.-
--- --- --- --- --
Total 108.-
Discount - 10.80
==================
Subtotal 97.20

Calculation 2 (correct):

Product 100.-
Discount - 10.-
--- --- --- --- --
Total 90.-
VAT (8%) 7.20
==================
SUBTOTAL 97.20

Calculation 3 (wrong):

Product 100.-
VAT (8%) 8.-
Discount - 10.-
==================
SUBTOTAL 98.-

Change History (4)

comment:1 Changed 6 years ago by michael.ritter

  • Owner changed from comvation to michael.ritter
  • Status changed from new to assigned

comment:3 Changed 6 years ago by michael.ritter

  • Milestone changed from Contrexx 3.1 to Contrexx 3.0 SP5

comment:4 Changed 6 years ago by michael.ritter

Note: See TracTickets for help on using tickets.