diff options
author | ivan <ivan> | 2004-02-05 21:51:57 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-02-05 21:51:57 +0000 |
commit | dea7982a499f24fa992376833ff260b8a893b9c3 (patch) | |
tree | 0d9cc165c2bd72679c87c06e10d6b38a627719bb | |
parent | 5791355092d74aecbcbef7c3064c5bb4072f9a34 (diff) |
check for the existance of the correct column
-rw-r--r-- | FS/FS/cust_pkg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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'); } |