X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;h=f4f0b56dd6f3de2ee6836c51dc03c56f13c50a53;hb=f32ac83068c6211f829f1688a1a9cdec71bc6ec7;hp=b83ad7166f5c41b281f6700ae99f1ad1160e52b8;hpb=ad3bcb39580173f0ac1b6357cb49515d48af7ddf;p=freeside.git diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index b83ad7166..f4f0b56dd 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -1,5 +1,7 @@ <& /elements/header.html, mt("Process [_1] payment",$type{$payby}) &> <& /elements/small_custview.html, $cust_main, '', '', popurl(2) . "view/cust_main.cgi" &> +
+
@@ -8,7 +10,7 @@ <& /elements/init_overlib.html &> -<% ntable('#cccccc') %> + <& /elements/tr-amount_fee.html, 'amount' => $amount, @@ -17,7 +19,11 @@ 'process-display' => scalar($conf->config('manual_process-display')), 'process-skip_first' => $conf->exists('manual_process-skip_first'), 'num_payments' => scalar($cust_main->cust_pay), - 'surcharge_percentage' => scalar($conf->config('credit-card-surcharge-percentage')), + 'surcharge_percentage' => + ( $payby eq 'CARD' + ? scalar($conf->config('credit-card-surcharge-percentage')) + : 0 + ), &> % if ( $conf->exists('part_pkg-term_discounts') ) { @@ -118,7 +124,7 @@ - + @@ -273,6 +279,8 @@ my @states = sort { $a cmp $b } keys %states; my $amount = ''; if ( $balance > 0 ) { + # when configured to do so, amount will only auto-fill with balance + # if balance represents a single invoice $amount = $balance unless $conf->exists('manual_process-single_invoice_amount') && ($cust_main->open_cust_bill != 1);
<% mt('Account number') |h %> <% mt('Type') |h %>
<% mt($routing_label) |h %>