From dcf1ad84924e58127a42e0c905e940eb4e076ac7 Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Wed, 19 Sep 2018 02:31:52 -0400 Subject: RT# 78547 Future autobill report - sql bugfix --- httemplate/search/future_autobill.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'httemplate/search') diff --git a/httemplate/search/future_autobill.html b/httemplate/search/future_autobill.html index 1f3862fbc..3385dd880 100644 --- a/httemplate/search/future_autobill.html +++ b/httemplate/search/future_autobill.html @@ -121,8 +121,8 @@ there will be 1,400 billing and payment cycles simulated order_by => " ORDER BY weight DESC ", extra_sql => "AND ( - payby IN ('CHEK','DCHK','DCHEK') - OR ( paydate > '".$target_dt->ymd."') + cust_payby.payby IN ('CHEK','DCHK','DCHEK') + OR ( cust_payby.paydate > '".$target_dt->ymd."') ) AND " . $FS::CurrentUser::CurrentUser->agentnums_sql . ($agentnum ? "AND cust_main.agentnum = $agentnum" : ''), -- cgit v1.2.1