summaryrefslogtreecommitdiff
path: root/FS/FS/tax_rate.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-05-08 14:23:27 -0700
committerIvan Kohler <ivan@freeside.biz>2013-05-08 14:23:27 -0700
commit51a7e60b5c7dc157bd2bbe701201d3808aa36f58 (patch)
tree24015679121aeb8fde3a3414ee2cbe52bbbcdb1a /FS/FS/tax_rate.pm
parent2c323723445c1301057078c3f312b15d00734a66 (diff)
handle CCH maxtype = 1 taxes, RT#19150
Diffstat (limited to 'FS/FS/tax_rate.pm')
-rw-r--r--FS/FS/tax_rate.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/tax_rate.pm b/FS/FS/tax_rate.pm
index 2653833..342c7cb 100644
--- a/FS/FS/tax_rate.pm
+++ b/FS/FS/tax_rate.pm
@@ -413,7 +413,7 @@ sub taxline {
}
my $maxtype = $self->maxtype || 0;
- if ($maxtype != 0 && $maxtype != 9) {
+ if ($maxtype != 0 && $maxtype != 1 && $maxtype != 9) {
return $self->_fatal_or_null( 'tax with "'.
$self->maxtype_name. '" threshold'
);
@@ -476,12 +476,12 @@ sub taxline {
}
- #
- # XXX insert exemption handling here
+ # XXX handle excessrate (use_excessrate) / excessfee /
+ # taxbase/feebase / taxmax/feemax
+ # and eventually exemptions
#
# the tax or fee is applied to taxbase or feebase and then
# the excessrate or excess fee is applied to taxmax or feemax
- #
$amount += $taxable_charged * $self->tax;
$amount += $taxable_units * $self->fee;