Sync configurable product stock status with simple products?

I have simple products in stock with set quantities, yet for some reason I need to manually change the configurable product to “in stock”. Is there a way to sync this so that if a simple product is in stock, the configurable product automatically changes to in stock and vise-versa?

submitted by /u/rollk1
[link] [comments]