MiniVend Akopia Services

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

Re: Does MiniVend Calculate wrong ?



******    message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>     ******

I've seen this before.  You should search the mailing list next time.. :-)

At 11:10 AM 3/10/99 , Markus M&#252;ller wrote:
>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:

	Your subtotal is formatted, that is, it has commas or decimal points in
it.  Try looking up 'noformat' for [subtotal].

>
>[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


Ryan Hertz                                              tel  520-645-3812
Webmaster                                               tel  800-645-BAIT
Advertising Director                                    fax  520-645-2588
Gary Yamamoto Custom Baits, Inc.            http://www.yamamoto.baits.com
-
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: