Another approach would be write to a custom hidden...
# suitescript
a
Another approach would be write to a custom hidden field on the inventory adjustment and modify the inventory detail on a UE script...using that hidden field data...