Skip to content

Commit

Permalink
Switched back to project status so PSR List looks correct historically
Browse files Browse the repository at this point in the history
  • Loading branch information
rmaffitsancsoft committed Jun 11, 2024
1 parent 57c85b2 commit 7b39c94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.

This file was deleted.

3 changes: 2 additions & 1 deletion src/dotnet/HQ.Server/Data/Models/ProjectStatusReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public class ProjectStatusReport : Base
public decimal? BookedTime { get; set; }
public decimal? BilledTime { get; set; }
public decimal? PercentComplete { get; set; }
public ProjectStatusReportStatus Status { get; set; }
// Project status at time PSR was generated
public ProjectStatus Status { get; set; }
public DateOnly BookingStartDate { get; set; }
public DateOnly BookingEndDate { get; set; }
public Period BookingPeriod { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public ProjectStatusReportServiceV1(HQDbContext context)
psr.ProjectId = project.Id;
psr.ProjectManagerId = project.ProjectManagerId;
psr.BookingPeriod = project.BookingPeriod;
psr.Status = project.Status;

switch (project.BookingPeriod)
{
Expand Down

0 comments on commit 7b39c94

Please sign in to comment.