don't use payname for CARD or DCRD either, closes: RT#3982
authorivan <ivan>
Thu, 20 Nov 2008 00:42:09 +0000 (00:42 +0000)
committerivan <ivan>
Thu, 20 Nov 2008 00:42:09 +0000 (00:42 +0000)
FS/FS/cust_bill.pm

index df0e32b..c36023d 100644 (file)
@@ -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'     => [ '<%=', '%>' ],