turn debugging on until we catch the Cant call method "part_pkg" on an undefined...
authorivan <ivan>
Mon, 5 Feb 2007 22:12:45 +0000 (22:12 +0000)
committerivan <ivan>
Mon, 5 Feb 2007 22:12:45 +0000 (22:12 +0000)
FS/FS/cust_bill_ApplicationCommon.pm

index 195fa8d..467b581 100644 (file)
@@ -8,7 +8,7 @@ use FS::Record qw( qsearch qsearchs dbh );
 
 @ISA = qw( FS::Record );
 
-$DEBUG = 0;
+$DEBUG = 1;
 $me = '[FS::cust_bill_ApplicationCommon]';
 
 =head1 NAME
@@ -126,7 +126,7 @@ sub apply_to_lineitems {
 
   my @open = $self->cust_bill->open_cust_bill_pkg; #FOR UPDATE...?
   warn "$me ". scalar(@open). " open line items for invoice ".
-       $self->cust_bill->invnum. "\n"
+       $self->cust_bill->invnum. ": ". join(', ', @open). "\n"
     if $DEBUG;
   my $total = 0;
   $total += $_->setup + $_->recur foreach @open;