Several items have the same barcode. Which one does a scan open?
Scanning that barcode on the Scan screen shows a list of the items that have it, each with its set, stock and price. Tap the one you mean.
With Quick sell on, or while you are scanning into a bundle, there is no list: the scan takes the oldest one still in stock, so the box you bought first goes first.