Skip to content

Commit

Permalink
If importing voltron time as accepted, automatically set approved to …
Browse files Browse the repository at this point in the history
…hours
  • Loading branch information
rmaffitsancsoft committed Jul 5, 2024
1 parent 4c52fd3 commit 1da965d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dotnet/HQ.Server/Services/VoltronServiceV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ public VoltronServiceV1(HQDbContext context, ILogger<VoltronServiceV1> logger)
time.Hours = timeRecord.Hours;
time.Notes = timeRecord.Notes;

if (request.Status == TimeStatus.Accepted)
{
time.HoursApproved = time.Hours;
}

if (String.IsNullOrEmpty(time.Notes))
{
time.Notes = null;
Expand Down

0 comments on commit 1da965d

Please sign in to comment.