summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {