diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-10-15 17:49:33 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-10-15 17:49:33 +0000 |
commit | 05c9e51dcb806570078c0a3d2152c8bbc388719b (patch) | |
tree | 188083c854ff7f963822319e6c6ee85797945388 | |
parent | 13a94bbf789a9c9b41f052c4f230e9acf9fbc105 (diff) |
Correcting end date handling in trial balance report-- previously end dates entered caused unapproved transactions to be included
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2371 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r-- | LedgerSMB/RP.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/RP.pm b/LedgerSMB/RP.pm index 816980de..99dbf1ce 100644 --- a/LedgerSMB/RP.pm +++ b/LedgerSMB/RP.pm @@ -1487,7 +1487,7 @@ sub trial_balance { 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) |