diff options
author | ivan <ivan> | 2005-07-09 10:36:43 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-07-09 10:36:43 +0000 |
commit | c160bc6f05b17d8084addc4d638ebc908c9ec0e6 (patch) | |
tree | fe2093b6abddb221e892b76f1095f25742d61e26 /FS/FS/part_export | |
parent | ff0258d05484670831222da23427606f719cc009 (diff) |
add desc method to cust_bill_pkg and use it in cust_bill... this should help with any *other* cust_bill_pkg.pkgnum == -1 stuff that needs to be sorted out
Diffstat (limited to 'FS/FS/part_export')
-rw-r--r-- | FS/FS/part_export/sqlradius.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/part_export/sqlradius.pm b/FS/FS/part_export/sqlradius.pm index 03802b2a7..772da1255 100644 --- a/FS/FS/part_export/sqlradius.pm +++ b/FS/FS/part_export/sqlradius.pm @@ -529,7 +529,8 @@ sub update_svc_acct { warn " svc_acct.seconds found (". $svc_acct->seconds. ") - decrementing\n" if $DEBUG; - $svc_acct->decrement_seconds($AcctSessionTime); + my $error = $svc_acct->decrement_seconds($AcctSessionTime); + die $error if $error; $status = 'done'; } else { warn " no existing seconds value for svc_acct - skiping\n" if $DEBUG; |