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.
To reproduce: Have some supplies in Inventory and use the
clear
command on suppliersExpected: 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.
[original: nus-cs2103-AY2223S1/pe-interim#1030] [original labels: severity.Medium type.FunctionalityBug]