X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=htdocs%2Fview%2Fcust_main.cgi;h=055256570fba8a1d7199ce05be8e279dce3c7185;hb=61fc4e61c6644d2e0abdffe8cbdfafd4b092e84b;hp=4bde0be288c76e012ee3f7f600052b020f374e2f;hpb=b6d1aed30d51bdae49ca22e5aa5baab635969097;p=freeside.git diff --git a/htdocs/view/cust_main.cgi b/htdocs/view/cust_main.cgi index 4bde0be28..055256570 100755 --- a/htdocs/view/cust_main.cgi +++ b/htdocs/view/cust_main.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: cust_main.cgi,v 1.15 1999-04-09 03:52:55 ivan Exp $ +# $Id: cust_main.cgi,v 1.18 1999-08-12 04:16:01 ivan Exp $ # # Usage: cust_main.cgi custnum # http://server.name/path/cust_main.cgi?custnum @@ -31,7 +31,16 @@ # lose background, FS::CGI ivan@sisd.com 98-sep-2 # # $Log: cust_main.cgi,v $ -# Revision 1.15 1999-04-09 03:52:55 ivan +# Revision 1.18 1999-08-12 04:16:01 ivan +# hidecancelledpackages config option +# +# Revision 1.17 1999/04/15 16:44:36 ivan +# delete customers +# +# Revision 1.16 1999/04/09 04:22:34 ivan +# also table() +# +# Revision 1.15 1999/04/09 03:52:55 ivan # explicit & for table/itable/ntable # # Revision 1.14 1999/04/08 04:04:37 ivan @@ -79,7 +88,7 @@ use strict; use vars qw ( $cgi $query $custnum $cust_main $hashref $agent $referral @packages $package @history @bills $bill @credits $credit - $balance $item @agents @referrals @invoicing_list $n1 ); + $balance $item @agents @referrals @invoicing_list $n1 $conf ); use CGI; use CGI::Carp qw(fatalsToBrowser); use Date::Format; @@ -99,6 +108,8 @@ use FS::cust_refund; $cgi = new CGI; &cgisuidsetup($cgi); +$conf = new FS::Conf; + print $cgi->header( '-expires' => 'now' ), header("Customer View", menubar( 'Main Menu' => popurl(2) )); @@ -114,8 +125,11 @@ $hashref = $cust_main->hashref; print &itable(), ''; print qq!Edit this customer!, - &ntable("#c0c0c0"), "", &ntable("#c0c0c0",2), + qq!edit/cust_main.cgi?$custnum">Edit this customer!; +print qq! | Delete this customer! + if $conf->exists('deletecustomers'); +print &ntable("#c0c0c0"), "", &ntable("#c0c0c0",2), 'Customer number', $custnum, '', ; @@ -235,7 +249,7 @@ print qq!

Packages !, #display packages #formatting -print qq!!, &table, "\n", +print qq!!, &table(), "\n", qq!Package!, qq!DatesServices\n!, qq!Setup!, @@ -246,8 +260,11 @@ print qq!!, &table, "\n", qq!\n!; #get package info -@packages = $cust_main->all_pkgs; -#@packages = $cust_main->ncancelled_pkgs; +if ( $conf->exists('hidecancelledpackages') ) { + @packages = $cust_main->ncancelled_pkgs; +} else { + @packages = $cust_main->all_pkgs; +} $n1 = ''; foreach $package (@packages) {