** 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
- launch the app and in the command box, type:
buyer n/Bobby p/91124444 e/bobby123@gmail.com
- 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"

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.
** 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
buyer n/Bobby p/91124444 e/bobby123@gmail.combuyer n/Bobby p/91124443 e/bobby124@gmail.comExpected:
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"
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.