Skip to content

Commit

Permalink
♻️ refactor(Status Rules): unncesary validation remove
Browse files Browse the repository at this point in the history
  • Loading branch information
MetalPrime committed May 10, 2024
1 parent bea2c0a commit 4f587ef
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,9 @@ function validateDeliverableStatus(canChangeStatus) {
}
}

//console.log("newExpectedYearCondition", newExpectedYear != "-1");
// Validate if the current cycle year is different or equal to the year expected to active On going status
if((expectedYear != currentCycleYear) && (newExpectedYear != "-1") && (isAdmin !== true) ){
if((expectedYear != currentCycleYear) && (isAdmin !== true) ){
$statuses.find('option[value="2"]').prop("disabled", true); // Disable On-going
} else {
$statuses.find('option[value="2"]').prop("disabled", false); // Enable On-going
Expand Down

0 comments on commit 4f587ef

Please sign in to comment.