X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_bill.html;h=f65b082604ddd4b53494fa58dac7820a97573586;hp=874c770353e3f74f77532327ae03b09995925b6f;hb=6e0b2d0a94827df55364a45fe1d1ba8928c5d659;hpb=79803ed2813d72e572feac02576bc591c835f049;ds=inline diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index 874c77035..f65b08260 100755 --- a/httemplate/search/cust_bill.html +++ b/httemplate/search/cust_bill.html @@ -70,12 +70,13 @@ sub { sprintf('$%.2f', shift->get('owed') ) }, sub { sprintf('$%.2f', shift->charged ) }, sub { time2str('%b %d %Y', shift->_date ) }, - sub { my $cust_main = shift->cust_main; + sub { my $cust_bill = shift; + my $cust_main = $cust_bill->cust_main; $cust_main ? $cust_main->get('last'). ', '. $cust_main->first : "WARNING: can't find cust_main.custnum ". - shift->custnum. ' (cust_bill.invnum '. - shift->invnum. ')'; + $cust_bill->custnum. ' (cust_bill.invnum '. + $cust_bill->invnum. ')'; }, sub { my $cust_main = shift->cust_main; $cust_main ? $cust_main->company : '';