Taxes are wrong if points are used

Created on 13 July 2023, over 1 year ago
Updated 16 July 2024, 5 months ago

Problem/Motivation

We found out on the invoices that when someone applied points, the taxes are still calculated from the non-points total price.

Without points:

product (its price include VAT) 11 EUR 10x
--------------------------
Subtotal: 110 EUR
Shipping (also price with VAT): 4,50 EUR
VAT 20%: 19,08 EUR
Total: 114,50 EUR

With 20 points used:

product (its price include VAT) 11 EUR 10x
--------------------------
Subtotal: 110 EUR
Shipping (also price with VAT): 4,50 EUR
User Points Deduction: -20,00 EUR
VAT 20%: 19,08 EUR (this is still calcutated from the 114,50, even though it should be 94,5-94,5/1,2 = 15,75 EUR)
Total: 94,50 EUR (this is correct)

Also, this should also work good when someone doesn't include taxes in product and shipping price, too.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

9.0

Component

Code

Created by

🇸🇰Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024