projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4a1903
)
handle missing customer records without erroring out
author
ivan
<ivan>
Sat, 1 May 2004 21:05:48 +0000
(21:05 +0000)
committer
ivan
<ivan>
Sat, 1 May 2004 21:05:48 +0000
(21:05 +0000)
httemplate/search/cust_bill.html
patch
|
blob
|
history
diff --git
a/httemplate/search/cust_bill.html
b/httemplate/search/cust_bill.html
index
27b1471
..
3a5db35
100755
(executable)
--- 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;
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;
},
sub { my $cust_main = shift->cust_main;
- $cust_main
->company
;
+ $cust_main
? $cust_main->company : ''
;
},
],
'links' => [
},
],
'links' => [