summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LedgerSMB/RP.pm2
1 files changed, 1 insertions, 1 deletions
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|;