Since the stock is related to the Product / options that are ordered, you should have a separate table to track inventory.
you would need to have a separate record for each product / option combination and on purchase do a look up of the product / option combination to update the inventory.
We can help implement the table and inventory update script in a premiere support appointment.