freeside/FS/FS cust_main.pm,1.183,1.184
ivan
ivan at pouncequick.420.am
Sun May 15 06:01:05 PDT 2005
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv6263/FS/FS
Modified Files:
cust_main.pm
Log Message:
move receivables report to search template
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -d -r1.183 -r1.184
--- cust_main.pm 18 Apr 2005 07:37:24 -0000 1.183
+++ cust_main.pm 15 May 2005 13:00:59 -0000 1.184
@@ -3066,9 +3066,15 @@
=cut
+my $recurring_sql = "
+ '0' != ( select freq from part_pkg
+ where cust_pkg.pkgpart = part_pkg.pkgpart )
+";
+
sub active_sql { "
0 < ( SELECT COUNT(*) FROM cust_pkg
WHERE cust_pkg.custnum = cust_main.custnum
+ AND $recurring_sql
AND ( cust_pkg.cancel IS NULL OR cust_pkg.cancel = 0 )
AND ( cust_pkg.susp IS NULL OR cust_pkg.susp = 0 )
)
@@ -3085,10 +3091,12 @@
sub susp_sql { "
0 < ( SELECT COUNT(*) FROM cust_pkg
WHERE cust_pkg.custnum = cust_main.custnum
+ AND $recurring_sql
AND ( cust_pkg.cancel IS NULL OR cust_pkg.cancel = 0 )
)
AND 0 = ( SELECT COUNT(*) FROM cust_pkg
WHERE cust_pkg.custnum = cust_main.custnum
+ AND $recurring_sql
AND ( cust_pkg.susp IS NULL OR cust_pkg.susp = 0 )
AND ( cust_pkg.cancel IS NULL OR cust_pkg.cancel = 0 )
)
@@ -3108,6 +3116,7 @@
)
AND 0 = ( SELECT COUNT(*) FROM cust_pkg
WHERE cust_pkg.custnum = cust_main.custnum
+ AND $recurring_sql
AND ( cust_pkg.cancel IS NULL OR cust_pkg.cancel = 0 )
)
"; }
More information about the freeside-commits
mailing list