AFG-Polio-Data / APMIS-Project

APMIS (Afghanistan Polio Management Information System) is an supplemental Immunization Activities management system to manage the vaccination activities in the country.
https://test.afghanistan-apmis.com
GNU General Public License v3.0
4 stars 7 forks source link

Prevent mobile users from adding forms based on form date #574

Closed bnygren closed 2 months ago

bnygren commented 7 months ago

Need: If a campaign's form has passed its expiry date there should not be an option in the mobile app to create a form with a later data collection date for the old campaign, regardless of last sync.

Reason: Users are accidentally creating new forms and submitting new data in old campaigns.

For example: User participates in Apr NID starting April 1. He uses an ICM Team Monitoring H2H form that that has a 10 day expiry. This form is no longer active on 11 April though he can still submit forms collected during the campaign after April 10 since he may not have been able to earlier (this is ok). But on 5 May he goes to a training for May SNID (Training). He accidentally creates a new form in Apr NID not May SNID (Training) and submits false data into Apr NID.