Iam working on netsuite & wanted to create a new status for Customer bill. The new status I wanted is "Written off". After writing off the status says "Paid in full". I want it to show "Written Off".
I found a lot of help to change the current status to another existing default status like:
Lets take an example. Below is the search filter to apply when trying to find Pending Fulfillment Sales Orders.
new nlobjSearchFilter('status',null,'is','SalesOrd:B')
and to set the status of a sales order as pending approval:
nlapiSubmitField('salesorder',soID,'orderstatus','A',false);
I also found default status list. But none which has creating a new one.
You cannot create a new status for Nestuite's transactions.
One option in your case would be to create a custom field that is populated via script, workflow or formula that you use as an alternate status display. For instance unless modified by some other field it would just pass through the transaction's status value. You'd have some other field on the bill that indicates it was written off so the script that calculates the alternate status value would use that to adjust what it returns.
The only way to define custom status would be creating a custom transaction, but, going custom transaction route can be costly affair as you would loose all standard transaction functionality - such as transform, out of the box approval feature, etc.
来源:https://stackoverflow.com/questions/35659747/adding-new-transaction-status-in-netsuite