Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6461 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello all,

I have this script (code below) that works, but I can't figure out how to get it to run using a customer as the search base. When this script is run I need it to do the script based on the current customer being billed.

script.png

Thanks

Dave

Posted

I can't read your script, it is way too small.

Since you are on a Mac,

Print your script to Preview, and then copy it and paste into a Reply here.

Lee

Posted

Find [Over Credit Limit Invoices] Copy

Perform Script [ “Allow User Abort” ]

Perform Script [ “Set Error Capture” ]

Perform Script [ “Last Layout [store]” ]

Set Field [ QUOTES::KF_CUST_ID_q; QUOTES::KF_CUST_ID_q ]

Perform Find [ Specified Find Requests: Find Records; Criteria: INVOICES::Status: “Billed” ] [ Restore ]

Extend Found Set [ Specified Find Requests: Find Records; Criteria: INVOICES::Status: “Cancel” ] [ Restore ]

Set Variable [ $CreditLimit; Value:Sum(INVOICES::Price_Grand_Total) ]

Set Field [ QUOTES::testfield; $CreditLimit ]

#ABOVE FIELD IS JUST USED TO VIEW THE SUM OF THE INVOICES, USED FOR TESTING ONLY

Show All Records

If [ $CreditLimit ≥ CUSTOMERS::CreditLimit ]

Show Custom Dialog [ Title: "Account over Credit Limit"; Message: " ACCOUNT HAS REACHED IT'S CREDIT LIMIT!"; Buttons: “OK” ]

End If

Perform Script [ “Last Layout [Restore]” ]

This topic is 6461 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.