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.

Mark date closest to the end of the month

Featured Replies

I have a list of invoice dates. I would like to mark the invoice date record that is the closest to calendar month end date. I'm not sure how to go about doing this with a script. Any help would be appreciated.

Invoice Date Mark

3/1/12

3/13/12

3/29/12 X

4/6/12

4/19/12

4/30/12 X

5/2/12

5/11/12 X

INVOICEDATES.zip

Hi TJ,

There are a few problems with your setup. Your 'actual sales' is hard-coded balance and 'last day in month' shouldn't be static data either ... or at least need not be.

What is the purpose of wanting the Invoice with the greatest date (per month/year) and what if there are duplicates for that 'last place'?

Oh also sorry ... and why do you want to individually 'mark' them? Should each User be able to mark their own set of invoices or should a mark show same for ALL Users?

Edited by LaRetta

I would like to mark the invoice date record that is the closest to calendar month end date.

For what purpose? Note that there is a difference between the last invoice/s in a month within the current found set and the last invoice/s in a month overall.

What is the purpose

LOL.

  • Author

Hi LaRetta

Thanks for taking a look at this.

I import this file from a separate ERP system and the data in already in this format. For a specific invoice date it has the total sales for the date for the salesrep.

A manager is interested in seeing the oldest date for each month to see how the user has done just on those dates.

So the result when the manager does a find the result would be

SREP INVDATE MARK SALES

14 3/29/12 X $DD.CC

14 4/30/12 X $DD.CC

14 5/11/12 X $DD.CC

I hope that explains it better.

TJ

  • Author

Yes. That is exactly what I am needing but it looks like there is no access to the script so that I can understand how you accomplished this.

  • Author

My appologies comment I can see the script information now. Thanks!

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.