Skip to content

Latest commit

 

History

History
113 lines (85 loc) · 3.54 KB

CLIENT_SCRIPTS.md

File metadata and controls

113 lines (85 loc) · 3.54 KB

SUITESCRIPTS

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.

AGREEMENTS CLIENT

This script is used by a suitelet

CASH REFUND CLIENT

cash_refund_client.ts

Makes tax rate match attached Cash Sale.

INTERNATIONAL INVOICE CLIENT

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

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.

ITEM ORDER LOOKUP CLIENT

Triggers an alert on field change. This script is used by a suitelet.

RE-PRINT INVOICES CLIENT

Saves a list / array of invoices to be print / merged into pdf. This script is used by a suitelet.

RETAIL REPLENISHMENT CLIENT

This script is used by a suitelet

SALES ORDER CLIENT

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

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.

VENDOR BILLS CLIENT

Sets a fields value to a list / array of transaction data to be used with a map reduce script.