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

SF.net SVN: ledger-smb: [1195] branches/1.2/LedgerSMB/Form.pm



Revision: 1195
          http://svn.sourceforge.net/ledger-smb/?rev=1195&view=rev
Author:   tetragon
Date:     2007-05-14 18:39:48 -0700 (Mon, 14 May 2007)

Log Message:
-----------
Fix formatting of zero for 1000,00

Modified Paths:
--------------
    branches/1.2/LedgerSMB/Form.pm

Modified: branches/1.2/LedgerSMB/Form.pm
===================================================================
--- branches/1.2/LedgerSMB/Form.pm	2007-05-15 01:39:23 UTC (rev 1194)
+++ branches/1.2/LedgerSMB/Form.pm	2007-05-15 01:39:48 UTC (rev 1195)
@@ -501,7 +501,7 @@
 
         if ( $dash eq "0" && $places ) {
 
-            if ( $myconfig->{numberformat} eq '1.000,00' ) {
+            if ( $myconfig->{numberformat} =~ /0,00$/ ) {
                 $amount = "0" . "," . "0" x $places;
             }
             else {


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