Is there a way via SuiteScript to reallocate commi...
# suitescript
k
Is there a way via SuiteScript to reallocate committed inventory directly from one Sales Order to another?
s
Commitment engine is also not scriptable lol, its really not fun to work with.
k
yeah I know
last time I worked with it I ended up with an insane recursive un-commit/re-commit map/reduce
s
Yeah its a risky game to play
b
Turn off auto commitment, control commitment via script is your insane possibility
k
Best I can come up with is do a search of SOs in the child SO location, un-commit the parent SO, commit the child SO, if inventory is insufficient run the search again, see which orders grabbed the inventory, uncommit those, commit the child SO, rinse and repeat
Can you commit or un-commit a quantity or is it only true/false?
s
You can control that
do not commit
column, not quantity.
👍 1
k
That's what I thought
Thanks!