Maybe I am misunderstanding the question being asked here, but I believe am having the same problem as the OP.
I am trying to create an invoicing system. I can get items to populate just fine but saving them to the database. The result of the invoicing system looks like this:
Now, these numbers are saved under the thing ‘products’. each product has a number associated with it which is the price (one field), it’s name (dress shirt, shorts, etc.), category, (laundry, dry cleaning, wash & fold, etc), the quantity (how many of these products we are cleaning for a customer) and the total cost for cleaning that product (total). The list is generated by adding a quantity of +1 for each product being cleaned, and saved under the quantity field. In this example, 3 is the quantity and pants is the name.
Once this invoice is finished, I need to save this list to a new thing called ‘orders’. The goal being that each thing in the database of ‘orders’ is a request that a customer has made, with an itemization of the products that we had cleaned for them on that order.
Now, the problem that I am running into is that I have 3 products with the quantity of 3. So I NEED a list to be saved that looks like ‘3, 3, 3’ so that when I review the order later, I can see 3 pants, 3 shorts, 3 polos. Instead, the number 3 is only saved once, not 3 times.
Is there a way to get around this?