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.

script to create Invoice from Cust Record

Featured Replies

I don't like the structure of your system. It is not logical to me to create a client record on-the-fly from an invoice not least because of the problems you are seeing when invoicing a repeat customer.

What is more logical to me is:

1. check if client exists (Client table)

2. if not, create a new client record

3. client exists, create new invoice for customer

When you create a new invoice from a customer record, it is a scripted process that first records the current customer ID as a variable, and then jumps to the Invoice layout, creates a new invoice and sets the customer ID using the variable value

Can anyone provide a script for this? I currently have 4 tables and layouts: Invoice, Clients, Services, Lines items each with their own auto entered id's and related fields. I been really learning a lot with the redesign business and invoicing coming from a "flat file" mindset . . . and still learning more with now scripting. Any help would be greatly appreciated.

-brian

  • 2 weeks later...

Script:

NewWindow

Goto layout based upon Invoice

New Record

Set field CustomerID [Get (scriptparameter) ] assuming CustomerID is the key joining Invoice to Customer

From a button on the layout customer, create a button that calls this script and passes the CustomerID as the parameter.

  • Author

Much thanks and appreciation Doug!

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.