[SOLcalculation of pricing re tax incorrect, not trancating after two dec points

Started by dobberchie, March 28, 2008, 10:28:57 AM

Previous topic - Next topic

dobberchie

Description:
Entered the price of a product as net 11330 (vat 14%) which works out the gross as 12916.2 on the website the price is coming up as R1291620, ie with no decimal placing.

VirtueMart Version: 1.1 RC2 Nightly build 26th nov
VirtueMart version.

Joomla/Mambo Version:1.52
Joomla/Mambo version.

Steps to replicate:
Give step-by-step instructions for reproducing the problem.

Enter vat rate of 0.14 (although appearing as 0.140 in screen and cannot change)
Enter product... at the moment only one product in daatabase... with the pricing as above


Also provide live URL when available.

http://accessint.co.za/apple/

For VirtueMart 1.1 please indicate if occurs in Simple Layout view or Extended Layout view

Proposed fix(es):
Any possible fixes in code that might provide a solution.

Bugtracker task #:
Enter the bugtracker task #/url when submitted.

System info:

Windows Vista SP1 and Mac environs


Setting  Value 
   
PHP Built on:  Linux www26b.your-server.co.za 2.2.26-hetz-2G-nonSMP #2 Thu Apr 12 00:29:07 SAST 2007 i686 
Database Version:  4.1.21-standard-log 
Database Collation:  utf8_general_ci 
PHP Version:  4.3.11 
Web Server:  Apache/1.3.26 (Unix) mod_gzip/1.3.26.1a mod_auth_pam/1.0a PHP/4.3.11 PHP/3.0.18 mod_ssl/2.8.10 OpenSSL/0.9.6g mod_perl/1.27 mod_jk/1.1.0 FrontPage/5.0.2.2510 
Web Server to PHP interface:  apache 
Joomla! Version:  Joomla! 1.5.2 Production/Stable [ Woi ] 22-March-2008 22:00 GMT 
User Agent:  Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506) 

jenkinhill

I am unable to duplicate this using build 1326 from 27 March on Joomla 1.5.2, PHP 5.2.4

Using your exact figures the displayed price for the product is 12916.2
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

dobberchie

That is the same figure that is displayed in my edit screen... bit not on the online cart itself.. I will try a re-install of the files to see if that makes a difference..  not sure oif the fact the figures are not rounding to 2 dec places makes a diff after saving the data in the edit screen coming out and going back in again the product price (net) appears as so!!! 11330.00000

dobberchie

ok hands up to the obvious. an as the user is never wrong ;) I sure i cannot remember deleting those two fields in a moment of random madness.

If format of numbers are 123456 instead of 123,456 and 123456 28 instead of 123.456.28

Go intoEdit Store and the two settings on right hand side

Thousands separator (=,)
and Decimal Symbol (=0)

Enter detals and Save

were blank..
sorry
got told by someone using oscommerce that vm was too complicated with too many options... I kinda like it...

BTW just a copy of the files in the compenent \com vm j etc dir copied to the live server is the proper way to update do i need to uninstall and re-insall the modules

[attachment cleanup by admin]

jenkinhill

You can use the nightly manual install files to over-write and update, not need then to run through a re-installation.

http://dev.virtuemart.net/cb/proj/doc.do?doc_id=1328
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum