Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Make Requests by Child #102

Closed
seanmarcia opened this issue Mar 30, 2019 · 2 comments
Closed

Make Requests by Child #102

seanmarcia opened this issue Mar 30, 2019 · 2 comments
Assignees

Comments

@seanmarcia
Copy link
Member

We need a second type of request.

We need to allow for the requests by children -- a user based request where, rather than selecting a bulk number of diapers, they select the children who they are requesting diapers for in a given month and the system auto completes the request. For example, they have 10 kids who wear size 1 diapers, then the system will automatically request 500 size 1 diapers in the request since the diaper bank gives 50 size 1 per child.

We should have an active flag on each child and on the checklist of children all the children who are active are automatically set to request for.

@kkuchta
Copy link
Collaborator

kkuchta commented Apr 1, 2019

This is mostly-functional in the families branch:

  • UI to select children (/family_requests/new)
  • Submitting creates a FamilyRequest in the partner's db
  • Submitting makes a call to the bank's api (to a new endpoint that creates a request from a list of children + item types)
  • Create a PartnerRequest in the partner's db based on the response to that api
  • Actually add a link to this page somewhere.

Also todo are specs and any UI cleanup we want.

@kkuchta
Copy link
Collaborator

kkuchta commented Apr 1, 2019

Apr-01-2019 11-12-19
(The "Item Needed" column is the id of the item)

albertchae pushed a commit to rubyforgood/human-essentials that referenced this issue Mar 7, 2021
For issue [102](rubyforgood/partner#102) add
generated code for a child resource.
albertchae pushed a commit to rubyforgood/human-essentials that referenced this issue Mar 7, 2021
For issue [102](rubyforgood/partner#102) add
generated code for a child resource.
albertchae pushed a commit to rubyforgood/human-essentials that referenced this issue Mar 13, 2021
For issue [102](rubyforgood/partner#102) add
generated code for a child resource.
albertchae pushed a commit to rubyforgood/human-essentials that referenced this issue Mar 13, 2021
For issue [102](rubyforgood/partner#102) add
generated code for a child resource.
albertchae pushed a commit to rubyforgood/human-essentials that referenced this issue Mar 13, 2021
For issue [102](rubyforgood/partner#102) add
generated code for a child resource.
albertchae pushed a commit to rubyforgood/human-essentials that referenced this issue Mar 13, 2021
For issue [102](rubyforgood/partner#102) add
generated code for a child resource.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants