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

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



Revision: 5694
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5694&view=rev
Author:   einhverfr
Date:     2013-03-23 12:44:49 +0000 (Sat, 23 Mar 2013)
Log Message:
-----------
Fixing handling of debit/credit columns containing only spaces on GL screen

Modified Paths:
--------------
    trunk/Changelog
    trunk/bin/gl.pl

Modified: trunk/Changelog
===================================================================
--- trunk/Changelog	2013-03-23 12:31:27 UTC (rev 5693)
+++ trunk/Changelog	2013-03-23 12:44:49 UTC (rev 5694)
@@ -92,7 +92,8 @@
 * Fixed encoding issues when printing from the queue (Chris T, 3602073)
 * Fixed spurious commit in Invoice Shipped (Chris T)
 * Fixed handling of long notes/descriptions on GL (Chris T, 3603939)
-* Correcting handling of translation strings in Conatact Search (CT, 3604721)
+* Fixed handling of translation strings in Conatact Search (Chris T, 3604721)
+* Fixed handling of spaces in debit/credit cols/gl (Chris T, 3607219)
 
 Changelog for 1.3.30
 * Documented behavior of Outstanding Summary report (Chris T, 3601314)

Modified: trunk/bin/gl.pl
===================================================================
--- trunk/bin/gl.pl	2013-03-23 12:31:27 UTC (rev 5693)
+++ trunk/bin/gl.pl	2013-03-23 12:44:49 UTC (rev 5694)
@@ -621,6 +621,8 @@
     }
 
     for $i ( 0 .. $form->{rowcount} ) {
+        $form->{"debit_$i"} =~ s/\s+//g; 
+        $form->{"credit_$i"} =~ s/\s+//g; 
         unless ( ( $form->{"debit_$i"} eq "" )
             && ( $form->{"credit_$i"} eq "" ) )
         {
@@ -706,6 +708,8 @@
     my ($form) = @_;
     # add up debits and credits
     for $i ( 0 .. $form->{rowcount} ) {
+        $form->{"debit_$i"} =~ s/\s+//g; 
+        $form->{"credit_$i"} =~ s/\s+//g; 
         $dr = $form->parse_amount( \%myconfig, $form->{"debit_$i"} );
         $cr = $form->parse_amount( \%myconfig, $form->{"credit_$i"} );
 

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