nus-cs2113-AY1920S2 / pe-dev-response

0 stars 0 forks source link

Unable to detect duplicates #663

Open nus-pe-bot opened 4 years ago

nus-pe-bot commented 4 years ago

3d4b3e2e514a2bef9be7d142de16921.png Beef with the same expiry date was added twice. It would be better to simply add the amount in the original entry.


[original: nus-cs2113-AY1920S2/pe-interim#665]

jinfayap commented 4 years ago

Team's Response

Do take note that the beef entry has the same name and expiry. But you have to take note that the price of these two entries are different. One $13.5, One $70.

With two different objects, how to even merge them together?

image.png

It is also stated in the notable behavior that only same name(case-insensitive), same price and expiry will be merged together.

image.png

In the UG has stated that the price is the unit cost of a single quantity of an ingredient.

Duplicate status (if any):

--