i should REALLY go to sleep
[freeside.git] / httemplate / search / report_receivables.cgi
index c3dc990..061febc 100755 (executable)
@@ -117,7 +117,7 @@ END
     my $row = shift;
 
     my $status = 'unknown';
-    if ( $self->num_pkgs == 0 ) {
+    if ( $row->num_pkgs == 0 ) {
       $status = 'prospect';
     } elsif ( $row->active_pkgs    > 0 ) {
       $status = 'active';