SuiteScript is the NetSuite platform built on JavaScript that enables complete customization and automation of business processes. Using the SuiteScript APIs, core business records and user information can be accessed and manipulated via scripts that are executed at pre-defined events.
This script is used by a suitelet
cash_refund_client.ts
Makes tax rate match attached Cash Sale.
This script adds a button to the view invoice form under the actions drop down. This lets you print an advanced pdf template attached to a different invoice form.
item_fulfillment_client.ts
Generates buttons for flat rate shipping. These buttons will select the appropriate shipping method and packaging (box type, dimensions etc...).
Method | |
---|---|
FedEx 2Day Express | Automatically sets the appropriate packaing and ship date based on date and cut off time. This includes Saturday delivery. Cut off time is set to 4:45pm. |
USPS First Class | Automatically sets ship method and box dimensions. |
USPS Priority Mail | Automatically sets ship method and box dimensions. |
USPS Priority Mail Flat Rate Envelope | Automatically sets ship method and sets packaging to USPS Flat Rate Envelope. |
USPS Priority Mail Flat Rate Legal Envelope | Automatically sets ship method and sets packaging to USPS Flat Rate Legal Envelope. |
USPS Priority Mail Flat Rate Medium Box | Automatically sets ship method and sets packaging to USPS Flat Rate Medium Box. |
Triggers an alert on field change. This script is used by a suitelet.
Saves a list / array of invoices to be print / merged into pdf. This script is used by a suitelet.
This script is used by a suitelet
sales_order_client.ts
Calculates handling cost based on region, adds it to the shipping cost and displays the total shipping cost. Adds a button to the sales order that calculates sales order total weight in lbs and total item count.
Regions
US Region | Included States |
---|---|
Region 1 | Arizona, California, Idaho, Nevada, Utah |
Region 2 | Arkansas, Colorado, Kansas, Maryland, Montana, Nebraska, New Mexico, Oklahoma, Oregon, Texas, Washington, Wyoming |
Region 3 | Alabama, Delaware, Florida, Georgia, Illinois, Indiana, Kentucky, Lousiana, Maryland, Massachusetts, Michigan, Minnesota, Mississippi, North Carolina, North Dakota, Ohio, South Carolina, South Dakota, Tennessee, Virginia, West Virginia, Wisconsin |
Region 4 | Connecticut, Washington D.C., Maine, New Hampshire, New Jersey, New York, Rhode Island, Vermont, Guam, U.S Virgin Islands |
Region 5 | Alaska, Hawaii, Puerto Rico, American Samoa |
user_task_client.ts
Generates a button on the Task Form that will set the status to complete and update the 'Follow Up Scheduled' field on the Customer Record.
Sets a fields value to a list / array of transaction data to be used with a map reduce script.