[freeside-commits] freeside/FS/FS cust_bill_pkg.pm, 1.42.2.3, 1.42.2.4

Jeff Finucane,420,, jeff at wavetail.420.am
Tue May 18 21:05:47 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv22370

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	cust_bill_pkg.pm 
Log Message:
avoid spurious bash default usage category charges

Index: cust_bill_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill_pkg.pm,v
retrieving revision 1.42.2.3
retrieving revision 1.42.2.4
diff -u -w -d -r1.42.2.3 -r1.42.2.4
--- cust_bill_pkg.pm	20 Nov 2009 17:39:40 -0000	1.42.2.3
+++ cust_bill_pkg.pm	19 May 2010 04:05:45 -0000	1.42.2.4
@@ -655,7 +655,10 @@
       $cust_bill_pkg{''}->recur( $classless );
       $cust_bill_pkg{$class} = $cust_bill_pkg_usage;
     }
-    delete $cust_bill_pkg{''} unless $cust_bill_pkg{''}->recur;
+    warn "Unexpected classless usage value: ". $cust_bill_pkg{''}->recur
+      if ($cust_bill_pkg{''}->recur && $cust_bill_pkg{''}->recur < 0);
+    delete $cust_bill_pkg{''}
+      unless ($cust_bill_pkg{''}->recur && $cust_bill_pkg{''}->recur > 0);
   }
 
 #  # sort setup,recur,'', and the rest numeric && return



More information about the freeside-commits mailing list