Barcode scanner that saves information about the scanned barcode