[freeside-commits] branch FREESIDE_4_BRANCH updated. 2c7711326acffa72e99876b2e86962c6e285545a
Ivan
ivan at 420.am
Fri Nov 3 09:35:19 PDT 2017
The branch, FREESIDE_4_BRANCH has been updated
via 2c7711326acffa72e99876b2e86962c6e285545a (commit)
from 699c92dc9a4327c38e2ebb67f54fb2bcda25d94c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2c7711326acffa72e99876b2e86962c6e285545a
Author: Ivan Kohler <ivan at freeside.biz>
Date: Fri Nov 3 09:35:18 2017 -0700
more v4 taxes vs. fees, RT#78395
diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm
index a1762e4..e44a847 100644
--- a/FS/FS/cust_bill_pkg.pm
+++ b/FS/FS/cust_bill_pkg.pm
@@ -1189,9 +1189,12 @@ sub tax_location {
if ( $self->pkgnum ) { # normal sales
return $self->cust_pkg->tax_location;
} elsif ( $self->feepart ) { # fees
- my $custnum = $self->fee_origin->custnum;
- if ( $custnum ) {
- return FS::cust_main->by_key($custnum)->ship_location;
+ my $fee_origin = $self->fee_origin;
+ if ( $fee_origin ) {
+ my $custnum = $fee_origin->custnum;
+ if ( $custnum ) {
+ return FS::cust_main->by_key($custnum)->ship_location;
+ }
}
} else { # taxes
return;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_bill_pkg.pm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
More information about the freeside-commits
mailing list