X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;h=24248eb273f2fdb49a675114e5482f58abba6983;hb=36246368fb9b34b03c05572d212e2f48abbb63f2;hp=7afdfd1598d56c79e068ae9c5485fc575635d9b6;hpb=768ab093771b3305a67c9d929b461ef777ecdad8;p=freeside.git diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 7afdfd159..24248eb27 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -21,7 +21,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 ), &> @@ -33,23 +33,108 @@ &> % } +% 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 { + +
<% mt('Card number') |h %> | @@ -104,22 +189,6 @@ % my( $account, $aba, $branch, $payname, $ss, $paytype, $paystate, % $stateid, $stateid_state ) % = ( '', '', '', '', '', '', '', '', '' ); -% my ($cust_payby) = $cust_main->cust_payby('CHEK','DCHK'); -% if ($cust_payby) { -% $cust_payby->paymask =~ /^([\dx]+)\@([\d\.x]*)$/i -% or die "unparsable paymask ". $cust_payby->paymask; -% ($account, $aba) = ($1, $2); -% ($branch,$aba) = split('\.',$aba) -% if $conf->config('echeck-country') eq 'CA'; -% $payname = $cust_payby->payname; -% $paytype = $cust_payby->getfield('paytype'); -% $paystate = $cust_payby->getfield('paystate'); -% $auto = 1 if $cust_payby->payby eq 'CHEK'; -% # these values aren't in cust_payby, but maybe should be... -% $ss = $cust_main->ss; -% $stateid = $cust_main->getfield('stateid'); -% $stateid_state = $cust_main->getfield('stateid_state'); -% } % % #false laziness w/{edit,view}/cust_main/billing.html % my $routing_label = $conf->config('echeck-country') eq 'US' @@ -210,46 +279,50 @@|||||||||
---|---|---|---|---|---|---|---|---|---|
+ | <% mt('Remember this information') |h %> | ||||||||
- - <% mt('Add to current batch') |h %> - | -|||||||||
+ | NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; }"> <% mt("Charge future payments to this [_1] automatically",$type{$payby}) |h %> +% if ( @cust_payby ) { + <% mt('as') |h %> + +% } else { + +% } |