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
471 stars 499 forks source link

Improve Annual Survey regarding incontinence supplies #4513

Open cielf opened 4 months ago

cielf commented 4 months ago

Summary

Adjust the values around incontinence supplies in the annual survey to include kits.

Why?

Time saved around annual reporting. Requested by NDBN

Details

This is similar to the recent changes regarding disposable diapers (and the accompanying issue regarding period supplies)

An "adult incontinence item" is an item that has a base item with a category that includes "adult" but does not include "wipes" (i.e. adult diapers or adult incontinence). See scope adult_incontinence in app/models/item.rb for current implementation.


For: The total number of adult incontinence supplies distributed

add together the total items distributed over the year that have the base category for adult incontinence, and the number of such items distributed in kits (which will be the number of those kits over the year* the number of those items in the kits.)


Add a field for the number of adults assisted per month. (after Adult incontinence supplies distributed)

This is the number of adults assisted with 'loose' (i.e. not in kit) items plus the number of adults assisted with kits. The number of adults assisted with 'loose' items is the number of those items distributed divided by the quantity-per-individual for those items (or 50, if no quantity is defined) / 12 The number of adults assisted with kit items is the number of kits that contain adult incontinence supplies distributed divided by the "quantity per individual" on the kit item. if there is no quantity per individual provided, assume that quantity is 1.


For: Adult incontinence supplies per adult per month

I think we can just divide the supplies per month by the number of adults assisted.

Image

Criteria for completion

(Note -- this might be a good fit for jade-who-worked-on-bringing diapers-in-kits into the numbers)

cielf commented 1 month ago

Blocked by 4283. Technically not blocked, but it makes sense to do them in that order.

jadekstewart3 commented 1 month ago

I'll take this!

cielf commented 1 month ago

Thanks!

github-actions[bot] commented 2 days ago

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.