summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-cust_bill_pkg-calculate_taxes.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-02-25 23:13:32 -0800
committerMark Wells <mark@freeside.biz>2014-02-25 23:33:56 -0800
commite8fb3448ac1b9dae5410f88cf70eb36cd822c247 (patch)
treef8ace47a98d8093c5a37d2d059927346f57ce772 /httemplate/misc/xmlhttp-cust_bill_pkg-calculate_taxes.html
parentb6c0ce19ea154eeec1f992a528c5c7e3ef877e81 (diff)
non-package fees, #25899
Diffstat (limited to 'httemplate/misc/xmlhttp-cust_bill_pkg-calculate_taxes.html')
-rw-r--r--httemplate/misc/xmlhttp-cust_bill_pkg-calculate_taxes.html15
1 files changed, 5 insertions, 10 deletions
diff --git a/httemplate/misc/xmlhttp-cust_bill_pkg-calculate_taxes.html b/httemplate/misc/xmlhttp-cust_bill_pkg-calculate_taxes.html
index c0db3e2c4..4558682bd 100644
--- a/httemplate/misc/xmlhttp-cust_bill_pkg-calculate_taxes.html
+++ b/httemplate/misc/xmlhttp-cust_bill_pkg-calculate_taxes.html
@@ -62,15 +62,7 @@ if ( $sub eq 'calculate_taxes' ) {
push @cust_bill_pkg, $cust_bill_pkg;
- my $part_pkg = $cust_bill_pkg->part_pkg;
- $cust_main->_handle_taxes( $part_pkg,
- $taxlisthash,
- $cust_bill_pkg,
- $cust_bill_pkg->cust_pkg,
- $cust_bill_pkg->cust_bill->_date,
- $cust_bill_pkg->cust_pkg->pkgpart,
- );
-
+ $cust_main->_handle_taxes( $taxlisthash, $cust_bill_pkg );
}
if ( @cust_bill_pkg ) {
@@ -89,7 +81,10 @@ if ( $sub eq 'calculate_taxes' ) {
foreach my $taxline ( @$listref_or_error ) {
my $amount = $taxline->setup;
my $desc = $taxline->desc;
- foreach my $location ( @{$taxline->cust_bill_pkg_tax_location}, @{$taxline->cust_bill_pkg_tax_rate_location} ) {
+ foreach my $location (
+ @{$taxline->get('cust_bill_pkg_tax_location')},
+ @{$taxline->get('cust_bill_pkg_tax_rate_location')} )
+ {
my $taxlocnum = $location->locationnum || '';
my $taxratelocnum = $location->taxratelocationnum || '';
$location->cust_bill_pkg_desc($taxline->desc); #ugh @ that kludge