summaryrefslogtreecommitdiff
path: root/httemplate/misc/payment.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/payment.cgi')
-rw-r--r--httemplate/misc/payment.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi
index bf89a3d..699b317 100644
--- a/httemplate/misc/payment.cgi
+++ b/httemplate/misc/payment.cgi
@@ -197,7 +197,7 @@ function achclose() {
</TD>
</TR><TR>
<TD COLSPAN=2>
- <INPUT TYPE="checkbox"<%= $payby eq 'CARD' ? ' CHECKED' : '' %> NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; }">
+ <INPUT TYPE="checkbox"<%= ( ( $payby eq 'CARD' && $cust_main->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; }">
Charge future payments to this <%= $type{$payby} %> automatically
</TD>
</TR>