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.

Find Script for outstanding invoice statement

Featured Replies

I have not written a script before and am trying to figure out how I go about writing a script that will find all my outstanding invoices client by client and organise them into a layout that I can then print out.

I would also like to detail on the statement layout the total amount of invoices which are Current, 30+days, 60+ days and have a final grand total outstanding.

I have a status field on my invoice layout which details the invoice status i.e Pending, Invoiced, Paid etc...

I would also need to include data from other invoice fields in the statement i.e PO number, Invoice number etc...

Has anyone encountered a thread that deals with this or can anyone help me write a script that will do the above

thanks in advance for any help

Diane

  • 2 weeks later...

First create a calculation field that calculates the aging of the invoice, text, case(get ( currentdate ) - Date < 30, "Current", case(get ( currentdate ) - Date < 60 , "30+ days", "60+ days" where Date is the field of due date for invoice. This will place the text Current, 30+ days or 60+ days depending upon aging.

Create a summary field that is sum of total amount of invoice.

Then create a layout with the necessary info on invoices, with the summary field in a sub-summary part sorted by the calculation field. Also place a trailing grand summary, both parts with the summary field totaling invoices.

Then create a script that:

Go to layout you just created

Enter find mode, no pause

set field ( invoice status , "Pending" )

Perform find

sort ( calculation field )

Page setup

Print

Hope this gets you started.

DJK

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.