Subtract quantity after purchase

Just to say that I finally managed to solve it using List Shifter Plugin.

List Shifter: Reverse, Rotate, Swap and ITERATE (Loop) Over Bubble Lists | Now at v1.4: Adds Numeric Option, GET INDEX Action - Showcase - Bubble Forum