Discussions
SuiteScript - You still need to reconfigure the inventory detail record after changing the quantity
Hello~
I'm working on automating the creation of Inventory Adjustments so that we can expense items from our item receipts with ease. However, I've run into a problem that I'm struggling to wrap my head around.
{"type":"error.SuiteScriptError","name":"USER_ERROR","message":"You still need to reconfigure the inventory detail record after changing the quantity.","id":"","stack":["anonymous(N/serverRecordService)","onRequest(/SuiteScripts/ExpenseButtonFunction.js:245)"],"
When I run the script, I get this message as it tries to create the item line. It would suggest that the quantity on the item line is being changed after I've added the inventory details of quantity and status, but that shouldn't be happening? I put the inventory detail quantity last in the process just to be sure but to no avail.
Sam Dainton
ERP Project Manager, MPUK
Mobile Power ltd - www.mopo.co.uk