MJG Posted October 18, 2006 Posted October 18, 2006 It seems like this should be a simple calculation, but I haven't worked with FM for a while and have never done too much with calculations. What I need to do is define a Sales Tax field that says: If the Ship To State = MD, Sales Tax = Item Subtotal * .05. I can't seem to figure that out using the options in FM though. I am using FM8. Thanks for any help. Mike
Newbies Bicbel Posted October 18, 2006 Newbies Posted October 18, 2006 (edited) Hi, excuse me for my bad english language. Try to use in a calculation field the function Case(testA, resultA, testB, resultB, ...) Exemple: Case (Ship to State=MD, Sales Taxes=Item Subtotal * 0,05, Ship to State=ND, Sales Taxes=Item Subtotal*0,10) Saludos. Edited October 18, 2006 by Guest
MJG Posted October 18, 2006 Author Posted October 18, 2006 Thanks for the help. That is basically what I tried first. I have: Case ( Ship State = MD ; MD Sales Tax = Item Total * .05{; Ship State ≠ MD; MD Sales Tax =0} ) However, when I try to save that as the definition for the field, it says that it can't find the MD field. Is there a way to say: if Ship State contains MD, then MD Sales Tax = Item Total * .05)? Not sure if using contains instead of = would make any difference. Again, any help would be appreciated. Mike
BobWeaver Posted October 18, 2006 Posted October 18, 2006 You need to put quotes around MD. Then you get: Case ( Ship State = "MD" ; Item Total * .05;0)
bruceR Posted October 19, 2006 Posted October 19, 2006 You should probably be using a lookup instead of a calculation. Create a state table with fields for state and tax.
Recommended Posts
This topic is 6637 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now