place tax on invoice only once
authorjeff <jeff>
Thu, 11 Dec 2008 21:11:20 +0000 (21:11 +0000)
committerjeff <jeff>
Thu, 11 Dec 2008 21:11:20 +0000 (21:11 +0000)
FS/FS/cust_main.pm

index f944175..c7bcf67 100644 (file)
@@ -2280,6 +2280,7 @@ sub bill {
     warn "adding $taxname\n" if $DEBUG > 1;
     foreach my $taxitem ( @{ $taxname{$taxname} } ) {
       $tax += $tax{$taxitem} unless $seen{$taxitem};
+      $seen{$taxitem} = 1;
       warn "adding $tax{$taxitem}\n" if $DEBUG > 1;
     }
     next unless $tax;