|
From: Guido B. <gd...@le...> - 2002-02-10 07:52:41
|
> Hello everyone,
>
> I found two things I think are bugs:
>
> I'm using SL 1.8.2 and Mozilla
>
> 1) AP module -> Add transaction
> when entering a new transaction the fraction amount of the invoice is
> cut off after saving the entry.
> e.g. 80.60 becomes 80.00
>
> 2) AP module -> Payments
> when entering a payment SL does not use the local fraction divider but
> the us default.
> e.g. in Germany we use a comma instead of a dot
> when entering 80,60 it becomes 80.600,00
>
> Does anybody have the same problems?
We was resolve problem to force number value passed to sub format_amount in
SL/Form.pm function
We dont know, but in some situation the format_amout receive $amount
parameter with comma "," and not dot "."; obviusly the next code dont
elaborate value correctly.
Probably it is wrong programming of LC_LOCALE !???
SL/Form.pm___________________________________
.................
sub format_amount {
my ($self, $myconfig, $amount, $dash, $vg) = @_;
# GDO change ',' to '.' (LC_LOCALE problems!?!) ## insert
$amount =~ s/,/./; ## insert
# GDO END ## insert
# compensate for perl bug
$amount = ($vg) ? $amount : sprintf("%.2f", $amount);
my $negative = ($amount < 0);
.................
_____________________________________________
bye
Guido Brugnara
>
> Any help is appreciated.
>
> Ciao,
> Philip
>
>
> --
> LINET Services
> Linux im Intra- und InterNet
>
> Rebenring 33 Tel.: 0531-280 191 71
> 38106 Braunschweig Fax: 0531-280 191 72
>
> http://www.linet-services.de
> mailto:in...@li...
--
ing. Guido Brugnara tel.+39(461)390804 fax.396028
Leader.IT S.r.l. (Leader Information Technology)
Strada della Pozzata, 41 www.leader.it/srl
38050 Villazzano TRENTO (ITALY) in...@le...
|