RE: Dynamics GP 2016, "LineScroll_CHG() of form SOP_Entry" and "SOP_Check_Credit_Limit" error registering triggers
SOP_Check_Credit_Limit:
For this script , you can register your trigger on RM_Credit_Limit_Check, which is calling from within of SOP_Check_Credit_Limit function and have less parameters. Also parameters are defined in SDK as mentioned below.
'SOP_Check_Credit_Limit', 1, 1, 179.95000, 3, "ADAMPARK0001", "ADAMPARK0001", 0, 0, table 'RM_Module_SETP', 0
'NationalAccountsRegistered()', 0
'NAConsolidateCreditCheck() of form RM_NationalAccounts_Maintenance', 0, "ADAMPARK0001", table 'RM_NationalAccounts_MSTR'
'RM_Credit_Limit_Check', "ADAMPARK0001", 179.95000, 0
Script type:
Global
Form (If a form global):
Category:
Cards
Description:
This script is receives a customer ID and a transaction amount as in parameters. The script first checks to see if the customer has no credit. If no credit is found, false is returned. Otherwise, it checks to see if the customer has unlimited credit. If unlimited credit is found, true is returned. If not unlimited or none is found, the the script checks to see if Customer Balance In dollar amount unposted Sales - unposted credits will be greater than the customers credit limit. If it is greater, then Credit_OK is returned as false. Otherwise true is returned. The script also checks the balance of specified aging period and beyond dollar in amount. If that balance is greater then the Credit Limit Period Amount, Credit OK = false is returned. Otherwise, true is returned.
Prerequisites:
none.
Parameters:
in 'Customer Number' IN_Cust_ID. {Check credit limit for this customer number.}
in dollar IN_Dollar. {Transaction amount to check if customer is over the limit.}
inout boolean INOUT_Credit_OK. {true = credit not exceeded, false = credit exceeded}