Skip to content

Commit

Permalink
Fix formatting of zero for 1000,00
Browse files Browse the repository at this point in the history
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1194 4979c152-3d1c-0410-bac9-87ea11338e46
  • Loading branch information
tetragon committed May 15, 2007
1 parent d2ce5de commit a05883f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion LedgerSMB.pm
Expand Up @@ -351,7 +351,8 @@ sub format_amount {


if ( $dash eq "0" && $places ) { 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; $amount = "0" . "," . "0" x $places;
} }
else { else {
Expand Down
2 changes: 1 addition & 1 deletion LedgerSMB/Form.pm
Expand Up @@ -501,7 +501,7 @@ sub format_amount {


if ( $dash eq "0" && $places ) { if ( $dash eq "0" && $places ) {


if ( $myconfig->{numberformat} eq '1.000,00' ) { if ( $myconfig->{numberformat} =~ /0,00$/ ) {
$amount = "0" . "," . "0" x $places; $amount = "0" . "," . "0" x $places;
} }
else { else {
Expand Down

0 comments on commit a05883f

Please sign in to comment.