X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_receivables.cgi;h=0e95ad73c079505a45ae650192b5beecfcbedd58;hp=f42269f65f577fcea73ea78ef73ccbc5186ffee1;hb=cec266740d89b82ce9075954928c5b336d0ec18e;hpb=8fd8fc66ed88d20b34bcbd267a77f70eaa354f48 diff --git a/httemplate/search/report_receivables.cgi b/httemplate/search/report_receivables.cgi index f42269f65..0e95ad73c 100755 --- a/httemplate/search/report_receivables.cgi +++ b/httemplate/search/report_receivables.cgi @@ -93,7 +93,7 @@ where 0 < ,0 ) -order by lower(company), lower(last) +order by coalesce(lower(company), ''), lower(last) END @@ -123,14 +123,14 @@ END if ( $row->{uncancelled_pkgs} ) { $status = 'Suspended'; $statuscol = 'FF9900'; - if ( $row->{active_pkgs} > $row->{uncancelled_pkgs} ) { + if ( $row->{active_pkgs} ) { $status = 'Active'; $statuscol = '00CC00'; } } %> - + <%= $row->{'custnum'} %>: <%= $row->{'company'} ? $row->{'company'}. ' (' : '' %><%= $row->{'last'}. ', '. $row->{'first'} %><%= $row->{'company'} ? ')' : '' %> <%= $status %>