X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;h=4fa3df773b4d9e72d22f095aa851d332d3c1860a;hb=e3414e8ef2f07df0412b5cd645213b34393078ec;hp=2f76b85f143e04ce5ac0b2e5002658033fc73c28;hpb=fbba36b298b90d72884e8a46b74e9fd7b67b4d34;p=freeside.git
diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi
index 2f76b85f1..4fa3df773 100644
--- a/httemplate/misc/payment.cgi
+++ b/httemplate/misc/payment.cgi
@@ -19,7 +19,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
),
&>
@@ -40,6 +40,8 @@
% $paycvv = $cust_main->paycvv;
% ( $month, $year ) = $cust_main->paydate_monthyear;
% $payname = $cust_main->payname if $cust_main->payname;
+% } elsif ($disable_payauto_default) {
+% $auto = 0;
% }
@@ -48,7 +50,7 @@
- |
+ >
<% mt('Exp.') |h %> |
|
@@ -299,6 +315,10 @@ my $payinfo = '';
my $conf = new FS::Conf;
+my $auto = ( ( $payby eq 'CARD' && $cust_main->payby ne 'DCRD' ) || ( $payby eq 'CHEK' && $cust_main->payby eq 'CHEK' ) ) ? 1 : 0;
+my $disable_payauto_default = $conf->exists('disable_payauto_default');
+my $possibly_uncheck_auto = ' ONCHANGE="possibly_uncheck_auto()"';
+
#false laziness w/selfservice make_payment.html shortcut for one-country
my %states = map { $_->state => 1 }
qsearch('cust_main_county', {