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] # 6 Add custom request units to partner's request list #4401

Open cielf opened 3 weeks ago

cielf commented 3 weeks ago

Summary

Add custom request units to partner's request list .

Why

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

Details

Include the units in the requested items lists on the partner dashboard and in the request history.
format: quantity unit -- description e.g. 10 packs -- Kid's Size 3 But if there are no custom units for that item or the 'default unit' is chosen, then merely eliminate the unit 10 -- Strollers

Image

N.B.

All of the 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. These should be implemented in numerical order.

Image

awwaiid commented 3 weeks ago

Myself and @FelipeGithub24 will tackle this!

FelipeGithub24 commented 3 weeks ago

Awesome...!

awwaiid commented 3 weeks ago

@cielf problem -- there is a "number of items requested" column, do you know what we should do with that?

cielf commented 3 weeks ago

Ah -- I see ... I would still just count up the numbers .

cielf commented 3 weeks ago

Because the partner is thinking of the pack as an item, yes?

cielf commented 3 weeks ago

It's not perfect, but anything else we could do would be very complicated. I'm not sure what people use that column for. Let's try that and if people are confused by it we will do something else [We can confirm at the next stakeholder meeting.]

awwaiid commented 3 weeks ago

PR merged over at https://github.com/rubyforgood/human-essentials/pull/4416, leaving this open while we do some review!