rubyforgood / human-essentials

Human Essentials is an inventory management system for diaper, incontinence, and period-supply banks. It supports them in distributing to partners, tracking inventory, and reporting stats and analytics.
https://humanessentials.app
MIT License
436 stars 449 forks source link

[PACKS] #2 Add reporting units to items #4397

Open cielf opened 3 weeks ago

cielf commented 3 weeks ago

Summary

Add custom request units at item level (assumes [PACKS] #0 is complete and merged, which will give us all the appropriate fields on the database and some examples in the seed)

Why

This is step #2 of adding the ability to specify "packs" versus "individual" for requests

Details

Add custom request units used to the item on edit, show, and list.

a) On item new/edit (Inventory|Items&Inventory|New Item or Edit the specific item)

Iff the bank is using customized request units:

Add a "additional custom request units (e.g. packs)" field Multi-Select additional request units, if any (from the list specified at org level)

Screenshot hint for placement

Image

b) Item show

The item show does not currently show every field in the item, only a subset plus the levels for each storage location. We're splitting that into a separate issue (PACKS 12), as it is not crucial for release and requires a slight redesign.

c) Item list

Iff the organization is using customized request units, add a column to the list that shows the customized request units used on each item

Screenshot hit for placement

Image

N.B.

All of the UI changes for PACKS must be implemented behind a flipper flag "enable_packs"

Criteria for completion

Background

The following sections have been identified as required for the PACKS implementation. The necessary fields and seed elements are implemented in [PACKS]#0

Image

scooter-dangle commented 3 weeks ago

tagging @sean-dickinson to get Github to let me assign him 🤞 EDIT: nerp. that dint work

sean-dickinson commented 3 weeks ago

me + @ibulmer

awwaiid commented 3 weeks ago

Re-opening until we do manual QA leading up to this (so waiting for packs-1)