X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_bill.html;h=3a5db35490546a92905b152893d465d2ba1a3e8f;hp=27b1471083fa09ddee3631ecf620f45f1f1e58d9;hb=bfb3a80bc91a835513e437b242de366f190e9021;hpb=c4a190357a986db767924b7d6b6aae6039a4630e diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index 27b147108..3a5db3549 100755 --- a/httemplate/search/cust_bill.html +++ b/httemplate/search/cust_bill.html @@ -71,10 +71,14 @@ sub { sprintf('$%.2f', shift->charged ) }, sub { time2str('%b %d %Y', shift->_date ) }, sub { my $cust_main = shift->cust_main; - $cust_main->get('last'). ', '. $cust_main->first; + $cust_main + ? $cust_main->get('last'). ', '. $cust_main->first + : 'WARNING: can't find cust_main.custnum '. + shift->custnum. ' (cust_bill.invnum '. + shift->invnum. ')'; }, sub { my $cust_main = shift->cust_main; - $cust_main->company; + $cust_main ? $cust_main->company : ''; }, ], 'links' => [