projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c6e1ade
)
precedence helps alot
author
ivan
<ivan>
Fri, 21 Nov 2003 15:25:52 +0000
(15:25 +0000)
committer
ivan
<ivan>
Fri, 21 Nov 2003 15:25:52 +0000
(15:25 +0000)
httemplate/search/report_receivables.cgi
patch
|
blob
|
history
diff --git
a/httemplate/search/report_receivables.cgi
b/httemplate/search/report_receivables.cgi
index
108453d
..
f42269f
100755
(executable)
--- a/
httemplate/search/report_receivables.cgi
+++ b/
httemplate/search/report_receivables.cgi
@@
-70,14
+70,14
@@
END
( select count(*) from cust_pkg
where cust_main.custnum = cust_pkg.custnum
and $recurring
( select count(*) from cust_pkg
where cust_main.custnum = cust_pkg.custnum
and $recurring
- and
cancel = 0 or cancel is null
+ and
( cancel = 0 or cancel is null )
) as uncancelled_pkgs,
( select count(*) from cust_pkg
where cust_main.custnum = cust_pkg.custnum
and $recurring
) as uncancelled_pkgs,
( select count(*) from cust_pkg
where cust_main.custnum = cust_pkg.custnum
and $recurring
- and
cancel = 0 or cancel is null
- and
susp = 0 or susp is null
+ and
( cancel = 0 or cancel is null )
+ and
( susp = 0 or susp is null )
) as active_pkgs
END
) as active_pkgs
END