nus-cs2103-AY2223S1 / pe-dev-response

0 stars 0 forks source link

Clearing from suppliers does not remove their respective supplies from Inventory secion #1202

Open nus-pe-bot opened 2 years ago

nus-pe-bot commented 2 years ago

To reproduce: Have some supplies in Inventory and use the clear command on suppliers

Expected: After clearing, the respective items from inventory should be cleared as well. or at least after clearing, adding a different supplier supplying the same item should modify the current or add a new item in inventory.

Actual: Supplies from the Inventory also get's removed since they contain the cleared suppliers name. This is despite the fact that it is not allowed to delete a supplier when there is inventory from the supplier.

Even if suppose its by design to let them remain past clear command, afterwards, adding another supplier providing the same supply and trying to add their supply to Inventory is not allowed. i.e. changing suppliers through deleting and adding a different supplier.

image.png


[original: nus-cs2103-AY2223S1/pe-interim#1030] [original labels: severity.Medium type.FunctionalityBug]

hauchongtang commented 1 year ago

Team's Response

No details provided by team.

Duplicate status (if any):

--