Welcome, Guest. Please login or register.
Login with username, password and session length


Need help or want to talk to other developers? Join the VirtueMart Chat! Read more...

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: [1]   Go Down
Print
Author Topic: tax problem with coupons (VM 1.0.15)  (Read 2643 times)
DMT
Newbie
*
Posts: 5


« on: May 15, 2008, 01:09:41 AM »

I have a huge problem with Virtuemart 1.0.15. When the store is setup with use of coupons, it seems that VM calculates tax on the coupon value. That is not correct for our country.

Here is an example:
tax is 25%
coupon value is 10%

Price with tax: 959,00
Price without tax: 767,20
Couponvalue: 95,90
Tax: 172,62

VM calculates the tax as: 191,80 (25% of 959) - 19,18 (25% of 95,90) = 172,62

That is not correct, the tax should be: 191,80.

Any suggestion on how to fix this? I looked at the sourcecode, and I think I need to modify the file "ps_checkout.php" in function "calc_order_tax()" (line 1191). But where?
Logged
fcarvalho
Newbie
*
Posts: 3


« Reply #1 on: June 13, 2008, 06:14:45 AM »

I think you are wrong the tax value 172.62 is correct.
Logged
DMT
Newbie
*
Posts: 5


« Reply #2 on: June 13, 2008, 06:19:05 AM »

No, here in Norway, we do not pay tax on discount.
Logged
DMT
Newbie
*
Posts: 5


« Reply #3 on: June 17, 2008, 03:22:23 AM »

Anyone?
Logged
Pages: [1]   Go Up
Print
Jump to: