[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1665] trunk/LedgerSMB/Template/ODS.pm



Revision: 1665
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1665&view=rev
Author:   tetragon
Date:     2007-09-26 08:56:24 -0700 (Wed, 26 Sep 2007)

Log Message:
-----------
Grouping fix

Modified Paths:
--------------
    trunk/LedgerSMB/Template/ODS.pm

Modified: trunk/LedgerSMB/Template/ODS.pm
===================================================================
--- trunk/LedgerSMB/Template/ODS.pm	2007-09-26 15:44:34 UTC (rev 1664)
+++ trunk/LedgerSMB/Template/ODS.pm	2007-09-26 15:56:24 UTC (rev 1665)
@@ -145,6 +145,8 @@
 
 	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] =~ /.,...$/;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.