PMCORE-3136

This commit is contained in:
Andrea Adamczyk
2021-08-19 16:36:29 -04:00
parent d728f563b7
commit 6907587402
8 changed files with 710 additions and 4 deletions

View File

@@ -388,7 +388,7 @@ class Delegation extends Model
*/
public function scopeAtRisk($query, $now)
{
return $query->where('DEL_RISK_DATE', '>=', $now)->where('DEL_TASK_DUE_DATE', '>=', $now);
return $query->where('DEL_RISK_DATE', '<=', $now)->where('DEL_TASK_DUE_DATE', '>=', $now);
}
/**
@@ -401,7 +401,7 @@ class Delegation extends Model
*/
public function scopeOverdue($query, $now)
{
return $query->where('DEL_TASK_DUE_DATE', '>', $now);
return $query->where('DEL_TASK_DUE_DATE', '<', $now);
}
/**