diff options
author | ivan <ivan> | 2006-07-23 14:07:33 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-07-23 14:07:33 +0000 |
commit | e75070ffcf15e537036e4685d2aabb0415eec6d3 (patch) | |
tree | ad808f40e65ed1e79bbf3b3d8e38c12edb9f9bd5 /FS | |
parent | 580330233cbf32c58d9f29dc391bd2ebd83e16d5 (diff) |
more work towards adding an "inactive" status - add it to the A/R report
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_main.pm | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index cbcf6cc51..2b9564442 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -3670,18 +3670,17 @@ Returns a hex triplet color string for this customer's status. =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_pkgs = "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 ) "; } |