projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
dac9051
)
restore our time-tracking hack, RT#83379, RT#81529
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 20 May 2019 19:53:57 +0000
(12:53 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 20 May 2019 19:53:57 +0000
(12:53 -0700)
FS/FS/svc_acct.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_acct.pm
b/FS/FS/svc_acct.pm
index
053f1e0
..
a04789b
100644
(file)
--- 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;
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 });
#$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 });