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

SF.net SVN: ledger-smb:[3693] trunk/LedgerSMB/AA.pm



Revision: 3693
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3693&view=rev
Author:   einhverfr
Date:     2011-09-02 17:56:14 +0000 (Fri, 02 Sep 2011)
Log Message:
-----------
Fixing open/closed transaction reports

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

Modified: trunk/LedgerSMB/AA.pm
===================================================================
--- trunk/LedgerSMB/AA.pm	2011-09-01 23:52:26 UTC (rev 3692)
+++ trunk/LedgerSMB/AA.pm	2011-09-02 17:56:14 UTC (rev 3693)
@@ -1116,8 +1116,8 @@
 
     if ( $form->{open} || $form->{closed} ) {
         unless ( $form->{open} && $form->{closed} ) {
-            $where .= " AND a.amount != a.paid" if ( $form->{open} );
-            $where .= " AND a.amount = a.paid"  if ( $form->{closed} );
+            $where .= " AND pd.due <> 0" if ( $form->{open} );
+            $where .= " AND pd.due = 0"  if ( $form->{closed} );
         }
     }
 

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