Updated add_scan to use inventory_barcode instead of inventory_owner_code