what is the best way to set an inbound shipment re...
# suitescript
n
what is the best way to set an inbound shipment record to 'in transit'? the suitescript records browser says the 'shipmentstatus' field is read only?
s
can certainly be done, i’ve done a script to do it based on the date before…
now to remember how…. 😂 let me look back to source code
n
much appreciated 🙏 please let me know how you did it
s
well it was commented out and i don’t know why but i’m pretty sure it did work… might be worth a shot anyway.
Copy code
//    		//check to see if actual last release date is set and convert to in transit
//    		if(REC.getValue('custrecordactlastrelease') && REC.getValue('shipmentstatus')=='toBeShipped') {
//    			REC.setValue('shipmentstatus','inTransit');
//    		}
was several years ago working with this client and there were constant changes so my mind is a bit foggy
n
👍
that actually worked lol . so much for NS documenting that it is read only