I am trying to close a Sales Order using Suite Script in NetSuite.
I noticed that records which are already closed have their ‘status’ set to ‘Closed’. I tried setting this field before submitting the record but this doesn’t work and the record still remains in the ‘Pending Fulfilment’ stage.
Are there any other fields involved?
Thanks in advance!
No actual ‘Close’ equivalent status for transaction record.
You have to iterate over all line items and set to close, then resubmit the record to commit the changes.
Here is a sample code: