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.

Calculation to create an Invoice #

Featured Replies

Hi!

I have an invoice # that is the Date Created and a Company Code, eg: 032305HAG (where 032305 = today's date and HAG is company code for a particular client). To automatically insert this, I created a calculation:

Date Modified &""&ED Contacts::IN Code

However, what appears is some weird #: 732028HAG -- so the company code is going i correctly, but the Date Created is I don't know what - the # does correspond to the date somehow because it is different for a record from yesterday.

Does anyone know why this is doing this and how I should fix it - is there a better calculation?

Also, this is my first posting and I am an advanced basic user who has basically been using the guides that came with the program - what's the best book to buy to start helping me do more advancecd stuff (such as writing script)

THANKS!

Try this instead:

Filter ( GetAsText ( Date Modified ) ; "0123456789" )&ED Contacts::IN Code

The strange number you were getting is the internal numeric version of the date. The GetAsText converts it to text, and then the filter function removes the slashes separating the month day and year.

  • Author

Thank you so much for replying!

I tried it, but it gives me the message: "Either an operator was ommitted, this function cannot be found, or "(" was not expected here"

Any thoughts?

Sarah

Oops, sorry, I gave you an FM 7 version formula. If you are using version 6 you will need to use this instead:

Substitute(DateToText(Date Modified),"/","")&ED Contacts::IN Code

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.