From: ivan Date: Thu, 5 Feb 2004 21:51:57 +0000 (+0000) Subject: check for the existance of the correct column X-Git-Tag: freeside_1_4_2beta1~266 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=dea7982a499f24fa992376833ff260b8a893b9c3;p=freeside.git check for the existance of the correct column --- diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 455a3805f..c147f0926 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -485,7 +485,7 @@ Useful for billing metered services. sub last_bill { my $self = shift; - if ( $self->dbdef_table->column('manual_flag') ) { + if ( $self->dbdef_table->column('last_bill') ) { return $self->setfield('last_bill', $_[1]) if @_; return $self->getfield('last_bill') if $self->getfield('last_bill'); }