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

SF.net SVN: ledger-smb:[6213] trunk/LedgerSMB/Report/PNL.pm



Revision: 6213
          http://sourceforge.net/p/ledger-smb/code/6213
Author:   einhverfr
Date:     2013-11-04 09:47:16 +0000 (Mon, 04 Nov 2013)
Log Message:
-----------
Putative fix for balance sheet not handling empty values

Modified Paths:
--------------
    trunk/LedgerSMB/Report/PNL.pm

Modified: trunk/LedgerSMB/Report/PNL.pm
===================================================================
--- trunk/LedgerSMB/Report/PNL.pm	2013-11-04 09:34:02 UTC (rev 6212)
+++ trunk/LedgerSMB/Report/PNL.pm	2013-11-04 09:47:16 UTC (rev 6213)
@@ -116,8 +116,8 @@
         $data->{$r->{account_category}}->{$r->{account_number}} = {$label => $r};
         $data->{$r->{account_category}}->{$r->{account_number}}->{info} = $r;
     }
-    my $i_total = 0;
-    my $e_total = 0;
+    my $i_total = LedgerSMB::PGNumber->from_input('0');
+    my $e_total = LedgerSMB::PGNumber->from_input('0');
     my $total;
     for my $k (keys %{$data->{I}}){
        $i_total += $data->{I}->{$k}->{$label}->{amount}; 

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


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits