Restrict the Item Fulfillment creation if a custom checkbox is checked. No need to show Fulfill button in the Sales Order
User Event Script is used.
beforeLoad is entry point selected.
1.First create a custom checkbox in NetSuite
Customization > Lists, Records & Fields > Transaction Body Fields > new
a. label: Hold Fulfillment
b. type: Check Box
c. Applies to: Sale.
d. Display: subtab-Main
2.Save
3.In User Event Script,
a. Get the value of customer and custom field Hold Fulfillment from the new record.
b. Check a condition, if value in custom field Hold Fulfillment is true then,
if (scriptContext.type == ‘view’) {
var yourForm = scriptContext.form;
yourForm.removeButton(‘process’);
}
(process is the id of button Fulfill in the sales order)
4.Create a Sales order in the NetSuite.
a. Customer: Select customer name.
b. Status: Select Pending Fulfillment
c. Hold Fulfillment: Enter a checkmark.
d. Add items.
e. Save
5.After save, in the pending fulfillment page the Fulfill button will be removed.