ExploreConsulting / netsuite-fasttrack-toolkit-ss2

NFT for SuiteScript 2.X
75 stars 20 forks source link

Support JSON Seriliazation for unsaved WorkOrder #78

Open ShawnTalbert opened 1 year ago

ShawnTalbert commented 1 year ago

It was reported that if you try to log a newly instantiated WorkOrder you get an error,

Set the workorder assemblyitem then log the workorder, NS barfs with:

 You cannot create an inventory detail for this item

Perhaps adding explicit skip logic for the workorder.item.inventorydetail subrecord in toJSON()? Is this useful for all sublists?

ShawnTalbert commented 1 year ago

We do a similar workaround for xxxText fields to allow unsaved records to be logged (it skips logging of *Text fields in toJSON())