update Consumed Ingredients Quantity
open suspend override fun updateConsumedIngredientsQuantity(ingredients: List<UpdateQuantity>): WarehouseServiceResponse<List<Ingredient>>
Return
the list of updated ingredients and WarehouseMessage.OK if all the consumed ingredients are updated, null and WarehouseMessage.ERROR_INGREDIENT_QUANTITY if a quantity is greater than the actual quantity of the consumed ingredient in the warehouse, null and WarehouseMessage.ERROR_INGREDIENT_NOT_FOUND if one consumed ingredient is not found in the warehouse
Parameters
ingredients
list of the consumed ingredients