[freeside-commits] freeside/FS/FS cust_main.pm,1.218,1.219
Ivan,,,
ivan at wavetail.420.am
Sun Jul 23 07:07:35 PDT 2006
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv7027/FS/FS
Modified Files:
cust_main.pm
Log Message:
more work towards adding an "inactive" status - add it to the A/R report
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -d -r1.218 -r1.219
--- cust_main.pm 5 Jul 2006 14:55:28 -0000 1.218
+++ cust_main.pm 23 Jul 2006 14:07:33 -0000 1.219
@@ -3670,18 +3670,17 @@
=cut
+use vars qw(%statuscolor);
+%statuscolor = (
+ 'prospect' => '7e0079', #'000000', #black? naw, purple
+ 'active' => '00CC00', #green
+ 'inactive' => '0000CC', #blue
+ 'suspended' => 'FF9900', #yellow
+ 'cancelled' => 'FF0000', #red
+);
sub statuscolor {
my $self = shift;
-
- my %statuscolor = (
- 'prospect' => '7e0079', #'000000', #black? naw, purple
- 'active' => '00CC00', #green
- 'inactive' => '0000CC', #blue
- 'suspended' => 'FF9900', #yellow
- 'cancelled' => 'FF0000', #red
- );
-
$statuscolor{$self->status};
}
@@ -3703,6 +3702,10 @@
"SELECT COUNT(*) FROM cust_pkg
WHERE cust_pkg.custnum = cust_main.custnum";
+sub select_count_pkgs_sql {
+ $select_count_pkgs;
+}
+
sub prospect_sql { "
0 = ( $select_count_pkgs )
"; }
More information about the freeside-commits
mailing list