projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af7fa01
)
correct bad tax calculation
author
jeff
<jeff>
Tue, 23 Dec 2008 20:35:36 +0000
(20:35 +0000)
committer
jeff
<jeff>
Tue, 23 Dec 2008 20:35:36 +0000
(20:35 +0000)
FS/FS/cust_main.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main.pm
b/FS/FS/cust_main.pm
index
c7bcf67
..
77f9e40
100644
(file)
--- a/
FS/FS/cust_main.pm
+++ b/
FS/FS/cust_main.pm
@@
-2220,11
+2220,11
@@
sub bill {
warn "adding ". $listref_or_error->[1].
" as ". $listref_or_error->[0]. "\n"
if $DEBUG > 2;
warn "adding ". $listref_or_error->[1].
" as ". $listref_or_error->[0]. "\n"
if $DEBUG > 2;
- $tax{ $tax
_object->taxname
} += $listref_or_error->[1];
+ $tax{ $tax } += $listref_or_error->[1];
if ( $taxname{ $listref_or_error->[0] } ) {
if ( $taxname{ $listref_or_error->[0] } ) {
- push @{ $taxname{ $listref_or_error->[0] } }, $tax
_object->taxname
;
+ push @{ $taxname{ $listref_or_error->[0] } }, $tax;
}else{
}else{
- $taxname{ $listref_or_error->[0] } = [ $tax
_object->taxname
];
+ $taxname{ $listref_or_error->[0] } = [ $tax ];
}
}
}
}
@@
-2248,9
+2248,9
@@
sub bill {
# existing taxes
warn "adding $totname to taxed taxes\n" if $DEBUG > 2;
if ( exists( $totlisthash{ $totname } ) ) {
# existing taxes
warn "adding $totname to taxed taxes\n" if $DEBUG > 2;
if ( exists( $totlisthash{ $totname } ) ) {
- push @{ $totlisthash{ $totname } }, $tax{ $tax
_object->taxname
};
+ push @{ $totlisthash{ $totname } }, $tax{ $tax };
}else{
}else{
- $totlisthash{ $totname } = [ $tot, $tax{ $tax
_object->taxname
} ];
+ $totlisthash{ $totname } = [ $tot, $tax{ $tax } ];
}
}
}
}
}
}
@@
-2269,7
+2269,7
@@
sub bill {
warn "adding taxed tax amount ". $listref_or_error->[1].
" as ". $tax_object->taxname. "\n"
if $DEBUG;
warn "adding taxed tax amount ". $listref_or_error->[1].
" as ". $tax_object->taxname. "\n"
if $DEBUG;
- $tax{ $tax
_object->taxname
} += $listref_or_error->[1];
+ $tax{ $tax } += $listref_or_error->[1];
}
#consolidate and create tax line items
}
#consolidate and create tax line items