Discussions
Creating a Alert if a Order is Closed
Hi,
I'm trying to create a Alert to pop up everytime a Order is Closed and Replaced.
right now, I wrote this using the Netsuite Help but its displaying a error.
function FieldChanged(type, name)
{
if (name == 'custpage_closeitems')
{
if (nlapiGetContext().getSetting('SCRIPT', 'custpage_closeitems') == 'T' {
field.setDefaultValue('T')
}
{
alert("Order is now closed, Don't forget to close PO. Please Inform Joanne and the Warehouse so item does not get despatched. Thank You");
return true;
}
The 'custpage_closeitems' is actually a custom button (dont know where this is store, but I just clicked on 'inspect element' on my firefox and it brought this up, so this is what the button is doing..