From 6ce5ed47f0108896bc9d32a348b5afa44bd09c84 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 12 Aug 1999 04:16:01 +0000 Subject: hidecancelledpackages config option --- htdocs/docs/config.html | 4 +++- htdocs/view/cust_main.cgi | 14 ++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'htdocs') diff --git a/htdocs/docs/config.html b/htdocs/docs/config.html index 3d4e743c1..cad10ce65 100644 --- a/htdocs/docs/config.html +++ b/htdocs/docs/config.html @@ -25,10 +25,12 @@ All further configuration files and directories are located in
  • bsdshellmachines - Your BSD flavored shell (and mail) machines, one per line. This enables export of `/etc/passwd' and `/etc/master.passwd'.
  • cybercash2 - CyberCash v2 support, four lines: paymentserverhost, paymentserverport, paymentserversecret, and transaction type (`mauthonly' or `mauthcapture'). CCLib.pm is required.
  • cybercash3.2 - CyberCash v3.2 support. Two lines: the full path and name of your merchant_conf file, and the transaction type (`mauthonly' or `mauthcapture'). CCMckLib3_2.pm, CCMckDirectLib3_2.pm and CCMckErrno3_2 are required. -
  • deletecustomers - The existance of this file will enable customer deletions. +
  • deletecustomers - The existance of this file will enable customer deletions. Be very careful! Deleting a customer will remove all traces that this customer ever existed! It should probably only be used when auditing a legacy database. Normally, you cancel all of a customers' packages if they cancel service.
  • domain - Your domain name.
  • editreferrals - The existance of this file will allow you to change the referral of existing customers.
  • erpcdmachines - Your ERPCD authenticaion machines, one per line. This enables export of `/usr/annex/acp_passwd' and `/usr/annex/acp_dialup'. +
  • hidecancelledpackages - The existance of this file will prevent cancelled packages from showing up in listings (though they will still be in the database) +
  • hidecancelledcustomers - The existance of this file will prevent customers with only cancelled packages from showing up in listings (though they will still be in the database)
  • home - For new users, prefixed to usrename to create a directory name. Should have a leading but not a trailing slash.
  • invoice_from - Return address on email invoices.
  • lpr - Print command for paper invoices, for example `lpr -h'. diff --git a/htdocs/view/cust_main.cgi b/htdocs/view/cust_main.cgi index de9ff7f89..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.17 1999-04-15 16:44:36 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,10 @@ # lose background, FS::CGI ivan@sisd.com 98-sep-2 # # $Log: cust_main.cgi,v $ -# Revision 1.17 1999-04-15 16:44:36 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 @@ -257,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) { -- cgit v1.2.1