[freeside-commits] freeside/FS/FS cust_pkg.pm,1.143,1.144
Ivan,,,
ivan at wavetail.420.am
Thu Dec 3 19:23:22 PST 2009
- Previous message: [freeside-commits] freeside/httemplate/graph cust_bill_pkg.cgi, 1.10.2.1, 1.10.2.2
- Next message: [freeside-commits] freeside/httemplate/search report_svc_acct.html, 1.5, 1.6 cust_bill.html, 1.34, 1.35 cust_bill_event.cgi, 1.17, 1.18 cust_event.html, 1.7, 1.8 477.html, 1.3, 1.4 cust_pkg.cgi, 1.60, 1.61 cust_main.html, 1.18, 1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv24409
Modified Files:
cust_pkg.pm
Log Message:
doh, 1.9 fix customer package search (fallout from customer classes) and add "not yet billed" status to customer package report
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- cust_pkg.pm 29 Nov 2009 23:18:07 -0000 1.143
+++ cust_pkg.pm 4 Dec 2009 03:23:20 -0000 1.144
@@ -2231,6 +2231,7 @@
sub active_sql { "
". $_[0]->recurring_sql(). "
+ AND cust_pkg.setup IS NOT NULL AND cust_pkg.setup != 0
AND ( cust_pkg.cancel IS NULL OR cust_pkg.cancel = 0 )
AND ( cust_pkg.susp IS NULL OR cust_pkg.susp = 0 )
"; }
@@ -2394,8 +2395,8 @@
push @where, FS::cust_pkg->active_sql();
- } elsif ( $params->{'magic'} eq 'not yet billed'
- || $params->{'status'} eq 'not yet billed' ) {
+ } elsif ( $params->{'magic'} =~ /^not[ _]yet[ _]billed$/
+ || $params->{'status'} =~ /^not[ _]yet[ _]billed$/ ) {
push @where, FS::cust_pkg->not_yet_billed_sql();
@@ -2429,7 +2430,7 @@
{
$classnum = $1;
if ( $classnum ) { #a specific class
- push @where, "classnum = $classnum";
+ push @where, "part_pkg.classnum = $classnum";
#@pkg_class = ( qsearchs('pkg_class', { 'classnum' => $classnum } ) );
#die "classnum $classnum not found!" unless $pkg_class[0];
@@ -2437,7 +2438,7 @@
} elsif ( $classnum eq '' ) { #the empty class
- push @where, "classnum IS NULL";
+ push @where, "part_pkg.classnum IS NULL";
#$title .= 'Empty class ';
#@pkg_class = ( '(empty class)' );
} elsif ( $classnum eq '0' ) {
- Previous message: [freeside-commits] freeside/httemplate/graph cust_bill_pkg.cgi, 1.10.2.1, 1.10.2.2
- Next message: [freeside-commits] freeside/httemplate/search report_svc_acct.html, 1.5, 1.6 cust_bill.html, 1.34, 1.35 cust_bill_event.cgi, 1.17, 1.18 cust_event.html, 1.7, 1.8 477.html, 1.3, 1.4 cust_pkg.cgi, 1.60, 1.61 cust_main.html, 1.18, 1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list