summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeff <jeff>2009-04-05 23:18:57 +0000
committerjeff <jeff>2009-04-05 23:18:57 +0000
commit4d9f43b90460175581aaa976e9b9937f20ccc434 (patch)
tree52b30a656454fffbb4888ba5faebb31043f94db9
parente6f3d047e87488badad86b71508b1f4d07c981f9 (diff)
cleanup tax-pkg_location tax on tax fallout
-rw-r--r--FS/FS/cust_main.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index cc399838e..e696e1bc9 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -2533,20 +2533,20 @@ sub bill {
my $tax_object = shift @{ $totlisthash{$tax} };
warn "found previously found taxed tax ". $tax_object->taxname. "\n"
if $DEBUG > 2;
- my $listref_or_error =
+ my $hashref_or_error =
$tax_object->taxline( $totlisthash{$tax},
'custnum' => $self->custnum,
'invoice_time' => $invoice_time
);
- unless (ref($listref_or_error)) {
+ unless (ref($hashref_or_error)) {
$dbh->rollback if $oldAutoCommit;
- return $listref_or_error;
+ return $hashref_or_error;
}
- warn "adding taxed tax amount ". $listref_or_error->[1].
+ warn "adding taxed tax amount ". $hashref_or_error->{'amount'}.
" as ". $tax_object->taxname. "\n"
if $DEBUG;
- $tax{ $tax } += $listref_or_error->[1];
+ $tax{ $tax } += $hashref_or_error->{'amount'};
}
#consolidate and create tax line items
@@ -2939,7 +2939,7 @@ sub _handle_taxes {
foreach my $tax ( @taxes ) {
- my $taxname = ref( $tax ). ' taxnum'. $tax->taxnum;
+ my $taxname = ref( $tax ). ' '. $tax->taxnum;
# $taxname .= ' pkgnum'. $cust_pkg->pkgnum.
# ' locationnum'. $cust_pkg->locationnum
# if $conf->exists('tax-pkg_address') && $cust_pkg->locationnum;