Skip to content

Commit

Permalink
Minor update on script
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashanthi-Sivanarayana committed Jul 23, 2024
1 parent fe1b833 commit 51b7999
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ OFM.Expense.Form = {
var currentDate = new Date();
if (startDate != null) {
if (startDate < currentDate) {
formContext.ui.setFormNotification("Start date cannot a past date.", "ERROR", "startdate");
formContext.ui.setFormNotification("Start date cannot be a past date.", "ERROR", "startdate");
// Clear end date field
formContext.getAttribute("ofm_start_date").setValue(null);
}
Expand All @@ -124,7 +124,7 @@ OFM.Expense.Form = {
}
if (endDate != null) {
if (endDate < currentDate) {
formContext.ui.setFormNotification("End date cannot a past date.", "ERROR", "enddate");
formContext.ui.setFormNotification("End date cannot be a past date.", "ERROR", "enddate");
// Clear end date field
formContext.getAttribute("ofm_end_date").setValue(null);
}
Expand Down

0 comments on commit 51b7999

Please sign in to comment.