Skip to content
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

Adding A Historical Visits MUST Not Allow Use Of Today's Date or a fu… #111

Open
wants to merge 1 commit into
base: vrvu
Choose a base branch
from

Conversation

sherrif10
Copy link
Collaborator

@sherrif10 sherrif10 commented Feb 5, 2025

…ture date to submit this visit

https://sd-vxnaid.atlassian.net/browse/VRVU-287 cc @druchniewicz

What is fixed.

  • Historical Visits Overview button name change to Visit History
  • Historical Data page name change to Past Visits
  • the first 2 letters of NIN can be matched with the gender: For example, if the NIN starts with CM, the gender default should be male, and if user selects female, the system should flag.

@sherrif10 sherrif10 changed the title Adding a Historical Visits MUST not allow use of today's date or a fu… Adding A Historical Visits MUST Not Allow Use Of Today's Date or a fu… Feb 5, 2025
calendar.add(Calendar.DAY_OF_YEAR, -1)
datePicker.maxDate = calendar.timeInMillis
// historical visits are restricted to dates strictly before today.
datePicker.updateDate(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it required? we just want set "yesterday" as max date in calendar - looks like this "calendar.add(Calendar.DAY_OF_YEAR, -1)" does the trick and rest of code is not needed? but correct me if I'm wrong

@@ -469,7 +469,7 @@
<string name="visits_overview_client_name_column_label">Child Name</string>
<string name="visits_overview_details_visit_date_label">Visit Date:</string>
<string name="visits_overview_details_scheduled_visit_date_label">Scheduled Visit Date:</string>
<string name="visits_overview_details_historical_visit_date_label">Historical Visit Date:</string>
<string name="visits_overview_details_historical_visit_date_label">Today\'s Visit Date:</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this label change does not make sense. This label is displayed in historical visits so it will be shown only for past visits so label "Today's Visit date" does not make sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants