Remove tests from investigations when their corresponding invoice items are removed

Description

If an invoice item linked to an investigation is being removed, and the investigation:

  • hasn't been submitted, and only one invoice item is associated with the investigation:

    1. Display a confirmation e.g. "This item ordered tests A, B and C. The investigation will also be removed. Proceed?"

    2. On confirmation, remove the investigation

  • hasn't been submitted, and multiple invoice items are associated with the investigation:

    1. Display a confirmation e.g. "This item ordered tests A, B and C. These will be removed from the investigation. Proceed?"

    2. On confirmation. remove the tests associated with the product linked to the item

  • has been submitted:

    1. Display a confirmation e.g. "This item ordered tests A, B, and C. Cancel the investigation"?

    2. On confirmation, cancel the investigation

Environment

None

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure