Set Sales Tax Value
Posted: Mon Oct 12, 2020 3:51 pm
In some very specific instances, our company needs to use the property address (not the settlement location or a contact's location) to calculate the sales tax.
I can manually set the value to a fixed number (I have tried this example and it works):
Ideally, I would like to be able to use the city and/or county of the property to pull the correct sales tax percentage from our sales tax table. My question(s) are:
1. Is something like this even possible?
2. Which service(s) (ISalesTax, ISalesTaxEntry, ISalesTaxManager, ISalesTaxInfo) would I need to reference?
3. Is there any sample code that another developer has that can get me going in the right direction?
Thank you in advance for any help!
I can manually set the value to a fixed number (I have tried this example and it works):
Code: Select all
def SalesTaxInfo_Rate_Value(args):
info = args.Context
order = args.Context.Root
#several conditions to evaluate to determine if the default rule needs an over-write
args.Value(.07) #example of setting a fixed value
1. Is something like this even possible?
2. Which service(s) (ISalesTax, ISalesTaxEntry, ISalesTaxManager, ISalesTaxInfo) would I need to reference?
3. Is there any sample code that another developer has that can get me going in the right direction?
Thank you in advance for any help!