Skip to main content
There are three relevant Tax decision rules : The following can be configured with the different Decision Rules SalesTax
  • ”@” uses any taxable class
  • ”_” data:
    • tax is the found SalesTaxJurisdiction
    • distilled is a hashref whose contents require reading the code (Obj/SalesTaxJurisdiction.pm)
  • Returns rule = specially formatted string
Example: IF _.tax.country = ‘US’ AND _.tax.district IN (‘AL’,‘AZ’,‘IN’,‘KY’,‘NC’,‘TN’,‘TX’,‘WI’) THEN rule = ‘nexus=y;class=OtherTaxable’ STOP Vertex Decision Rules
  • @” uses any taxable class
  • ”_” data is tax vendor data
  • Returns rule = tax vendor hashref
Example : IF _.caller = ‘calculate_tax’ THEN rule = {’_.Currency’ => null,’_.Dispatcher’ => null,’_.*Seller’ => {‘Company’ => ‘OTT’, ‘Division’ => ‘NFLX’}} STOP Parent topic:Taxes