nus-cs2103-AY2324S1 / pe-dev-response

0 stars 0 forks source link

Cannot add customer with same phone number #5017

Open nus-se-script opened 10 months ago

nus-se-script commented 10 months ago

In reality, we can have changing phone numbers and numbers are recycled. Disallowing same phone number is a bit troublesome especially if there is a case where customers can have the same phone number

addcust n/Tim Cook the second p/91234567 e/cook@apple.com b/2500000 c/bright

Cannot add if tim cook decides to replace his phone number and two years later, Maria has his phone number registered with the same number

addcust n/maria p/91234567 e/cook@apple.com b/2500000 c/bright


[original: nus-cs2103-AY2324S1/pe-interim#4323] [original labels: severity.Low type.FeatureFlaw]

Chrainx commented 10 months ago

Team's Response

This is expected behaviour as if the new customer has the same phone number with the existing customer, as you mentioned the phone number of the existing phone number has been replaced and this can help the user to identify there are outdated information and can delete or edit the customer.

Duplicate status (if any):

--