freeside/httemplate/search cust_bill.html,1.4,1.5
ivan
ivan at pouncequick.420.am
Sat May 1 14:05:51 PDT 2004
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory pouncequick:/tmp/cvs-serv31365
Modified Files:
cust_bill.html
Log Message:
handle missing customer records without erroring out
Index: cust_bill.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_bill.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cust_bill.html 23 Apr 2004 12:19:40 -0000 1.4
+++ cust_bill.html 1 May 2004 21:05:48 -0000 1.5
@@ -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' => [
More information about the freeside-commits
mailing list