decrease Ingredient Quantity
open suspend override fun decreaseIngredientQuantity(name: String, quantity: Int): RepositoryResponse<Ingredient>
Return
the updated ingredient and WarehouseMessage.OK if the new ingredient has been successfully updated, otherwise it returns null and WarehouseMessage.ERROR_INGREDIENT_NOT_FOUND
Parameters
name
of the ingredient to update
quantity
to remove from the warehouse