Creating product Serial No.s for a Product
Hoping someone can point me in the right direction. Need to create a product serial number. The problem I have is I need to add/create more than one serial number if the Qty of the product is more than one. Therefore if there is 1 product create one serial number, if there are 2 products create two serial numbers etc. Needs to be for one record already in line items. I was using a combination of line item ID, quote ID etc to create a serial number which of course needs to be unique.
I was looking at a 'if' script but I could only think of one step for each quantity amount. I was thinking there maybe a way to identify the quantity amount and use that to create that amount of serial numbers tagged to the product description.
Hope this makes sense. I have attached a picture of what I'm trying to achieve.