[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm,1.20,1.21
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Aug 5 23:39:25 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv31383
Modified Files:
voip_cdr.pm
Log Message:
prevent adding 0 value line items
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- voip_cdr.pm 2 Aug 2008 04:20:17 -0000 1.20
+++ voip_cdr.pm 6 Aug 2008 06:39:22 -0000 1.21
@@ -470,6 +470,9 @@
my @details = ();
my $charges = $self->calc_usage($cust_pkg, $sdate, \@details, $param);
+ return []
+ unless $charges; # unless @details?
+
my $cust_bill_pkg = new FS::cust_bill_pkg {
'pkgnum' => $cust_pkg->pkgnum,
'setup' => 0,
More information about the freeside-commits
mailing list