X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;h=5bfa29d70a4d2c8b3159838409b8d6c994e24a59;hb=814e5db9cd3953afad6ee1901574180fa0890062;hp=f30e4098e8744f9350bbefb973e1916348111dbc;hpb=05dee44cdb4e93df6963ae396f916705c4086f86;p=freeside.git diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index f30e4098e..5bfa29d70 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,7 @@ '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 ), &> @@ -60,7 +61,7 @@ -
<% mt('Auto-apply to invoices') |h %> + -<& /elements/footer.html &> +<& /elements/footer-cust_main.html &> <%once> my %weight = ( @@ -356,15 +357,6 @@ my %states = map { $_->state => 1 } } ); 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); -} - my $payunique = "webui-payment-". time. "-$$-". rand() * 2**32;