summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-10-29 22:24:15 +0000
committerivan <ivan>2008-10-29 22:24:15 +0000
commita20987ec5ea35450afbf311829e48e507099dad4 (patch)
tree8bae312ed33856f2bc839a65538bc8eb14c13e47
parent4e23a3b052540f0d19673214ee0e2fff9f8a7815 (diff)
eek, fix agent_plandata from comping up with spurious hits
-rw-r--r--FS/FS/cust_main.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index db70dacc6..3e767d9f0 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -7055,7 +7055,7 @@ sub _agent_plandata {
" AND action = 'cust_bill_send_agent' ".
" AND ( disabled IS NULL OR disabled != 'Y' ) ".
" AND peo_agentnum.optionname = 'agentnum' ".
- " AND agentnum IS NULL OR agentnum = $agentnum ".
+ " AND ( agentnum IS NULL OR agentnum = $agentnum ) ".
" ORDER BY
CASE WHEN peo_cust_bill_age.optionname != 'cust_bill_age'
THEN -1