- |
+ >
<% mt('Exp.') |h %> |
@@ -103,8 +70,7 @@
|
@@ -125,7 +91,7 @@
|
<& /elements/location.html,
- 'object' => $cust_main, #XXX errors???
+ 'object' => $cust_main->bill_location,
'no_asterisks' => 1,
'address1_label' => emt('Card billing address'),
&>
@@ -147,6 +113,8 @@
% $paystate = $cust_main->getfield('paystate');
% $stateid = $cust_main->getfield('stateid');
% $stateid_state = $cust_main->getfield('stateid_state');
+% } elsif ($disable_payauto_default) {
+% $auto = 0;
% }
%
% #false laziness w/{edit,view}/cust_main/billing.html
@@ -160,14 +128,14 @@
<% mt('Account number') |h %> |
- |
+ > |
<% mt('Type') |h %> |
|
<% mt($routing_label) |h %> |
-
+ >
(<% mt('help') |h %>)
|
@@ -175,7 +143,7 @@
<% mt('Branch number') |h %> |
-
+ >
|
% }
@@ -244,11 +212,13 @@
+% 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;
@@ -256,7 +226,7 @@
-
+
<% mt('Add to current batch') |h %>
|
@@ -266,11 +236,52 @@
- payby ne 'DCRD' ) || ( $payby eq 'CHEK' && $cust_main->payby eq 'CHEK' ) ) ? ' CHECKED' : '' %> NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; }">
+ NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; }">
<% mt("Charge future payments to this [_1] automatically",$type{$payby}) |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
+
+
+% }
+
+% if ($auto && $disable_payauto_default) {
+
+% }
+