Skip to content

Commit

Permalink
message wording changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vks333 authored and samgibsonmoj committed Jan 29, 2025
1 parent cfcbe18 commit 05c04b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public async Task<Result<ParticipantSummaryDto>> Handle(Query request, Cancellat

summary.IsRightToWorkRequired = rtwSettings.NationalitiesExempted.Any(s => s.Equals(summary.Nationality!, StringComparison.OrdinalIgnoreCase)) == false;

//Should it retrieve for logged in User(Custody SW or Community SW)?
summary.Pris = await unitOfWork.DbContext.PRIs
.Where(pa => pa.ParticipantId == request.ParticipantId)
.ProjectTo<PriSummaryDto>(mapper.ConfigurationProvider)
Expand Down
14 changes: 7 additions & 7 deletions src/Server.UI/Pages/Participants/Components/CaseSummary.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,19 +310,19 @@ void SetPriDueWarning()
{
if(_latestPRI is null)
{
string _noPriInfo = ParticipantSummaryDto.LocationType switch
_noPriInfo = ParticipantSummaryDto.LocationType switch
{
{ IsCustody: true } => "No PRI has been created.",
{ IsCommunity: true } => "Pre-Release Inventory is not available in the community.",
_ => string.Empty
{ IsCustody: true, IsMapped: true} => "No PRI has been created.",
{ IsCommunity: true } => "Not available in the community.",
_ => "Not available in this location."
};
}
else if (_latestPRI.ActualReleaseDate.HasValue)
{

DateOnly _priTTGDueDate = _latestPRI.ActualReleaseDate.Value.AddDays(28);
DateOnly _priTTGDueDate = _latestPRI.ActualReleaseDate.Value.AddMonths(1);
_priDueInfo = _priTTGDueDate.Humanize();
_priDueTooltipText = String.Format("Due {0}", _priTTGDueDate);
_priDueTooltipText = String.Format("Through the Gate (TTG) Due {0}", _priTTGDueDate);

int _priTTGDueInDays = _priTTGDueDate.DayNumber - DateOnly.FromDateTime(DateTime.UtcNow.Date).DayNumber;
switch (_priTTGDueInDays)
Expand All @@ -339,7 +339,7 @@ void SetPriDueWarning()
}
else
{
_priDueInfo = "Actual Release date not provided yet.[Or in this case, should we calculate based on Expected Release date]";
_priDueInfo = "No Actual Release date provided.";
}
}

Expand Down

0 comments on commit 05c04b1

Please sign in to comment.