Skip to content

People of same name cannot be added  #1

Description

@bbryant824

** People of same name cannot be added **

Description

People of same name, for instance, both buyers name Bobby want to buy the property of the agent, they can be differentiated with their different emails and phone number. However, only one Bobby can be added to the addressbook which limits the usage of the addressbook since having same names are very common but system can only store one person per name.

Steps to reproduce

  1. launch the app and in the command box, type:
    buyer n/Bobby p/91124444 e/bobby123@gmail.com
  2. first Bobby is added then type command:
    buyer n/Bobby p/91124443 e/bobby124@gmail.com

Expected:
a new Bobby contact created with different email and phone number as the first

Actual:
Error message:
"This buyer already exists in the address book"

Screenshot 2024-11-15 at 4.23.36 PM.png

This problem is significant as it impedes agents from adding multiple contacts which is very common to see their customers having the same name, and can be differentiated by their phone number and email. However, the app does not support this. Hence, creating flaws to this add contact feature.

This can be improved by checking whether if the number and email already exist, if so, then do not allow duplicate contact to be added rather than using the name as the deciding factor to differentiate different contacts, as phone number and email should not be the same for people.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions