News:

Support the VirtueMart project and become a member

Main Menu

Tax price always rounds up ??

Started by sandstorm, June 11, 2014, 16:35:13 PM

Previous topic - Next topic

sandstorm

I have created a new Virtuemart site (I use Joomla regularly & also Virtuemart fairly often too) and within there added pre tax prices against all my products.
I set up a tax rule to add 20% VAT/Tax to all products, which all seems to work fine, except approx 40-50% of products, the prices get rounded up?

So If I add a product with a price of £$1.63
this is rounded upto £$1.96 after the 20% tax,
Though this should be £$1.95

I have read other forum posts from the past where this may have been a bug http://forum.virtuemart.net/index.php?topic=111435.0 & have had a look at the code that was changed but no longer seems relevant.
I have also tried with the configuration > pricing > round only display setting checked & unchecked, but this doesn't change the overal final price which is 0.01 out in some products.

Please can anyone help/advise or shed some light on to what may be the problem or what setting i might have missed?

Many Thanks
Andy

Joomla 2.5.20
VM 2.0.26d (Live)
VM 2.6.6 (test environment)
J3.6.4 / PHP7.0.12
VM3.0.16

AH

1.63
Add tax @ 20%
1.63 * 1.20 = 1.956
Rounding to 2 dp = 1.96

Truncating would give 1.95 but VM is using rounding

Cannot see your issue?
Regards
A

Joomla 4.4.5
php 8.1

sandstorm

Hi thanks for your response,

That example product needs to show as 1.95 inclusive of the 20% Tax Vat

So I did 1.95 / 1.2 = 1.625

If I set the product at 1.62 add tax @20% = 1.94
If I set the product at 1.63 add tax @20% = 1.96

So how in virtuemart can I achieve the product price of 1.95 inclusive of the tax@20%?

I would be happy to add the product price in at 1.95 and then try to use the tax calculation rule to use -20% tax, but I cant seem to get this to work.

I just need the front end shop to show the full price inclusive of the tax & then the invoice/checkout to show what portion of the products was VAT/Tax

Would really appreciate any help or ideas.

Thanks

Andy
J3.6.4 / PHP7.0.12
VM3.0.16

AH

#3
When entering the product price

Enter a value in the Final Price (1.95)

Then check the "Calculate cost price" box

and hit save

This should solve your problem

Regards
A

Joomla 4.4.5
php 8.1

sandstorm

Thanks again for your help/response.
I guess that will sort of help, but I can see this getting out of hand for 100's/1000's products.

Is there anyway of using the tax/calc rules to show -(minus vat)?

So if I start with the product price of £1.95 & set up the tax/calc rule  as -20% vat
I would want 1.95 to show in the front pages and even on checkout pages, but in the checkout subtotals area, the TAX/VAT amount that the customer is paying for there order would be visible.
I have had a play around with this, but not been successful in getting the site wide prices to show properly.

Andy
J3.6.4 / PHP7.0.12
VM3.0.16