diff options
Diffstat (limited to 'LedgerSMB/Template')
-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] =~ /.,...$/; |