[freeside-users] Can't call method "invnum_date_pretty"

Ivan Kohler ivan at freeside.biz
Wed Apr 14 16:39:57 PDT 2010


bad invnum in cust_bill_pay?  presumably caused by manual DB manipulation. 

if you can cause the code to leave things in this state details would be 
appreciated.

next time post your freeside  version number and database backend.

-- 
_ivan


On Wed, Apr 07, 2010 at 04:26:51PM -0400, Timothy Butkiewicz wrote:
> 
> Getting the following error. Far as I can tell it has to do with a date
> in a field or a missing reference, but in reviewing the database we
> can't locate the record causing the problem. Any leads?
> 
> error:   	Can't call method "invnum_date_pretty" on an undefined
> value at
> /usr/lib/perl5/site_perl/5.8.8/FS/cust_bill_ApplicationCommon.pm line
> 384.
> context:  	
> ...  	
> 380:  	=cut
> 381:  	
> 382:  	sub applied_to_invoice {
> 383:  	my $self = shift;
> 384:  	'applied to '. $self->cust_bill->invnum_date_pretty;
> 385:  	}
> 386:  	
> 387:  	=item lineitem_breakdown_table
> 388:  	
> ...  	
> code stack:
> /usr/lib/perl5/site_perl/5.8.8/FS/cust_bill_ApplicationCommon.pm:384
> /var/www/html/freeside/view/cust_main/payment_history/payment.html:90
> /usr/lib/perl5/site_perl/5.8.8/FS/Mason.pm:331
> /var/www/html/freeside/view/cust_main/payment_history.html:407
> /usr/lib/perl5/site_perl/5.8.8/FS/Mason.pm:331
> /var/www/html/freeside/view/cust_main.cgi:208
> /var/www/html/freeside/autohandler:1
> _______________________________________________
> freeside-users mailing list
> freeside-users at freeside.biz
> http://420.am/cgi-bin/mailman/listinfo/freeside-users



More information about the freeside-users mailing list