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.

Calculate next invoice number

Featured Replies

  • Author

I have a very simple invoicing solution and am struggling with automating the next invoice number.

The invoice number is a text field and made up of 3 parts; the project number (446), "INV", and an incremental 3 digit number "001".

invoice number = 446INV001 (next number would be = 446INV002)

I'd like to have the invoice number field automatically calculate the next invoice number when a new record is created with a matching project number. How can I increment the final 3 digits but still keep the invoice number in the same format? I can work out the relationship bit without problem, but the calculation is stumping me.

any suggestions?

Jason...

I have a very simple invoicing solution and am struggling with automating the next invoice number.

The invoice number is a text field and made up of 3 parts; the project number (446), "INV", and an incremental 3 digit number "001".

invoice number = 446INV001 (next number would be = 446INV002)

I'd like to have the invoice number field automatically calculate the next invoice number when a new record is created with a matching project number. How can I increment the final 3 digits but still keep the invoice number in the same format? I can work out the relationship bit without problem, but the calculation is stumping me.

any suggestions?

Jason...

  • Author

I have a very simple invoicing solution and am struggling with automating the next invoice number.

The invoice number is a text field and made up of 3 parts; the project number (446), "INV", and an incremental 3 digit number "001".

invoice number = 446INV001 (next number would be = 446INV002)

I'd like to have the invoice number field automatically calculate the next invoice number when a new record is created with a matching project number. How can I increment the final 3 digits but still keep the invoice number in the same format? I can work out the relationship bit without problem, but the calculation is stumping me.

any suggestions?

Jason...

Your construction is not particular 1NF (one fact per field) but you can seek inspiration to your numbering in this old template:

http://www.filemakerpros.com/SerialCat.sit

...but be aware that today should/ought etc. Lookups be inside a calc'field/autoenter instead. Anyways give it a whirl and see what I'm hinting at.

--sd

Your construction is not particular 1NF (one fact per field) but you can seek inspiration to your numbering in this old template:

http://www.filemakerpros.com/SerialCat.sit

...but be aware that today should/ought etc. Lookups be inside a calc'field/autoenter instead. Anyways give it a whirl and see what I'm hinting at.

--sd

Your construction is not particular 1NF (one fact per field) but you can seek inspiration to your numbering in this old template:

http://www.filemakerpros.com/SerialCat.sit

...but be aware that today should/ought etc. Lookups be inside a calc'field/autoenter instead. Anyways give it a whirl and see what I'm hinting at.

--sd

  • Author

Forgot to mention I will be storing the next invoice number in a calculated field and when a new record is created the invoice number will be automatically looked up.

I think what I am looking for is a sort of Max calc. Trouble is I want it to work with text and numbers but retain the formatting of previous invoices e.g. 446INV001, 446INV002 etc...

Jason

  • Author

Forgot to mention I will be storing the next invoice number in a calculated field and when a new record is created the invoice number will be automatically looked up.

I think what I am looking for is a sort of Max calc. Trouble is I want it to work with text and numbers but retain the formatting of previous invoices e.g. 446INV001, 446INV002 etc...

Jason

  • Author

Forgot to mention I will be storing the next invoice number in a calculated field and when a new record is created the invoice number will be automatically looked up.

I think what I am looking for is a sort of Max calc. Trouble is I want it to work with text and numbers but retain the formatting of previous invoices e.g. 446INV001, 446INV002 etc...

Jason

See attached for sample. Note that the relationship is sorted by pseudoSerial descending and the auto-enter calc has 'do not evaluate' deselected.

See attached for sample. Note that the relationship is sorted by pseudoSerial descending and the auto-enter calc has 'do not evaluate' deselected.

See attached for sample. Note that the relationship is sorted by pseudoSerial descending and the auto-enter calc has 'do not evaluate' deselected.

NextInvoice.zip

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.