rubyforgood / pantry_scheduler

MIT License
7 stars 13 forks source link

Send alert if client is out of usda certification #45

Open pollygee opened 7 years ago

pollygee commented 7 years ago

When doing check-in, we need an alert window to show when we don't have a date or if the date is past for a client is usda_certified on the client is true.

pollygee commented 7 years ago

And give the volunteer an opportunity to edit the UDDA date. During the check-in process the volunteer will need to be notified that the client is out of cert, so they can get the paperwork and have them re-certify.

rongxanh88 commented 7 years ago

Hi @pollygee, I found this repo and I am looking to contribute to my first open source project! If no one is currently working on this, could I take it on? Thanks!

pollygee commented 7 years ago

Yay! Thanks and welcome! I'll add you to the repo so you can create a branch and PR instead of having to fork it, that makes it easier to review as well. When you accept the invite please assign this ticket to yourself so others know it has an owner!

We have a Slack channel, you can join us here if you like https://rubyforgood.herokuapp.com/ and join the #pantry channel. That makes getting help and questions answered easier. But no pressure!

Each client has to sign a paper to certify for USDA food. When the sign the paper we will enter that date as their cert date in the database. When a volunteer checks a client in, they should notice that the USDA is more than 1 year old and ask them to sign a new paper (re-certify).

What I would like here for this ticket is for an alert box to pop up when a volunteer clicks "check in" for a client and their cert date is from more than 1 year ago. That way the volunteer will def notice!

So conditions that should trigger the alert window - Client has usda_qualifier true AND the usda_cert_date is nil Client has usda_qualifier true AND the usda_cert_date is more than 1 year ago

Let me know here or in Slack if you need any more clarification on that or if there's anything else we can help with. Thanks again and welcome!!

rongxanh88 commented 7 years ago

Hi Polly,

Cool thanks. I'm looking at this now. Actually, I'm paring with a couple of other folks so hopefully we get this done today.

Bao

rongxanh88 commented 7 years ago

Hi @pollygee ,

I got the feature done, can you add me as a collaborator so I can push my branch up?

Thanks! Bao

pollygee commented 7 years ago

Awesome @rongxanh88 ! Thanks so much. Sorry about that I thought I had added you, I just tried to invite you again let me know if you don't get it?