diff options
author | jeff <jeff> | 2008-08-06 06:39:22 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-08-06 06:39:22 +0000 |
commit | 76a3cde225266fb8646f8cd9281fae1658933bc9 (patch) | |
tree | 19c873ab7a6f6d9251b6524b5841baaef520361d | |
parent | c1e4b5a725a27b26a9e4211923959c469955276f (diff) |
prevent adding 0 value line items
-rw-r--r-- | FS/FS/part_pkg/voip_cdr.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm index a7c1903e6..14f812fc1 100644 --- a/FS/FS/part_pkg/voip_cdr.pm +++ b/FS/FS/part_pkg/voip_cdr.pm @@ -470,6 +470,9 @@ sub append_cust_bill_pkgs { 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, |