Suitelet Page For Resource Allocation

Scenario: We need to create a suitelet page for resource allocation. The suitelet page should contain similar pages like the same. The Body fields should contain, Project Name. Common project fields. The sublist structure should same as the below image. Solution We can use a client script for the validation and another suitelet for background… Continue reading Suitelet Page For Resource Allocation

Showing Warning/ Success Messages in Suite lets

Scenario: We need show a warning message when an error occurs and a success message if the process completed. You can use ‘message‘ for showing warning/ information messages in a suitelet. ‘N/ui/message‘ module can be used for that. in the above example, we can create the message by using message.create method. As an option, you… Continue reading Showing Warning/ Success Messages in Suite lets

Reducing the Recurrence count by one whenever a user creates a copy of the PO record in Before Submit Trigger using User Event Script in Netsuite.

Steps:- First visit a Parent PO record. Click on edit and enter a desired positive integer value in the Number of Recurrence field. Click on save. Make a copy of the Parent PO. Save the child record or copy of that PO. Navigate to the respective or related Parent PO. The number will be reduced… Continue reading Reducing the Recurrence count by one whenever a user creates a copy of the PO record in Before Submit Trigger using User Event Script in Netsuite.

Update additional tracking number field in Purchase order

/** * @NApiVersion 2.1 * @NScriptType MapReduceScript */ define([‘N/email’, ‘N/record’, ‘N/render’, ‘N/recordContext’, ‘N/runtime’,’N/currentRecord’, ‘N/search’,’N/file’], /** * @param{email} email * @param{record} record * @param{recordContext} recordContext * @param{runtime} runtime * @param{search} search */ (email, record,render, recordContext, runtime, currentRecord, search, file) => { /** * @description the function to check whether a value exists in parameter * @param… Continue reading Update additional tracking number field in Purchase order

Case pack quantity updation with the sales order line quantity

Requirement: In the sales orders, we can enter any number of item line quantities. But from the client business perspective, they need to control the quantity based on the item case pack. The quantity should be multiples of the case pack number and if the quantity is not a case pack multiple we need to… Continue reading Case pack quantity updation with the sales order line quantity

Invoice email script-payment

script that triggers only on Create context of Payment ,that will send the emailusing the email template “CTG-Invoice” to anyone with “receive invoice” (on the customerform, under Relationships) checkbox checked and terms not Empty. only send the email in the case of invoice is “Paid in Full”