[freeside-commits] branch FREESIDE_4_BRANCH updated. 545ca1f2611ae0d836ab53947aedafbbd559fce3

Ivan ivan at 420.am
Fri Sep 22 18:17:51 PDT 2017


The branch, FREESIDE_4_BRANCH has been updated
       via  545ca1f2611ae0d836ab53947aedafbbd559fce3 (commit)
      from  33a8d01e61dacf87044b699c15094c0171b34516 (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 545ca1f2611ae0d836ab53947aedafbbd559fce3
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Sep 22 18:17:50 2017 -0700

    tax refactor vs. internal taxation, RT#77679

diff --git a/FS/FS/TaxEngine/internal.pm b/FS/FS/TaxEngine/internal.pm
index dbe9a99..5f5d229 100644
--- a/FS/FS/TaxEngine/internal.pm
+++ b/FS/FS/TaxEngine/internal.pm
@@ -23,7 +23,8 @@ sub add_sale {
   my ($self, $cust_bill_pkg) = @_;
 
   my $part_item = $cust_bill_pkg->part_X;
-  my $location = $cust_bill_pkg->tax_location;
+  my $location = $cust_bill_pkg->tax_location
+    or return;
   my $custnum = $self->{cust_main}->custnum;
 
   push @{ $self->{items} }, $cust_bill_pkg;

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/TaxEngine/internal.pm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list