-
Notifications
You must be signed in to change notification settings - Fork 242
Add Config to have budget bar hard pledges use appointment date instead of pledge sent at #3348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few notes
…nt into colin/appt-date
else | ||
patients = base.where(pledge_sent_at: start_of_period..) | ||
end | ||
patients = patients.or(base.where(fund_pledged_at: start_of_period..)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line will catch patients who are pledged this period with an appointment in later periods, so we need to add change the budget bar helper to mark them as soft pledged.
Actually as i'm thinking it over, how should we handle the soft pledges here? should soft pledges appear in the current period (when the pledge is created) or the one tied to the appointment date?
I rule and have completed some work on Case Manager that's ready for review!
Per request of fund, make it so that hard pledges (green in the pledge bar) get tied to appointment date rather than pledge sent at.
This pull request makes the following changes:
Patient.pledged_status_summary
to utilizeno view changes
It relates to the following issue #s:
For reviewer:
feature
if it contains a feature, fix, or similar. This is anything that contains a user-facing fix in some way, such as frontend changes, alterations to backend behavior, or bug fixes.dependencies
if it contains library upgrades or similar. This is anything that upgrades any dependency, such as a Gemfile update or npm package upgrade.