X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;h=a3db58f723f993289f28b417f23947614a9e062c;hb=6cca67f8c829f96a51684060f432b105c831af0a;hp=02648a821df98a1e191ebe9df786580644177e2b;hpb=5d089cbe4980f7c9c25b83e164099b22bc59eead;p=freeside.git diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 02648a821..a3db58f72 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -33,6 +33,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 { + + +    <% mt('Add to current batch') |h %> + + + + + +% } +% } + +% unless ($disallow_no_auto_apply) { +% # false laziness with edit/cust_pay.cgi + + + <% mt('Auto-apply to invoices') |h %> + + + + + +% # this can go away if no_auto_apply handling gets added to batch payment processing + + +% } +