diff options
Diffstat (limited to 'FS/FS/part_pkg/voip_cdr.pm')
-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 a7c1903..14f812f 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, |