I have a powerapps inventory management that looks like this

when the button is clicked I want all the values in the boxes to update a list that is connected to the PowerApps.
This is the code I have but It says there is a error with all of it. What have I done wrong?
ForAll(Gallery3.AllItems,
Patch(
'Merch Inventory'
First(
Filter(
'Merch Inventory',
Title = ThisItem.Title
)
),
{Quantity: ThisItem.Quantity - Amount}
));