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.

Featured Replies

  • Newbies

Here in Canada, they are lowering the GST/VAT from 6% to 5%. I need to redo the calculation for the field based on whether the quotation/workorder/invoice was made before or after midnight tonight.

I was trying something like this but it's not working, any help is always appreciated.

Case(GetAsNumber(GSTRATE) < GetAsNumber(Date(1;1;2008)); GSTRATE = .06 ; GSTRATE = .05)

Hmm, I'm not sure why you're comparing your GSTRATE with 1/1/2008, so unless I'm missing something you'll need to change that.

You need to consider the 'date' of the when the invoice is made - whether it's the record creation time or something (auto-)filled in by the user. Regardless of how that date is set, you need to use that field (I called it InvoiceDate) in the calc below:

Case( InvoiceDate ≥ Date(1;1;2008); .06 ; .05)

This also assumes that all your users are in the same time zone as your server; if they're not you may have further decisions to make if the date that matters is where the server is located, not where the user is.

Isn't New Year's Day a public holiday in Canada? Maybe you can just reset the GSTRATE tomorrow.

I am presuming that your Invoices are recorded with the prevailing GSTRATE at the time of creation - if not you should correct the situation pronto. It is important to have financial records using "fixed" data - that is any variable items should be stored with the record rather than relying upon calculations or, worse still, related data.

Edited by Guest

  • Author
  • Newbies

With Soren's help, I did

Case( InvoiceDate ≥ Date(1;1;2008); .06 ; .05)

Simply to be sure that any outstanding invoices (that are generated possibly from pre 2008 quotes) have the right number Happy New Year to everyone, thank you for all your ongoing help

Salut

This is not a good method, IMHO. Changing the tax rate should be in the province of the user - it need not require the developer's intervention. See:

http://www.fmforums.com/forum/showtopic.php?tid/188836/

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.