[ic] Re: I need your suggestion
Georg Brugger
georg.brugger at edienste.de
Sun Mar 26 05:22:42 EST 2006
Sorry, In the meanttime I found the solution,
Regards
Georg
----- Original Message -----
From: "Georg Brugger" <georg.brugger at edienste.de>
To: <interchange-users at icdevgroup.org>
Sent: Saturday, March 25, 2006 12:31 PM
Subject: I need your suggestion
> Hallo,
>
>
> again I need your suggestion.
>
> My problem, depending on the salestax of the product I need to calculate
7%
> or 16%. I inserted in my products.txt a colum setting each entry to 16 or
7.
> I found in the foundation shop (templates/components/results_buylist the
> entry to check the inventory.
>
> Based on this example I inserted in my code the following piece of code.
>
> [calc]
> my $x = q{[item-data products MwStIndex]};
> my $y = q{[item-subtotal]};
> $s = $x * $y * 0.01;
> $Scratch->{MwStSumme} = $Scratch->{MwStSumme} + $s;
> return $s;
> [/calc]
>
> It seems to work fine, as long as item-subtotal is below 1000 Euro. If it
is
> higher them the result value is only 1/1000. Example 0.16 instead of 160.
>
> Any idea of what is wrong. To be honest I don't know q{...} is used for in
> interchange.
>
> Thank you very much for help
>
> Best Regards
>
> Georg
>
More information about the interchange-users
mailing list