diff options
-rw-r--r-- | FS/FS/part_pkg/flat.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm index 7a78d0ba4..3ac44c4e2 100644 --- a/FS/FS/part_pkg/flat.pm +++ b/FS/FS/part_pkg/flat.pm @@ -161,7 +161,10 @@ sub calc_remain { } my $next_bill = $cust_pkg->getfield('bill') || 0; - my $last_bill = $cust_pkg->last_bill || 0; + + #my $last_bill = $cust_pkg->last_bill || 0; + my $last_bill = $cust_pkg->get('last_bill') || 0; #->last_bill falls back to setup + return 0 if ! $self->base_recur || ! $self->option('unused_credit', 1) || ! $last_bill |