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

SF.net SVN: ledger-smb:[6656] trunk/LedgerSMB/Report/Trial_Balance.pm



Revision: 6656
          http://sourceforge.net/p/ledger-smb/code/6656
Author:   einhverfr
Date:     2014-01-27 02:37:13 +0000 (Mon, 27 Jan 2014)
Log Message:
-----------
Fixing blank date in trial balance giving error, to file bug report

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

Modified: trunk/LedgerSMB/Report/Trial_Balance.pm
===================================================================
--- trunk/LedgerSMB/Report/Trial_Balance.pm	2014-01-27 02:34:26 UTC (rev 6655)
+++ trunk/LedgerSMB/Report/Trial_Balance.pm	2014-01-27 02:37:13 UTC (rev 6656)
@@ -229,9 +229,12 @@
     for my $ref(@rawrows){
         next if (($ref->{starting_balance} == 0)
                         and ($ref->{credits} == 0) and ($ref->{debits} == 0));
-        my $href_suffix = "&from_date=" . $self->date_from->to_db . 
-                          "&to_date=" . $self->date_to->to_db .
-                          "&accno=" . $ref->{account_number};
+        my $href_suffix = "&accno=" . $ref->{account_number};
+        $href_suffix .= "&from_date=" . $self->date_from->to_db 
+              if defined $self->date_from;
+        $href_suffix .= "&to_date=" . $self->date_to->to_db
+              if defined $self->date_to;
+               
         $total_debits += $ref->{debits}; 
         $total_credits += $ref->{credits}; 
         $ref->{account_number_href_suffix} = $href_suffix;

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


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits