[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] Re: I need your suggestion


Sorry, In the meanttime I found the solution,

Regards

Georg

----- Original Message ----- 
From: "Georg Brugger" <suppressed>
To: <suppressed>
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
>

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.