summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeff <jeff>2008-12-11 21:11:20 +0000
committerjeff <jeff>2008-12-11 21:11:20 +0000
commit15a20c32c0314b189e6b7fd048e775e75cc7d384 (patch)
treebce10ca5f3fefed3a45ac77c97ac3981000a523e
parent5836672804f6285e914061b18bcb8d18139e4783 (diff)
place tax on invoice only once
-rw-r--r--FS/FS/cust_main.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index f944175d7..c7bcf673a 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -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;