Here you can simply use `$order->getInventoryUnits()` to have all units. I don't know why this loop on order items is here.