summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeff <jeff>2010-05-19 04:05:45 +0000
committerjeff <jeff>2010-05-19 04:05:45 +0000
commitb7a86943a8af02f06ffb6ae9f05fb12bbb8afe85 (patch)
treeb45be789a4ff7f7349e7fac694230bb5b0612174
parenta99bcc2ee2b559f66a3d827045c0b8c7535b1c96 (diff)
avoid spurious bash default usage category charges
-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 538d79260..80077aa8b 100644
--- a/FS/FS/cust_bill_pkg.pm
+++ b/FS/FS/cust_bill_pkg.pm
@@ -655,7 +655,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