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.

Skipping automatically generated numbers

Featured Replies

I have a database for creating internal invoices, whenever someone creates a new invoice the invoice number goes up by 1. However I have noticed that sometimes a number is skipped, ie; the invoice number goes up by 2.

This will normally occur when 2 or more users are logged into the database.

Has anyone noticed this?

Does anyone know of a fix?

How your invoice number goes up by 1?

If a new invoice is created then immediately deleted the number is one: serial numbers are never recycled. I'd say this is your problem.

Two solutions are to make it hard for users to create new invoices and delete them; or get used to the fact that the numbers will have holes.

If you are using FMP 7 you can elect to have the serial number generated on comit rather than record creation. That way if a user makes a new record then immediately deletes it the serial number is not lost because it was never assigned.

According to legislation in my neck of the woods, is deleting invoices the same as cooking the books, a wrong invoice should be followed by a credit note that counters the wrong amount.

But admitted it's a tricky thing to maintain these days with evaporative storage of eh meaning ...Paco di Paciolis two sided book keeping, demanded such matters written in non erasable ink. Removing an invoice in the sequence is simply illegal ...at least inside the EU...

--sd

  • Author

Users already do not have permission to delete invoices, this is akin to cooking the books.

I'll give your solution a try Vaughan since having holes in the number sequence would appear as though we are trying to hide something when it comes to audit time.

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.