Skip 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.

Script to auto generate Invoice ID?

Featured Replies

This one has me stumped. We use a particular numbering system for our invoices (different from our Order ID). Just wondering how to make this an auto generated thing.

So, if I was to do some invoices for today, it would look like this: 02-1001-10, 02-1002-10, etc.

Now let me explain the numbering code: the first 2 digits are the current month followed by a dash. The first number after the dash is the office ID (with our office being 1, and the others being 2, 3, 4, etc. no more than a single digit. The next three numbers are the serial number for that invoice, increasing by 1. There is the dash and then the last 2 digits are the current year.

The gotcha, is that sometimes we have to roll back an invoice to the previous month, so I could see there may be a chance of duplication of a Invoice number, so somehow there has to be a check when that is done, in which case, the last serial number that was used is increased by one.

Any help would be greatly appreciated, since we have been doing this by hand for years.

Though you may eventually solve this problem, just make sure that you never ever use it as a real record ID or invoice ID in data relationships. A cardinal rule about IDs is that should have no meaning. Thus you never have any reason to change them.

  • Author

How right you are! I have learned that one the hard way.

I would like to change my profile from intermediate to beginner, but I can't see where to do it. I'm one of those many souls out there who fell into having to maintain a database someone else created without any formal training. I finally got the filemaker training series book and cd before Christmas, so my knowledge is gaining. After 5 years struggling with the current database (done by another) which was built with no anchor - bouy system I have decided create my own. So thanks to all of you for your help!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.