I think available_for_delivery should be check based on warehouse, instead of purchase doc, which I think is already there.