From 4d33b4e45d3112bf1b7f178e900b2f75de51362e Mon Sep 17 00:00:00 2001 From: tetragon Date: Sat, 21 Oct 2006 04:27:44 +0000 Subject: Fix formatting of negative numbers with formats '1000,00' and '1.000,00' git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@248 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index b42f7584..a0a3fb19 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -390,18 +390,15 @@ sub format_amount { my $negative = ($amount < 0); - print STDERR "$amount\n"; if ($amount){ - $amount =~ s/-//; $amount = $self->parse_amount($myconfig, $amount); + $amount =~ s/-//; } - print STDERR "$amount\n"; if ($places =~ /\d+/) { #$places = 4 if $places == 2; $amount = $self->round_amount($amount, $places); } - print STDERR "$amount\n"; # is the amount negative -- cgit v1.2.3