human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

Ability to deactivate kits

Open cielf opened this issue 3 years ago • 0 comments

Summary

Provide the ability to deactivate kits

Justification

Note from Sean: "We get asked about editing and deleting kits. Obviously shouldn't allow editing but some sort of soft delete is probably needed?"

See also: https://human-essential.slack.com/archives/CG1NL2MRC/p1656426376631529

Details

  • Allow kits to be deactivated.
  • Before deactivating, user will be advised that the inventory of items in the kits will be returned to the inventory at large.
  • On deactivation the components for the kits at each storage location will be returned to the inventory of the corresponding items at that location.
  • The deactivated kits will no longer appear in any item lists, except the "inventory and items" list when the "include inactive items" filter is on, but can be restored (as items can be now.)
  • Add "include inactive kits" to the kits page filter
  • inactive kits can be restored from the kits page or the items page
  • before restoring, user will be advised that the kit is being restored with 0 inventory

Criteria for completion

  • [ ] tests to support the described functionality
  • [ ] Provide buttons for deactivation of kits on kits page and items page
  • [ ] Before deactivation, provide
  • [ ] Provide "include inactive kits" functionality in kit filter on kits page
  • [ ] Deactivation of kits returns kit inventory levels to items
  • [ ] Provide ability to restore kits (for deactivated kits only) on kits page and items page

cielf avatar Aug 04 '22 16:08 cielf