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

SF.net SVN: ledger-smb: [1194] trunk



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

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

Modified Paths:
--------------
    trunk/LedgerSMB/Form.pm
    trunk/LedgerSMB.pm

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2007-05-15 01:28:31 UTC (rev 1193)
+++ trunk/LedgerSMB/Form.pm	2007-05-15 01:39:23 UTC (rev 1194)
@@ -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 {

Modified: trunk/LedgerSMB.pm
===================================================================
--- trunk/LedgerSMB.pm	2007-05-15 01:28:31 UTC (rev 1193)
+++ trunk/LedgerSMB.pm	2007-05-15 01:39:23 UTC (rev 1194)
@@ -351,7 +351,8 @@
 
         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;
             }
             else {


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