Add functionality so discount is not applied for duplicate books