Project:Ubercart Userpoints
Version:6.x-2.x-dev
Component:Discount
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Is there a way to apply the discount to the total including VAT taxes so i can have 0 to pay if i have enough points to cover the entire cost?

Comments

#1

Category:bug report» support request

Have you looked at the payment portion of this module? It should already support what you are trying to do assuming it is allow a user to pay for an entire order using points. In my mind discounts are just that a discount not a way to make an order come out to be "0". Hope this helps.

#2

Yes, but there is a problem in the invoice. I explain whith an example:
I buy some points in the store, e.g. 100, and i receive a invoice of 100$.
After, i buy a product, and i want to pay with points. If i pay with points, i receive another invoice with of 100$, payed by points..
But, if i use a discount with userpoints, my invoice as the total that is total=price-discount that is exactly what i want, but if i apply a vat to a product i have this situation:
price of the product: 100
total excluding vat: 80
discount : 60
total: 40 (which is the total excl.vat-the discount+VAT applied to the entire price)

I think that the correct way is to calculate the vat after subtracting the discount, so we have:
price of the product: 100
total excluding vat: 80
discount : 60
total: 48(which is the total incl. vat - the discount +VAT applied to the new price)

#3

HI,

I have also the same issue.

Can anyone suggest the solution of this?