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 the Last Invoice Date of the Prior Month

Featured Replies

I'm pulling some information from an ERP system which has Invoice Dates and Total Accounts Receivable.

I would like to create a field that is able to identify the last invoice date of the prior month as I would like to set up a Table Occurance and relate this new field to the INV.DATE field of the table occurance in order to pull the Total Accounts Receivable from that date.

Unfortunately as you will see in the example, the invoice date of the prior month is often not on the last day of the month due to weekends and holidays etc.

I'm hoping this can be done with a calculation. If not and this requires a script, I'd appreciate any help with that also.

Thanks

CalculateLastInvDateofPriorMonth.zip

From the description you want to use the result as the “left side” of a relationship; in this case, a simple calculation won't work, but the field must be stored,

Without knowing your actual workflow, it's hard to make a useful suggestion; check the trigger on the invoice date field, which OnObjectExit updates the “last invoice date”.

CalculateLastInvDateofPriorMonth_new.fmp12.zip

  • Author

Thank you. What you provided was very helpful.

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.