use cust_main.district for tax calculation based on service address, #21404
authorMark Wells <mark@freeside.biz>
Thu, 18 Apr 2013 23:08:51 +0000 (16:08 -0700)
committerMark Wells <mark@freeside.biz>
Thu, 18 Apr 2013 23:08:51 +0000 (16:08 -0700)
FS/FS/cust_main/Billing.pm

index 8f7038f..e351285 100644 (file)
@@ -1225,6 +1225,8 @@ sub _handle_taxes {
           ? 'ship_'
           : '';
         %taxhash = map { $_ => $self->get("$prefix$_") } @loc_keys;
+        # special case--there's no 'ship_district' field
+        $taxhash{'district'} = $self->get('district');
       }
 
       $taxhash{'taxclass'} = $part_pkg->taxclass;