summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorjeff <jeff>2010-05-19 04:06:07 +0000
committerjeff <jeff>2010-05-19 04:06:07 +0000
commit1a7887345cd2dec240533a9323eaf8d858d5fecb (patch)
tree756835256632295884bb5ae7440f1d6fde32b1a9 /FS
parentab9be1d2bfedf205eab7a9d399ef22ee14117f53 (diff)
avoid spurious bash default usage category charges
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_bill_pkg.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm
index cb070d7..c825c15 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