X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;h=4f6f7ef75fbfcd72b94505030ac7dd1016b11e48;hp=02648a821df98a1e191ebe9df786580644177e2b;hb=18bc864bfbf806ea49323094f2f571e9cefd0498;hpb=5d089cbe4980f7c9c25b83e164099b22bc59eead diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 02648a821..4f6f7ef75 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -1,6 +1,6 @@ -<& /elements/header.html, mt("Process [_1] payment",$type{$payby}) &> -<& /elements/small_custview.html, $cust_main, '', '', popurl(2) . "view/cust_main.cgi" &> -
+<& /elements/header-cust_main.html, view=>'payment_history', cust_main=>$cust_main &> + +

<% emt("Process [_1] payment",$type{$payby}) %>

@@ -12,8 +12,9 @@ - <& /elements/tr-amount_fee.html, - 'amount' => $amount, + <& /elements/tr-select-payment_options.html, + 'custnum' => $cust_main->custnum, + 'amount' => $balance, 'process-pkgpart' => scalar($conf->config('manual_process-pkgpart', $cust_main->agentnum)), 'process-display' => scalar($conf->config('manual_process-display')), @@ -21,7 +22,12 @@ 'num_payments' => scalar($cust_main->cust_pay), 'surcharge_percentage' => ( $payby eq 'CARD' - ? scalar($conf->config('credit-card-surcharge-percentage')) + ? scalar($conf->config('credit-card-surcharge-percentage', $cust_main->agentnum)) + : 0 + ), + 'surcharge_flatfee' => + ( $payby eq 'CARD' + ? scalar($conf->config('credit-card-surcharge-flatfee', $cust_main->agentnum)) : 0 ), &> @@ -33,6 +39,57 @@ &> % } +% my $disallow_no_auto_apply = 0; +% if ( $conf->exists("batch-enable") +% || grep $payby eq $_, $conf->config('batch-enable_payby') +% ) { +% +% if ( grep $payby eq $_, $conf->config('realtime-disable_payby') ) { +% $disallow_no_auto_apply = 1; + + + +% } else { + + + + + + +% } +% } + +% unless ($disallow_no_auto_apply) { +% # false laziness with edit/cust_pay.cgi + + + + + + +% # this can go away if no_auto_apply handling gets added to batch payment processing + + +% } +
   <% mt('Add to current batch') |h %> + +
<% mt('Auto-apply to invoices') |h %> + +