From c0cce01de4a4b285921059056e1d124ddb28a42f Mon Sep 17 00:00:00 2001 From: einhverfr Date: Thu, 10 Jan 2008 23:00:37 +0000 Subject: Fixing trial balance not to pull future approved transactions for the balance. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2036 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/RP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LedgerSMB/RP.pm b/LedgerSMB/RP.pm index ebca11c3..40bc3d08 100644 --- a/LedgerSMB/RP.pm +++ b/LedgerSMB/RP.pm @@ -1473,7 +1473,7 @@ sub trial_balance { JOIN chart c ON (c.id = ac.chart_id) $dpt_join WHERE $where $dpt_where $project - AND $approved OR (ac.approved) + AND ($approved OR ac.approved) GROUP BY c.accno, c.description, c.category, c.contra ORDER BY accno|; -- cgit v1.2.3