X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;fp=httemplate%2Fmisc%2Fpayment.cgi;h=f30e4098e8744f9350bbefb973e1916348111dbc;hp=02648a821df98a1e191ebe9df786580644177e2b;hb=05dee44cdb4e93df6963ae396f916705c4086f86;hpb=82947aebf5bd25d69cf3da8b658b22df76629c9b diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 02648a821..f30e4098e 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 + + +% } +