Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Simple Calculation? Sales Tax

Featured Replies

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

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 by Guest

  • Author

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

You need to put quotes around MD. Then you get:

Case ( Ship State = "MD" ; Item Total * .05;0)

You should probably be using a lookup instead of a calculation. Create a state table with fields for state and tax.

  • 1 month later...
  • Author

Bob,

Thanks. That did the trick.

Mike

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.