summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-15 01:39:23 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-15 01:39:23 +0000
commita05883f2b96d88671322911276167a0bb0c42ab2 (patch)
treec3b27b9e2ab05d6ca57e77c528eaa9a5e8eec990
parentd2ce5de68dd38d787ba9b63db148c53c71dd003d (diff)
Fix formatting of zero for 1000,00
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1194 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB.pm3
-rw-r--r--LedgerSMB/Form.pm2
2 files changed, 3 insertions, 2 deletions
diff --git a/LedgerSMB.pm b/LedgerSMB.pm
index 4b8ff496..52dae7c3 100755
--- a/LedgerSMB.pm
+++ b/LedgerSMB.pm
@@ -351,7 +351,8 @@ sub format_amount {
if ( $dash eq "0" && $places ) {
- if ( $myconfig->{numberformat} eq '1.000,00' ) {
+ #if ( $myconfig->{numberformat} eq '1.000,00' ) {
+ if ( $myconfig->{numberformat} =~ /0,00$/ ) {
$amount = "0" . "," . "0" x $places;
}
else {
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 13f2f34a..81a9efe1 100644
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -501,7 +501,7 @@ sub format_amount {
if ( $dash eq "0" && $places ) {
- if ( $myconfig->{numberformat} eq '1.000,00' ) {
+ if ( $myconfig->{numberformat} =~ /0,00$/ ) {
$amount = "0" . "," . "0" x $places;
}
else {