OpenTechStrategies / lisc-ttm

LISC TTM code. See https://ttm.lisc-chicago.org/.
GNU Affero General Public License v3.0
1 stars 4 forks source link

Enlace: new attendance-hours report #160

Closed cecilia-donnelly closed 8 years ago

cecilia-donnelly commented 8 years ago

@kevinrak9 will send us a mockup, but essentially this will be a new report that will look similar to the current enrollment report. The goal is to report on the number of youth-hours from a start date to an end date, sorted by one or many programs (checkbox interface). Some funders need to know the number of service hours performed over a period of time.

Notes to self: this involves attendance and probably start/end times for sessions. I think I have a helper function for calculating attendance hours already, though.

cecilia-donnelly commented 8 years ago

I think the general steps for this one are as follows:

@kevinrak9, does that final bullet point look like the right information to show in the report?

cecilia-donnelly commented 8 years ago

@kevinrak9 adds:

As I've thought more about it, I do think making the attendance viewing selected by session rather than program would make sense. It would be great if there was also a "select all" feature, so we can see everything at a glance.

Sounds like a plan!

cecilia-donnelly commented 8 years ago

20160113_144128 20160113_144138

cecilia-donnelly commented 8 years ago

@kevinrak9 this is mostly working, though it needs some work on the UI. Here's a couple screenshots showing my local copy. The first shows the selection menu:

screenshot from 2016-02-15 13-09-55

And this one has the results:

screenshot from 2016-02-15 13-10-00

It needs these edits:

kevinrak9 commented 8 years ago

@cecilia-donnelly Sorry for not responding earlier. This is looking good! One more thing that would be really helpful is totaling up enrollment. The existing program enrollment page does that for total enrollments and unduplicated participants. Would that be feasible to do here? Thanks!

PS: I realize I'm commenting on Friday afternoon, no rush to respond :)

cecilia-donnelly commented 8 years ago

@kevinrak9 should be totally feasible to include total enrollment, yup! Thanks for taking a look at this.

cecilia-donnelly commented 8 years ago

Add a toggle switch that says "exclude dropped youth" or similar, which would remove their enrollment and dosage hours from the totals. This involves conditional changes to the queries in dosage_percentage.php and the unique enrollment query. See ee4ed60 for some guidance on this. I think the toggle wouldn't need to be too complex, since I'd just exclude all attendance and all absences for students who dropped out of each session (when calculating total dosage hours).

I define "a dropped youth" as "a youth whose dropped date is before the end date of the search."