diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-11-03 09:35:16 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-11-03 09:35:16 -0700 |
commit | f8eee0da9fb100baefa20fb8e4ef0e8a02c6382f (patch) | |
tree | a55462b3203cd10ea7b9763a942d4b6d158aa88d | |
parent | 63da5ded686cf29353617d4c51385da4906b749b (diff) |
more v4 taxes vs. fees, RT#78395
-rw-r--r-- | FS/FS/cust_bill_pkg.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm index a1762e471..e44a84709 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; |