How can I save the value in different indexes ?

Here, If I give quantity value for 1st row then it is coming to all the rows with the same value. Item, ItemName, Price, are in one Rule input and Quantity, Total are belongs to other Ruleinput.
How can I save the Quantity value in their indexes ?

  Discussion posts and replies are publicly visible