not sure what you're trying to complete and so, whilst I think you need to look beyond the Inventory Detail record, I cant recommend where to look, from your story I think it's best to move away client side, and that's all I can recommend
With the subrecord I can totally see it works server side, say even suitelet an then say executing at a higher role it'll probably do what you want it to