This fabric store has a roll of fabric that is 100 meters long. They would like to allow customers to buy this roll of fabric in multiples of 0.5 meter, 1 meter, or 2 meters.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e3e06dac-b462-495d-b398-4b1f3c594fb9/Untitled.png

The store create a new product on Shopify for this fabric with a variant option named size. The option values are 0.5m, 1m 2m

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1939f496-72ef-4c63-9991-af5a5686b4c0/Untitled.png

The shop has 100 meter of this roll of fabric.

Initially they would have the following inventory quantity:

0.5m: Quantity = 200 (100 meter / 0.5 meter)

1m: Quantity = 100 (100 meter / 1 meter)

2m: Quantity = 50 (100 meter / 2 meter)

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4f8ed92d-6a6c-4a55-9cf8-e1ad96aaab62/Untitled.png

The quantity shall decreases whenever a fabric is sold.