summaryrefslogtreecommitdiff
path: root/FS/FS/svc_acct.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2019-05-20 12:54:00 -0700
committerIvan Kohler <ivan@freeside.biz>2019-05-20 12:54:00 -0700
commitbb1ab034ef4ef12f0a2c6486d0b98106ee41ab8b (patch)
tree380e7484502052672500c90a998567f8760a8631 /FS/FS/svc_acct.pm
parentbe2ffcf2041beb5890872d2b64940da14fef2f41 (diff)
restore our time-tracking hack, RT#83379, RT#81529
Diffstat (limited to 'FS/FS/svc_acct.pm')
-rw-r--r--FS/FS/svc_acct.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm
index 053f1e0..a04789b 100644
--- a/FS/FS/svc_acct.pm
+++ b/FS/FS/svc_acct.pm
@@ -2008,7 +2008,10 @@ sub _op_usage {
die "Can't update $column for svcnum". $self->svcnum
if $rv == 0;
- if ( $conf->exists('radius-chillispot-max') ) {
+ if ( $conf->exists('radius-chillispot-max')
+ || scalar($conf->config('support_packages'))
+ )
+ {
#$self->snapshot; #not necessary, we retain the old values
#create an object with the updated usage values
my $new = qsearchs('svc_acct', { 'svcnum' => $self->svcnum });