Automatically set quantity to fullfill to 0 when product is out of stock

Shopify Partner
3 0 0

I found an older question regarding this topic. The solution here was to do it manually, but is there a way to do it on a grand scale by selecting many orders - fullfill them and automatically set the order to  "partially fullfilled" for those with products out of stock?

(Including those who are set to "Allow customers to purchase this product when it's out of stock".)