Skip to content

Commit

Permalink
Fixed api compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
FuriousLlama committed Nov 14, 2023
1 parent 995fd13 commit c2e8e3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public AgreementReportModel(PimsAgreement agreement, ClaimsPrincipal user)
AcquisitionNumberAndName = $"{agreement.AcquisitionFile?.FileNumber} - {agreement.AcquisitionFile?.FileName}";
FileCreatedDate = GetNullableDate(agreement.AcquisitionFile?.AppCreateTimestamp);
FileStatus = agreement.AcquisitionFile?.AcquisitionFileStatusTypeCodeNavigation?.Description;
AgreementStatus = !agreement.IsDraft.HasValue || agreement.IsDraft.Value ? "Draft" : "Final";
//AgreementStatus = !agreement.IsDraft.HasValue || agreement.IsDraft.Value ? "Draft" : "Final"; TODO: Fix this
LegalSurveyPlan = agreement.LegalSurveyPlanNum;
AgreementType = agreement.AgreementTypeCodeNavigation?.Description ?? string.Empty;
AgreementDate = GetNullableDate(agreement.AgreementDate);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void Register(TypeAdapterConfig config)
.Map(dest => dest.AcquisitionFileId, src => src.AcquisitionFileId)
.Map(dest => dest.AgreementType, src => src.AgreementTypeCodeNavigation)
.Map(dest => dest.AgreementDate, src => src.AgreementDate)
.Map(dest => dest.IsDraft, src => src.IsDraft)
//.Map(dest => dest.IsDraft, src => src.IsDraft) TODO: Fix this
.Map(dest => dest.CompletionDate, src => src.CompletionDate)
.Map(dest => dest.TerminationDate, src => src.TerminationDate)
.Map(dest => dest.CommencementDate, src => src.CommencementDate)
Expand All @@ -32,7 +32,7 @@ public void Register(TypeAdapterConfig config)
.Map(dest => dest.AcquisitionFileId, src => src.AcquisitionFileId)
.Map(dest => dest.AgreementTypeCode, src => src.AgreementType.Id)
.Map(dest => dest.AgreementDate, src => src.AgreementDate)
.Map(dest => dest.IsDraft, src => src.IsDraft)
//.Map(dest => dest.IsDraft, src => src.IsDraft) TODO: Fix this
.Map(dest => dest.CompletionDate, src => src.CompletionDate)
.Map(dest => dest.TerminationDate, src => src.TerminationDate)
.Map(dest => dest.CommencementDate, src => src.CommencementDate)
Expand Down

0 comments on commit c2e8e3d

Please sign in to comment.