From be10e7a1421c13eec4b1bb3676eaf5c84344e601 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 17 Jan 2007 23:27:18 +0000 Subject: link to customer from manual payment screen (ticket 1414) --- httemplate/misc/change_pkg.cgi | 8 +++----- httemplate/misc/payment.cgi | 2 +- httemplate/misc/process/payment.cgi | 8 ++------ 3 files changed, 6 insertions(+), 12 deletions(-) (limited to 'httemplate/misc') diff --git a/httemplate/misc/change_pkg.cgi b/httemplate/misc/change_pkg.cgi index 17dc8b859..7276f3256 100755 --- a/httemplate/misc/change_pkg.cgi +++ b/httemplate/misc/change_pkg.cgi @@ -27,10 +27,7 @@ % " ( pkgnum ". cust_pkg->pkgnum. ")"; %my $agent = $cust_main->agent; % -%print header("Change Package", menubar( -% "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum", -% 'Main Menu' => $p, -%)); +%print header("Change Package"); % %print qq!Error: !, $cgi->param('error'), % "

" @@ -38,7 +35,8 @@ % %my $part_pkg = $cust_pkg->part_pkg; % -%print small_custview( $cust_main, $conf->config('countrydefault') ). +%print small_custview( $cust_main, $conf->config('countrydefault') || '' , '', +% "${p}view/cust_main.cgi"). % qq!
!. % qq!!. % qq!!. diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 73a9c6297..728eba7b9 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -31,7 +31,7 @@ % <% include( '/elements/header.html', "Process $type{$payby} payment" ) %> -<% include( '/elements/small_custview.html', $cust_main ) %> +<% include( '/elements/small_custview.html', $cust_main, '', '', popurl(2) . "view/cust_main.cgi" ) %> diff --git a/httemplate/misc/process/payment.cgi b/httemplate/misc/process/payment.cgi index c5638c585..6089d27c0 100644 --- a/httemplate/misc/process/payment.cgi +++ b/httemplate/misc/process/payment.cgi @@ -138,14 +138,10 @@ % <% include( '/elements/header.html', ucfirst($type{$payby}). ' processing successful', - include('/elements/menubar.html', - 'Main menu' => popurl(3), - "View this customer (#$custnum)" => - popurl(3). "view/cust_main.cgi?$custnum", - ), + include('/elements/menubar.html'), ) %> -<% include( '/elements/small_custview.html', $cust_main ) %> +<% include( '/elements/small_custview.html', $cust_main, '', '', popurl(3). "view/cust_main.cgi" ) %> -- cgit v1.2.1