summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-21 04:27:44 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-21 04:27:44 +0000
commit4d33b4e45d3112bf1b7f178e900b2f75de51362e (patch)
treee9cabab5fd23962600cee78fbf162f20d8e1c55e /LedgerSMB
parent6368d71c71eabcb28dd895f9311750ac1eef737a (diff)
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
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm5
1 files changed, 1 insertions, 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