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

SF.net SVN: ledger-smb:[2371] trunk/LedgerSMB/RP.pm



Revision: 2371
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2371&view=rev
Author:   einhverfr
Date:     2008-10-15 17:49:33 +0000 (Wed, 15 Oct 2008)

Log Message:
-----------
Correcting end date handling in trial balance report-- previously end dates entered caused unapproved transactions to be included

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

Modified: trunk/LedgerSMB/RP.pm
===================================================================
--- trunk/LedgerSMB/RP.pm	2008-10-14 20:26:40 UTC (rev 2370)
+++ trunk/LedgerSMB/RP.pm	2008-10-15 17:49:33 UTC (rev 2371)
@@ -1487,7 +1487,7 @@
                                         select id, approved FROM ar) g
                                         ON (g.id = ac.trans_id)
                                 JOIN chart c ON (c.id = ac.chart_id)
-                                WHERE ac.transdate <= $dateto OR $dateto IS NULL
+                                WHERE (ac.transdate <= $dateto OR $dateto IS NULL)
                                         AND ac.approved AND g.approved
                                         AND ($safe_project_id IS NULL
                                                 OR $safe_project_id = ac.project_id)


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