projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 78547 Future autobill report - sql bugfix
[freeside.git]
/
httemplate
/
search
/
future_autobill.html
diff --git
a/httemplate/search/future_autobill.html
b/httemplate/search/future_autobill.html
index
1f3862f
..
3385dd8
100644
(file)
--- 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 (
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" : ''),
)
AND " . $FS::CurrentUser::CurrentUser->agentnums_sql
. ($agentnum ? "AND cust_main.agentnum = $agentnum" : ''),