projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e6f3d04
)
cleanup tax-pkg_location tax on tax fallout
author
jeff
<jeff>
Sun, 5 Apr 2009 23:18:57 +0000
(23:18 +0000)
committer
jeff
<jeff>
Sun, 5 Apr 2009 23:18:57 +0000
(23:18 +0000)
FS/FS/cust_main.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main.pm
b/FS/FS/cust_main.pm
index
cc39983
..
e696e1b
100644
(file)
--- 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 $tax_object = shift @{ $totlisthash{$tax} };
warn "found previously found taxed tax ". $tax_object->taxname. "\n"
if $DEBUG > 2;
- my $
list
ref_or_error =
+ my $
hash
ref_or_error =
$tax_object->taxline( $totlisthash{$tax},
'custnum' => $self->custnum,
'invoice_time' => $invoice_time
);
$tax_object->taxline( $totlisthash{$tax},
'custnum' => $self->custnum,
'invoice_time' => $invoice_time
);
- unless (ref($
list
ref_or_error)) {
+ unless (ref($
hash
ref_or_error)) {
$dbh->rollback if $oldAutoCommit;
$dbh->rollback if $oldAutoCommit;
- return $
list
ref_or_error;
+ return $
hash
ref_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;
" 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
}
#consolidate and create tax line items
@@
-2939,7
+2939,7
@@
sub _handle_taxes {
foreach my $tax ( @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;
# $taxname .= ' pkgnum'. $cust_pkg->pkgnum.
# ' locationnum'. $cust_pkg->locationnum
# if $conf->exists('tax-pkg_address') && $cust_pkg->locationnum;