Hi All, Anyone know how to close a WO via script? ...
# suitescript
r
Hi All, Anyone know how to close a WO via script? I have used a transaction called
Workorderclose
before which creates a new transaction but This customer does not have WIP enabled. and I am wondering if I need to enable it or just used something like
rec.setFieldValue('status', 'Closed')
but it does not work.. TA
a
I believe each line item has to be closed
r
I don't see a close checkbox on the lines (like we do for SO) and its not hidden on the form as well
a
fieldId should be "isclosed"
from the item sublist
Yes, like SO's and PO's
r
Ah i see it if i load the record in the console.. will try it out now... thank you
@apaule Worked like a charm... thanks for the idea, didnt see the isclosed checkbox in th UI ...
a
No problem