RE: Scripting inventory status

I’ve got a map/reduce script, which has been running for a while, which transforms from work order to assembly build.

 

var build = record.transform({

fromType: record.Type.WORK_ORDER,

fromId: workorder,

toType: record.Type.ASSEMBLY_BUILD

});
var built = build.save({});

 

We’re now testing the “Inventory status” feature in sandbox to see if we can use this to quarantine stock when needed. Having switched the feature on, we get an error on work order transforms “Please configure the inventory detail for the assembly item”.

I’m struggling to see what needs to be done to stop the above and I can’t find any documentation regarding scripting this feature. Has anyone else been through  this process?

dominicb Beginner Asked on January 6, 2020 in SuiteScript.
Add Comment
2 Answers

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.