TMDM-7590 : Modify records type compare logic for existing records and new records