[freeside-commits] freeside/FS/FS cust_main.pm,1.563,1.564
Ivan,,,
ivan at wavetail.420.am
Sun Oct 17 20:36:41 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv30205
Modified Files:
cust_main.pm
Log Message:
fix "Inactive" status showing instead of "Suspended" or "Canceled" when there were one-time charges, RT#9971
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.563
retrieving revision 1.564
diff -u -w -d -r1.563 -r1.564
--- cust_main.pm 14 Oct 2010 01:14:27 -0000 1.563
+++ cust_main.pm 18 Oct 2010 03:36:39 -0000 1.564
@@ -3581,7 +3581,6 @@
sub cust_status {
my $self = shift;
- # prospect ordered active inactive suspended cancelled
for my $status ( FS::cust_main->statuses() ) {
my $method = $status.'_sql';
my $numnum = ( my $sql = $self->$method() ) =~ s/cust_main\.custnum/?/g;
@@ -3618,9 +3617,9 @@
'prospect' => '7e0079', #'000000', #black? naw, purple
'active' => '00CC00', #green
'ordered' => '009999', #teal? cyan?
- 'inactive' => '0000CC', #blue
'suspended' => 'FF9900', #yellow
'cancelled' => 'FF0000', #red
+ 'inactive' => '0000CC', #blue
;
sub statuscolor { shift->cust_statuscolor(@_); }
@@ -3845,8 +3844,8 @@
AND 0 = ( $select_count_pkgs AND $recurring_sql
AND ( cust_pkg.cancel IS NULL OR cust_pkg.cancel = 0 )
)
- AND 0 = ( $select_count_pkgs AND ". FS::cust_pkg->inactive_sql. " )
";
+# AND 0 = ( $select_count_pkgs AND ". FS::cust_pkg->inactive_sql. " )
}
More information about the freeside-commits
mailing list