Adding the proper stock code as an ID to the list element that contains it