I am making a store type page, and I am showing the items and quantities that the user wants to buy in a repeating group, and I have to subtract this purchased quantity from the available quantity of that item when a button is pressed.
have a datatype item with a field quantity. then workflow or backendflow with calculating do a search for quantity minus the amount of what the user bought.