[freeside-commits] freeside/FS/FS/part_export sqlradius.pm, 1.17, 1.18

Ivan,,, ivan at wavetail.420.am
Sat Jul 9 03:36:45 PDT 2005


Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail:/tmp/cvs-serv14740/part_export

Modified Files:
	sqlradius.pm 
Log Message:
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

Index: sqlradius.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/sqlradius.pm,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- sqlradius.pm	25 Apr 2005 09:33:35 -0000	1.17
+++ sqlradius.pm	9 Jul 2005 10:36:43 -0000	1.18
@@ -529,7 +529,8 @@
         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;



More information about the freeside-commits mailing list