X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=855fbfcf125f4492a9030d2545e0d677ac86cd5e;hb=5bfefc51b44ef58c853f2108c80a57a36296cb79;hp=e7734c1fc111d094366392fc5003495d09fafbcb;hpb=8e3dfb380406e145494a5fffa7a0e4aab7b38253;p=freeside.git diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index e7734c1fc..855fbfcf1 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -1,5 +1,94 @@ -<% +% if ( $link eq 'popup' ) { + <% include('/elements/header-popup.html', $title ) %> +% } else { + <% include("/elements/header.html", $title, '') %> +% } +% if ( $cgi->param('error') ) { + Error: <% $cgi->param('error') %> +

+% } + + + + + + +
+ + + +% unless ( $link eq 'popup' ) { + <% small_custview($custnum, $conf->config('countrydefault')) %> +% } + + + +

+Payment +<% ntable("#cccccc", 2) %> + + + Date + + "> + + + + + + + + Amount + <% $money_char %> + by <% $payby{$payby} %> + + +% if ( $payby eq 'BILL' ) { + + Check # + + +% } + + +% if ( $link eq 'custnum' || $link eq 'popup' ) { + + Auto-apply
to invoices + + + + +% } elsif ( $link eq 'invnum' ) { + + Apply to + Invoice #<% $linknum %> only + + +% } + + + + + + +
+ + +
+ + + +<%once> my $conf = new FS::Conf; my %payby = ( @@ -9,6 +98,10 @@ my %payby = ( 'MCRD' => 'Manual credit card', ); +my $money_char = $conf->config('money_char') || '$'; + + +<%init> my($link, $linknum, $paid, $payby, $payinfo, $_date); if ( $cgi->param('error') ) { $link = $cgi->param('link'); @@ -40,32 +133,6 @@ my $paybatch = "webui-$_date-$$-". rand() * 2**32; my $title = 'Post '. $payby{$payby}. ' payment'; $title .= " against Invoice #$linknum" if $link eq 'invnum'; -if ( $link eq 'popup' ) { - -%><%= include('/elements/header-popup.html', $title ) %> - -<% } else { %> - -<%= include("/elements/header.html", $title, '') %> - -<% } %> - -<% if ( $cgi->param('error') ) { %> -Error: <%= $cgi->param('error') %> -

-<% } %> - - - - - - -
- - - -<% -my $money_char = $conf->config('money_char') || '$'; my $custnum; if ( $link eq 'invnum' ) { my $cust_bill = qsearchs('cust_bill', { 'invnum' => $linknum } ) @@ -74,64 +141,5 @@ if ( $link eq 'invnum' ) { } elsif ( $link eq 'custnum' ) { $custnum = $linknum; } -%> - -<% unless ( $link eq 'popup' ) { %> -<%= small_custview($custnum, $conf->config('countrydefault')) %> -<% } %> + - - -

-Payment -<%= ntable("#cccccc", 2) %> - - Date - - "> - - - - - - Amount - <%= $money_char %> - by <%= $payby{$payby} %> - - -<% if ( $payby eq 'BILL' ) { %> - - - Check # - - - -<% } %> - - -<% if ( $link eq 'custnum' ) { %> - Auto-apply
to invoices - -<% } elsif ( $link eq 'invnum' ) { %> - Apply to - Invoice #<%= $linknum %> only - -<% } %> - - - - - - -
- -
- -