Tax rates based off of Shipping Address?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
15 years ago
Is there a way to set up a tax rate that is based off the shipping address state? USA/Maryland does not charge sales tax on goods shipped out of state. From what I've read in the code, tax is calculated from the billing address.

Nice work!
thx
-geoff
15 years ago
Just as a followup, StikeIron also incorrectly calculates this for shipping purposes.
The results below are shipping from MD to PA. In most business cases this would result in a MD sales tax rate of 0%.

Step 3: View Results
Field Name Data Received
Resolved Ship-From StreetAddress 15825 SHADY GROVE RD
Resolved Ship-From City ROCKVILLE
Resolved Ship-From State MD
Resolved Ship-From ZIPCode 20850-4007
Resolved Ship-To StreetAddress XXXX SHAMROCK DR
Resolved Ship-To City ALLISON PARK
Resolved Ship-To State PA
Resolved Ship-To ZIPCode 15101-3146
Category General Merchandise
CategoryID 1010000
SalesTaxRate 7
SalesTaxJurisdictions FIPS Name SalesTaxRate
003 ALLEGHENY 1
42 Pennsylvania 6

The business logic I'm looking for is:

If shipping.address.state = Maryland then
  For each non-exempt item
    tax += itemcost * 6%
  next
else
  tax = 0
end if
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.