diff options
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/cust_bill_pkg.pm | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm index cb070d77a..c825c1567 100644 --- a/FS/FS/cust_bill_pkg.pm +++ b/FS/FS/cust_bill_pkg.pm @@ -677,7 +677,10 @@ sub disintegrate {        $cust_bill_pkg{''}->recur( $classless );        $cust_bill_pkg{$class} = $cust_bill_pkg_usage;      } -    delete $cust_bill_pkg{''} unless $cust_bill_pkg{''}->recur; +    warn "Unexpected classless usage value: ". $cust_bill_pkg{''}->recur +      if ($cust_bill_pkg{''}->recur && $cust_bill_pkg{''}->recur < 0); +    delete $cust_bill_pkg{''} +      unless ($cust_bill_pkg{''}->recur && $cust_bill_pkg{''}->recur > 0);    }  #  # sort setup,recur,'', and the rest numeric && return | 
