REAL otherwise there are no taxes
authorjeff <jeff>
Mon, 3 Nov 2008 15:28:13 +0000 (15:28 +0000)
committerjeff <jeff>
Mon, 3 Nov 2008 15:28:13 +0000 (15:28 +0000)
FS/FS/cust_main.pm

index 3e767d9..d5b45b0 100644 (file)
@@ -2652,7 +2652,7 @@ sub _handle_taxes {
 
   my %tax_cust_bill_pkg = $cust_bill_pkg->disintegrate;
   foreach my $key (keys %tax_cust_bill_pkg) {
-    my @taxes = @{ $taxes{$key} };
+    my @taxes = @{ $taxes{$key} || [] };
     my $tax_cust_bill_pkg = $tax_cust_bill_pkg{$key};
 
     foreach my $tax ( @taxes ) {