This repository contains a Suitelet script designed to simplify the item entry process in NetSuite. The script allows users to create new inventory items with ease by providing a user-friendly form for entering item details.
- User-friendly form for entering item details such as cost, retail price, display name, store description, MPN, product category, and location.
- Automatic generation of SKU (Stock Keeping Unit) based on the last entered item's SKU.
- Display of the most recently entered items in a table for easy reference.
- Validation and error handling to ensure accurate data entry.
- Integration with NetSuite's record and search modules for creating and retrieving item records.
Before using this script, ensure that the following requirements are met:
- Access to a NetSuite account with SuiteScript 2.0 enabled.
- Sufficient permissions to create and edit inventory items.
To install and use this script in your NetSuite account, follow these steps:
- Clone this repository to your local machine or download the source code as a ZIP file.
- Log in to your NetSuite account.
- Navigate to Customization > Scripting > Scripts.
- Click the New button to create a new script.
- Enter a name for the script (e.g., "Item Entry Suitelet").
- Change the search id's in the script in accordance with your saved searches.
- Copy the code from the
cs_su_inv_record.js
file in the repository and paste it into the script editor. - Click the Save button to save the script.
- Deploy the script as a Suitelet by clicking the Deploy button.
- Configure the deployment settings according to your requirements.
- Click the Save button to deploy the script.
To use the Item Entry Suitelet, follow these steps:
- Log in to your NetSuite account.
- Navigate to the Suitelet's URL, which can be obtained from the deployment settings.
- Fill in the required item details such as cost, retail price, display name, store description, MPN, product category, and location.
- Click the Submit button to create a new inventory item based on the entered details.
- The script will generate a SKU for the item based on the last entered item's SKU.
- The most recently entered items will be displayed in a table for easy reference.
Contributions to this repository are welcome. If you have any suggestions, improvements, or bug fixes, please submit a pull request.
When contributing, please adhere to the following best practices:
- Follow the coding style and formatting conventions used in the existing codebase.
- Provide clear and detailed commit messages.
- Clearly document any new features or changes in the code.
- Test your changes thoroughly to ensure they work as intended.
- Ensure that your code does not introduce any security vulnerabilities or performance issues.