diff options
author | ivan <ivan> | 2001-12-26 05:19:01 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-12-26 05:19:01 +0000 |
commit | f91771606ce8a2bb4f2fa44e7bf54c9b7c945db6 (patch) | |
tree | 7da1ee61f30a34c99b5684be07f6d727ec3ecdd0 | |
parent | 325a7d418b222bad6ea2ef772a53ea5914cae220 (diff) |
expedited check entry
-rwxr-xr-x | httemplate/edit/cust_pay.cgi | 8 | ||||
-rwxr-xr-x | httemplate/edit/process/cust_pay.cgi | 8 | ||||
-rw-r--r-- | httemplate/index.html | 6 | ||||
-rwxr-xr-x | httemplate/search/cust_main-payinfo.html | 4 | ||||
-rwxr-xr-x | httemplate/search/cust_main-quickpay.html | 37 | ||||
-rwxr-xr-x | httemplate/search/cust_main.cgi | 15 | ||||
-rwxr-xr-x | httemplate/search/cust_main.html | 2 |
7 files changed, 69 insertions, 11 deletions
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index 7f70802c3..38654e98d 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -1,8 +1,8 @@ <% -#<!-- $Id: cust_pay.cgi,v 1.8 2001-12-26 04:25:04 ivan Exp $ --> +#<!-- $Id: cust_pay.cgi,v 1.9 2001-12-26 05:19:01 ivan Exp $ --> use strict; -use vars qw( $cgi $link $linknum $p1 $_date $payby $payinfo $paid ); +use vars qw( $cgi $link $linknum $p1 $_date $payby $payinfo $paid $quickpay ); use Date::Format; use CGI; use CGI::Carp qw(fatalsToBrowser); @@ -21,6 +21,7 @@ if ( $cgi->param('error') ) { $paid = $cgi->param('paid'); $payby = $cgi->param('payby'); $payinfo = $cgi->param('payinfo'); + $quickpay = $cgi->param('quickpay'); } elsif ($cgi->keywords) { my($query) = $cgi->keywords; $query =~ /^(\d+)$/; @@ -29,12 +30,14 @@ if ( $cgi->param('error') ) { $paid = ''; $payby = 'BILL'; $payinfo = ""; + $quickpay = ''; } elsif ( $cgi->param('custnum') =~ /^(\d+)$/ ) { $link = 'custnum'; $linknum = $1; $paid = ''; $payby = 'BILL'; $payinfo = ''; + $quickpay = $cgi->param('quickpay'); } else { die "illegal query ". $cgi->keywords; } @@ -51,6 +54,7 @@ print <<END, ntable("#cccccc",2); <FORM ACTION="${p1}process/cust_pay.cgi" METHOD=POST> <INPUT TYPE="hidden" NAME="link" VALUE="$link"> <INPUT TYPE="hidden" NAME="linknum" VALUE="$linknum"> + <INPUT TYPE="hidden" NAME="quickpay" VALUE="$quickpay"> END my $custnum; diff --git a/httemplate/edit/process/cust_pay.cgi b/httemplate/edit/process/cust_pay.cgi index b2b3602db..630e8fc1b 100755 --- a/httemplate/edit/process/cust_pay.cgi +++ b/httemplate/edit/process/cust_pay.cgi @@ -1,5 +1,5 @@ <% -#<!-- $Id: cust_pay.cgi,v 1.4 2001-12-26 04:25:04 ivan Exp $ --> +#<!-- $Id: cust_pay.cgi,v 1.5 2001-12-26 05:19:01 ivan Exp $ --> use strict; use vars qw( $cgi $link $linknum $new $error ); @@ -43,7 +43,11 @@ if ($error) { or die "unknown custnum $linknum"; $cust_main->apply_payments; } - print $cgi->redirect(popurl(3). "view/cust_main.cgi?$linknum"); + if ( $cgi->param('quickpay') eq 'yes' ) { + print $cgi->redirect(popurl(3). "search/cust_main-quickpay.html"); + } else { + print $cgi->redirect(popurl(3). "view/cust_main.cgi?$linknum"); + } } %> diff --git a/httemplate/index.html b/httemplate/index.html index 85912c24f..dcf513703 100644 --- a/httemplate/index.html +++ b/httemplate/index.html @@ -26,7 +26,7 @@ <LI><A HREF="search/svc_acct.html">accounts (by username)</A> <LI><A HREF="search/svc_domain.html">domains (by domain)</A> <!-- <LI><A HREF="search/svc_acct_sm.html">mail aliases (by domain, and optionally username)</A>--> - <LI><A HREF="search/svc_forward.html">mail forwards (by ?)</A> +<!-- <LI><A HREF="search/svc_forward.html">mail forwards (by ?)</A>--> <LI><A HREF="search/cust_bill.html">invoices (by invoice number)</A> </ul> <li><A NAME="browse">Browse</A> @@ -62,6 +62,10 @@ <LI><A HREF="browse/queue.cgi">Job queue</A> <LI><A HREF="browse/cust_pay_batch.cgi">Pending credit card batch</A> </ul> + <li>Miscellaneous + <ul> + <li><A HREF="search/cust_main-quickpay.html">Quick payment entry</A> + </ul> </ul> <hr noshade> <ul> diff --git a/httemplate/search/cust_main-payinfo.html b/httemplate/search/cust_main-payinfo.html index 47bb83cbd..671b5ef08 100755 --- a/httemplate/search/cust_main-payinfo.html +++ b/httemplate/search/cust_main-payinfo.html @@ -2,8 +2,8 @@ <HEAD> <TITLE>Customer Search</TITLE> </HEAD> - <BODY BGCOLOR="#ffffff"> - <FONT COLOR="#ff0000" SIZE=7> + <BODY BGCOLOR="#e8e8e8"> + <FONT SIZE=7> Customer Search </FONT> <BR> diff --git a/httemplate/search/cust_main-quickpay.html b/httemplate/search/cust_main-quickpay.html new file mode 100755 index 000000000..3f0ba0412 --- /dev/null +++ b/httemplate/search/cust_main-quickpay.html @@ -0,0 +1,37 @@ +<HTML> + <HEAD> + <TITLE>Quick payment entry</TITLE> + </HEAD> + <BODY BGCOLOR="#e8e8e8"> + <FONT SIZE=7> + Quick payment entry + </FONT> + <BR><BR> + <FORM ACTION="cust_main.cgi" METHOD="post"> + <INPUT TYPE="hidden" NAME="quickpay" VALUE="yes"> + <INPUT TYPE="checkbox" NAME="last_on" CHECKED> Search for <B>last name</B>: + <INPUT TYPE="text" NAME="last_text"> + using search method: <SELECT NAME="last_type"> + <OPTION SELECTED>Fuzzy + <OPTION>Exact + </SELECT> + + <P><INPUT TYPE="checkbox" NAME="company_on" CHECKED> Search for <B>company</B>: + <INPUT TYPE="text" NAME="company_text"> + using search methods: <SELECT NAME="company_type"> + <OPTION SELECTED>Fuzzy + <OPTION>Exact + </SELECT> + + <P><INPUT TYPE="submit" VALUE="Search"> Note: Fuzzy searching can take a while. Please be patient. + + </FORM> + + <HR>Explanation of search methods: + <UL> + <LI><B>Fuzzy</B> - Searches for matches that are close to your text. + <LI><B>Exact</B> - Finds exact matches only, but much faster than the other search methods. + </UL> + </BODY> +</HTML> + diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index b9b1d1fb2..4d3ec3564 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -1,5 +1,5 @@ <% -#<!-- $Id: cust_main.cgi,v 1.18 2001-12-03 11:33:19 ivan Exp $ --> +#<!-- $Id: cust_main.cgi,v 1.19 2001-12-26 05:19:01 ivan Exp $ --> use strict; #use vars qw( $conf %ncancelled_pkgs %all_pkgs $cgi @cust_main $sortby ); @@ -154,7 +154,11 @@ if ( $conf->exists('hidecancelledpackages' ) ) { #%all_pkgs = (); if ( scalar(@cust_main) == 1 && ! $cgi->param('referral_custnum') ) { - print $cgi->redirect(popurl(2). "view/cust_main.cgi?". $cust_main[0]->custnum); + if ( $cgi->param('quickpay') eq 'yes' ) { + print $cgi->redirect(popurl(2). "edit/cust_pay.cgi?quickpay=yes;custnum=". $cust_main[0]->custnum); + } else { + print $cgi->redirect(popurl(2). "view/cust_main.cgi?". $cust_main[0]->custnum); + } exit; } elsif ( scalar(@cust_main) == 0 ) { eidiot "No matching customers found!\n"; @@ -282,7 +286,12 @@ END } #my($rowspan) = scalar(@{$all_pkgs{$custnum}}); - my $view = $p. 'view/cust_main.cgi?'. $custnum; + my $view; + if ( defined $cgi->param('quickpay') && $cgi->param('quickpay') eq 'yes' ) { + $view = $p. 'edit/cust_pay.cgi?quickpay=yes;custnum='. $custnum; + } else { + $view = $p. 'view/cust_main.cgi?'. $custnum; + } print <<END; <TR> <TD ROWSPAN=$rowspan><A HREF="$view"><FONT SIZE=-1>$custnum</FONT></A></TD> diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html index 12796c7b2..1e91adee9 100755 --- a/httemplate/search/cust_main.html +++ b/httemplate/search/cust_main.html @@ -6,7 +6,7 @@ <FONT SIZE=7> Customer Search </FONT> - <BR> + <BR><BR> <FORM ACTION="cust_main.cgi" METHOD="post"> <INPUT TYPE="checkbox" NAME="last_on" CHECKED> Search for <B>last name</B>: <INPUT TYPE="text" NAME="last_text"> |