projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7619d75
)
noise reduction
author
jeff
<jeff>
Wed, 30 Dec 2009 05:22:42 +0000
(
05:22
+0000)
committer
jeff
<jeff>
Wed, 30 Dec 2009 05:22:42 +0000
(
05:22
+0000)
FS/FS/tax_rate.pm
patch
|
blob
|
history
diff --git
a/FS/FS/tax_rate.pm
b/FS/FS/tax_rate.pm
index
93550b1
..
101802b
100644
(file)
--- a/
FS/FS/tax_rate.pm
+++ b/
FS/FS/tax_rate.pm
@@
-407,13
+407,14
@@
sub taxline {
};
}
};
}
- if ($self->maxtype != 0 && $self->maxtype != 9) {
+ my $maxtype = $self->maxtype || 0;
+ if ($maxtype != 0 && $maxtype != 9) {
return $self->_fatal_or_null( 'tax with "'.
$self->maxtype_name. '" threshold'
);
}
return $self->_fatal_or_null( 'tax with "'.
$self->maxtype_name. '" threshold'
);
}
- if ($
self->
maxtype == 9) {
+ if ($maxtype == 9) {
return
$self->_fatal_or_null( 'tax with "'. $self->maxtype_name. '" threshold' );
# "texas" tax
return
$self->_fatal_or_null( 'tax with "'. $self->maxtype_name. '" threshold' );
# "texas" tax
@@
-439,7
+440,7
@@
sub taxline {
my $taxable_units = 0;
unless ($self->recurtax =~ /^Y$/i) {
my $taxable_units = 0;
unless ($self->recurtax =~ /^Y$/i) {
- if (
$self->unittype
== 0) {
+ if (
( $self->unittype || 0 )
== 0) {
my %seen = ();
foreach (@cust_bill_pkg) {
$taxable_units += $_->units
my %seen = ();
foreach (@cust_bill_pkg) {
$taxable_units += $_->units