eliminate harmless
authorivan <ivan>
Wed, 10 Jun 2009 00:02:27 +0000 (00:02 +0000)
committerivan <ivan>
Wed, 10 Jun 2009 00:02:27 +0000 (00:02 +0000)
  Argument "" isn't numeric in numeric comparison (<=>) at /usr/local/share/perl/5.8.8/FS/cust_main.pm line 6759.

warning, sort batched payments on a column that actually exists

FS/FS/cust_main.pm

index 72b8450..124cbcc 100644 (file)
@@ -6756,7 +6756,7 @@ Returns all batched payments (see L<FS::cust_pay_void>) for this customer.
 
 sub cust_pay_batch {
   my $self = shift;
-  sort { $a->_date <=> $b->_date }
+  sort { $a->paybatchnum <=> $b->paybatchnum }
     qsearch( 'cust_pay_batch', { 'custnum' => $self->custnum } )
 }