From 46a7257273fdae101658c8a1ee74f654ca0876b5 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 3 Sep 2008 01:46:43 +0000 Subject: add back ability to post a check/cash refund. be more explicit about it instead of just being a checkbox when posting a credit. RT#3812 --- httemplate/edit/cust_pay.cgi | 45 ++++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 27 deletions(-) (limited to 'httemplate/edit/cust_pay.cgi') diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index 92abb7be8..3c2877498 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -4,24 +4,22 @@ <% include("/elements/header.html", $title, '') %> % } -<% include('/elements/error.html') %> - - - - - +<% include('/elements/init_calendar.html') %> -
- - +<% include('/elements/error.html') %> % unless ( $link eq 'popup' ) { <% small_custview($custnum, $conf->config('countrydefault')) %> % } + + + +

+ Payment <% ntable("#cccccc", 2) %> @@ -45,7 +43,7 @@ Payment Amount <% $money_char %> - by <% $payby{$payby} %> + by <% FS::payby->payname($payby) %> % if ( $payby eq 'BILL' ) { @@ -76,31 +74,24 @@ Payment - -
- - -<%once> +% if ( $link eq 'popup' ) { + + +% } else { + <% include('/elements/footer.html') %> +% } -my $conf = new FS::Conf; +<%init> -my %payby = ( - 'BILL' => 'Check', - 'CASH' => 'Cash', - 'WEST' => 'Western Union', - 'MCRD' => 'Manual credit card', -); +my $conf = new FS::Conf; my $money_char = $conf->config('money_char') || '$'; - -<%init> - die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Post payment'); @@ -132,7 +123,7 @@ if ( $cgi->param('error') ) { my $paybatch = "webui-$_date-$$-". rand() * 2**32; -my $title = 'Post '. $payby{$payby}. ' payment'; +my $title = 'Post '. FS::payby->payname($payby). ' payment'; $title .= " against Invoice #$linknum" if $link eq 'invnum'; my $custnum; @@ -143,5 +134,5 @@ if ( $link eq 'invnum' ) { } elsif ( $link eq 'custnum' ) { $custnum = $linknum; } - + -- cgit v1.2.1