MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Does MiniVend Calculate wrong ?



******    message to minivend-users from "=?iso-8859-1?Q?Markus_M=FCller?=" <mueller@ass-software.de>     ******

I'm running MiniVend 3.12 Beta 5, but the error also
occured running V3.11....

On my basket page I want to display the included sales
tax. This sales tax is calculated using the [subtotal}]
tag. At first I used this code:

[currency][calc][subtotal]-([subtotal]/1.16)[/calc][/currency]

This worked well, if the subtotal was < 1000. But if it was
bigger -> BOOM.. MiniVend calculated wrong. Sometimes
0.00 was displayed. Then I changed the code to the following:

[perl values]
sprintf("%5.2f",(int(([[subtotal]] - ([[subtotal]] / 1.16)) * 100) / 100));
[/perl]

But now it calculated wrong all the time. An example:

subtotal : 858.90
calculated value : 8077003.72

Another problem is the internationalization. I want the prices
to display in german mode (##,##) and not in US mode (##.##) so
I changed the Locale settings in catalog.cfg and did [set locale de_DE]
on my basket page. But then MiniVend (3.11 haven't tried in 3.12 yet)
calculated wrong again...


It would be great if some german shop oweners would tell me how they
did the implementation of the sales tax (MwSt) and the ##,##...

For the non-germans : where is the error in the code ? and how is
internationalization done whithout producing such errors ?


thx in advance


Markus M&#252;ller
asis.net

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: