Simple product inventory control. The system has to be able to identify the store that has received products. When the inventory is counted then products missing are products that were sold.
Each detail line is a qty of one. This detail line is called up and marked as sold.