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

Merge line items at request save. Not just for children anymore. () #4394

Closed cielf closed 2 weeks ago

cielf commented 3 weeks ago

Summary

In order to support the packs, we want the request items to be collapsed at save, so the banks only see one line per item in the request.

Details

We already do this for child requests.
A/ But, if you do a quantity request (sign in as verified@example.com, Quantity, enter 3 items, 2 of which are the same, and you'll see what's happening now) the requested items are not collapsed into one Request Item B/ Similar for individual requests.

Those lines are "request items"
On save, the request items should be collapsed so that there is only one request item per item.

Criteria for completion

patelkrunal31 commented 3 weeks ago

I will take that.