Browse files

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
  • Loading branch information...
1 parent d2ce5de commit a05883f2b96d88671322911276167a0bb0c42ab2 tetragon committed May 15, 2007
Showing with 3 additions and 2 deletions.
  1. +2 −1 LedgerSMB.pm
  2. +1 −1 LedgerSMB/Form.pm
View
3 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 {
View
2 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 {

0 comments on commit a05883f

Please sign in to comment.