Add carried-over jobs section to Daily Board and fix tip visibility
Non-terminal jobs scheduled for past dates now appear in a red 'Carried Over' section at the top of today's board so they can't silently disappear. Also added alert-permanent to the board tip so the layout doesn't auto-dismiss it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -187,4 +187,22 @@ public class JobRepository : Repository<Job>, IJobRepository
|
||||
.ThenInclude(i => i.PrepServices.Where(p => !p.IsDeleted))
|
||||
.FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public async Task<List<Job>> GetOverdueScheduledJobsAsync()
|
||||
{
|
||||
var today = DateTime.Today;
|
||||
return await _context.Jobs
|
||||
.Include(j => j.Customer)
|
||||
.Include(j => j.JobStatus)
|
||||
.Include(j => j.JobPriority)
|
||||
.Include(j => j.AssignedUser)
|
||||
.Where(j => j.ScheduledDate.HasValue
|
||||
&& j.ScheduledDate.Value.Date < today
|
||||
&& !j.IsDeleted
|
||||
&& !j.JobStatus.IsTerminalStatus)
|
||||
.OrderBy(j => j.ScheduledDate)
|
||||
.ThenBy(j => j.JobNumber)
|
||||
.ToListAsync();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user