Feature - Internal Controls - Audit and Maintenance Dates

We will include a drop down on the top with three options:

  • No Audits Required
  • Select specific audit dates (this is what we have now)
  • Select recurrence date

  • If the user chooses “No Audits Required” , then the rest of the form is greyed out and is not mandatory anymore.
  • If the user chooses “Select specific dates”, then we show what we have now (the specific dates)
  • If the user chooses “Select recurrence date”, then we need to show a calendar plugin that allows the user to define:

1/ First Audit Date (they would select a month and day)
2/ Recurrence, which will be two variables: Frequency (a numeric value in between one and 365) and a Period (Day, Week, Month, Quarter, Semester)

Note to devs: to the backend send the calculated dates in which eramba needs to create records, so we can re-use the backend logic we have today. The backend logic needs to be updated as there might be a bug, if it is about to insert an audit record on a day that does not exist (leap year) it must move the audit day to the next valid day.

As the user selects this options you need to show the number of audit records that eramba will create for this calendar year:

“Based on your settings, we will create X audit records for this calendar year”

Note: this same logic applies to maintenances