diff options
author | ivan <ivan> | 2003-05-10 05:41:20 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-05-10 05:41:20 +0000 |
commit | aa8f46a06edce17b919486a62d9e208c1954355a (patch) | |
tree | b0109917909d0f4c8eb05b52f4666398a247fa38 | |
parent | 59b2ab6633c0fe401cfe3b74f5cd4e8883a6fc22 (diff) |
fix bug in last_bill method which prevented last_bill dates from being set
-rw-r--r-- | FS/FS/cust_pkg.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 4eea2c087..bd3d1f503 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -477,8 +477,8 @@ Useful for billing metered services. sub last_bill { my $self = shift; - if ( $self->dbdef_table->column('manual_flag') ) { - return $self->setfield('last_bill', $_[1]) if @_; + if ( $self->dbdef_table->column('last_bill') ) { + return $self->setfield('last_bill', $_[0]) if @_; return $self->getfield('last_bill') if $self->getfield('last_bill'); } my $cust_bill_pkg = qsearchs('cust_bill_pkg', { 'pkgnum' => $self->pkgnum, |