summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-11-20 00:42:09 +0000
committerivan <ivan>2008-11-20 00:42:09 +0000
commit3c652480dea69c3191b968fe0c4101d6fd6aab45 (patch)
tree57310374ecc1aea99c82aad3329132d356944a9b
parentf32fab28c5cea2b5619c9b1d5cc6e3fe7beef126 (diff)
don't use payname for CARD or DCRD either, closes: RT#3982
-rw-r--r--FS/FS/cust_bill.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index df0e32b9b..c36023de0 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -1689,8 +1689,8 @@ sub print_generic {
my $cust_main = $self->cust_main;
$cust_main->payname( $cust_main->first. ' '. $cust_main->getfield('last') )
- unless $cust_main->payname && $cust_main->payby !~ /^(CHEK|DCHK)$/;
-
+ unless $cust_main->payname
+ && $cust_main->payby !~ /^(CARD|DCRD|CHEK|DCHK)$/;
my %delimiters = ( 'latex' => [ '[@--', '--@]' ],
'html' => [ '<%=', '%>' ],