restore our time-tracking hack, RT#83379, RT#81529
[freeside.git] / FS / FS / svc_acct.pm
index 32190b1..a04789b 100644 (file)
@@ -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 });
@@ -2294,7 +2297,7 @@ sub is_rechargable {
 =item seconds_since TIMESTAMP
 
 Returns the number of seconds this account has been online since TIMESTAMP,
-according to the session monitor (see L<FS::Session>).
+according to the session monitor (see L<FS::session>).
 
 TIMESTAMP is specified as a UNIX timestamp; see L<perlfunc/"time">.  Also see
 L<Time::Local> and L<Date::Parse> for conversion functions.