Subtract elment to repeating group

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.

how can I achieve this?

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.

This topic was automatically closed after 70 days. New replies are no longer allowed.