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

SF.net SVN: ledger-smb:[6759] branches/1.3/bin/gl.pl



Revision: 6759
          http://sourceforge.net/p/ledger-smb/code/6759
Author:   einhverfr
Date:     2014-02-05 11:26:39 +0000 (Wed, 05 Feb 2014)
Log Message:
-----------
Fixing bug 977, gl report not working if no transactions entered yet

Modified Paths:
--------------
    branches/1.3/bin/gl.pl

Modified: branches/1.3/bin/gl.pl
===================================================================
--- branches/1.3/bin/gl.pl	2014-02-05 10:21:18 UTC (rev 6758)
+++ branches/1.3/bin/gl.pl	2014-02-05 11:26:39 UTC (rev 6759)
@@ -807,6 +807,7 @@
     for (@column_index) { $column_data{$_} = " " }
     $column_data{debit} = $form->format_amount( \%myconfig, $totaldebit, 2, " " );
     $column_data{credit} = $form->format_amount( \%myconfig, $totalcredit, 2, " " );
+    $form->{balance} ||= 0;
     $column_data{balance} = $form->format_amount( \%myconfig, $form->{balance} * $ml * $cml, 2, 0 );
 
     $i = 1;

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


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits