school-CS2103T / pe

0 stars 0 forks source link

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

Open guowei42 opened 1 year ago

guowei42 commented 1 year 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

soc-pe-bot commented 1 year ago

Your response not required for this bug as the team has accepted the bug as it is.