diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-26 15:56:24 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-26 15:56:24 +0000 |
commit | 13fb01ade17de2e0fe771a596f8e09c81591ef30 (patch) | |
tree | f1f141a8a9cb158f4bfd3076ce44badcb9c0ec4c | |
parent | ec4478356acc7aa8bf84ee37b8c2b9307198c6ab (diff) |
Grouping fix
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1665 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r-- | LedgerSMB/Template/ODS.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/Template/ODS.pm b/LedgerSMB/Template/ODS.pm index 7c3df270..ad172c06 100644 --- a/LedgerSMB/Template/ODS.pm +++ b/LedgerSMB/Template/ODS.pm @@ -145,6 +145,8 @@ sub _prepare_float { if ($#sides == 1) { # decimal places $properties{'number:decimal-places'} = length $sides[1]; + } else { + $properties{'number:decimal-places'} = 0; } $properties{'number:min-integer-digits'} = length($sides[0] =~ /0+$/); $properties{'number:grouping'} = 'true' if $sides[0] =~ /.,...$/; |