News:

Support the VirtueMart project and become a member

Main Menu

targeted final price not 'available'

Started by baroen, June 06, 2020, 20:56:49 PM

Previous topic - Next topic

baroen

When I enter my products final price, check 'calculate base price' and hit Save, another final price calculated then what I entered.

Case:
I want to price my product at €13,50. When I enter this the base price is being calculated at € 12.38532 and the final price is set to €13,51
I searched the baseprice tipping point:
when I set it to 12.3849 the final price is 13,49.
when I set it to 12.385 the final price is 13,51.

I use only one calculation rule on this product 9% VAT. That is configured:
VatTax/ VAT per product | +% | 9.00

I noticed this after upgrading to VM 3.8.2 (10325)
Joomla 3.9.18

Any help would be appreciated.

Jörgen

You have calculations set with ONLY 2 decimals, hence the seemingly errounous calculations.

You need more decimals for Your calculations.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

baroen

Thanks, I set Baseprice rounding to 4.  :)
Now the price shows fine.
Should I set all prices to 4 digits (apart from the salesprice) to ensure correct calculation?

Jörgen

#3
I would make some tests, I do not use any rounding  (-1).
But at the end of the day only Your mix of products (prices, quantities etc) can decide how the result will be in the invoice. Small prices and large quantities can make rounding differences very large.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

In most cases no rounding as Jörgen says is the most appropriate..  with of course your currency config set to 2 decimals etc to control display
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation