summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2009-01-20 20:11:05 +0000
committerivan <ivan>2009-01-20 20:11:05 +0000
commitdbd5ae96e06cb6dfdbeed7e019b519c6c71cf7c5 (patch)
treec649832fa98deefe35e4e57b2f650f996a0c5227
parent2f0584c5150a5b95556756f9731d70b2a4d37bab (diff)
whew, hopefully that will actually fix agent-specific invoices migrated from 1.7->1.9, RT#4645
-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 77e08fe1c..e6c808408 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -7075,7 +7075,7 @@ sub _agent_plandata {
" AND peo_agentnum.optionname = 'agentnum' ".
" AND ( agentnum IS NULL OR agentnum = $agentnum ) ".
" ORDER BY
- CASE WHEN peo_cust_bill_age.optionname != 'cust_bill_age'
+ CASE WHEN part_event_condition_option.optionname IS NULL
THEN -1
ELSE ". FS::part_event::Condition->age2seconds_sql('part_event_condition_option.optionvalue').
" END