Open nus-pe-bot opened 14 hours ago
Thanks for raising this. Indeed, it didn't occur to us. But now that we have thought about it, we still feel that this is a very rare case that users will face as we feel this will be the possible workflow in general:
Its also rare to delete the entire insurance plan after claims have been added (unless the client no longer uses said plan, in which case the claim ids should not be reused anyways).
As such we feel that the workflow presented in the bug report will not occur often and as such the bug, while accepted should be considered a Severity.Low type of bug.
--
Steps to Reproduce:
Details: When deleting a insurance that contains a claim with a certain ID, and we try to add this insurance type again, then add a claim with the same ID, this is not allowed. Seems like there is a bug within the system that keeps the Claim ID to detect.
Solution: Check the code for any potential bug during the deleteInsurance process, especially in terms of the claims that are stored for that Insurance.
[original: nus-cs2103-AY2425S1/pe-interim#3981] [original labels: severity.Medium type.FunctionalityBug]