nmrs-nigeria / openmrs-module-nigeriaemr

NMRS NDR Extration Module for NigeriaMRS
1 stars 15 forks source link

NMRS does not allow Next Appointment Dates for backlog entries to Save #107

Closed brightoibe closed 4 years ago

brightoibe commented 4 years ago

JavaScript Validation code for Next Appointment Date compares the Next Appointment Date with the "Current System Date" instead of with the "Visit Date" on the form. This prevented backlog entries from Saving.

brightoibe commented 4 years ago

var val_encounterDate = getValue('encounterDate.value');

Changed to

var val_encounterDate = getValue('visit_date.value');

Don't forget to change the "id" of the "Visit Date" field to

Visit Date