You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -70,7 +73,36 @@ public IActionResult GetDocuments([FromQuery] DocumentSearchFilterModel filter)
70
73
_logger.LogInformation("Dispatching to service: {Service}",_documentService.GetType());
71
74
vardocuments=_documentService.GetPage(filter);
72
75
76
+
// Transform all properties to lat/long for returned documents that have properties, this is required for the front end to properly display the property locations.
@@ -78,6 +82,13 @@ public IActionResult ExportManagementActivitiesOverview([FromBody] ManagementAct
78
82
returnNoContent();
79
83
}
80
84
85
+
// Transform all properties to lat/long for returned activities that have properties, this is required for the front end to properly display the property locations.
@@ -123,9 +134,38 @@ public IActionResult ExportManagementActivityInvoices([FromBody] ManagementActiv
123
134
returnNoContent();
124
135
}
125
136
137
+
// Transform all properties to lat/long for returned invoices that have properties, this is required for the front end to properly display the property locations.
// Transform all properties to lat/long for returned invoices that have properties, this is required for the front end to properly display the property locations.
Copy file name to clipboardExpand all lines: source/backend/api/Services/AcquisitionFileService.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ public List<AcquisitionFileExportModel> GetAcquisitionFileExport(AcquisitionFilt
123
123
MinistryProject=fileProperty.file.Projectis not null?$"{fileProperty.file.Project.Code}{fileProperty.file.Project.Description}":string.Empty,
124
124
CivicAddress=(fileProperty.fp?.Propertyis not null&&fileProperty.fp.Property.Addressis not null)?fileProperty.fp.Property.Address.FormatFullAddressString():string.Empty,
125
125
GeneralLocation=(fileProperty.fp?.Propertyis not null)?fileProperty.fp.Property.GeneralLocation:string.Empty,
126
-
Pid=fileProperty.fpis not null&&fileProperty.fp.Property.Pid.HasValue?fileProperty.fp.Property.Pid.ToString():string.Empty,
126
+
Pid=fileProperty.fpis not null&&fileProperty.fp.Property.PidFormatted!=null?fileProperty.fp.Property.PidFormatted:string.Empty,
127
127
Pin=fileProperty.fpis not null&&fileProperty.fp.Property.Pin.HasValue?fileProperty.fp.Property.Pin.ToString():string.Empty,
128
128
AcquisitionFileStatusTypeCode=fileProperty.file.AcquisitionFileStatusTypeCodeNavigationis not null?fileProperty.file.AcquisitionFileStatusTypeCodeNavigation.Description:string.Empty,
129
129
FileFunding=fileProperty.file.AcquisitionFundingTypeCodeNavigationis not null?fileProperty.file.AcquisitionFundingTypeCodeNavigation.Description:string.Empty,
0 commit comments