diff --git a/app/src/api/services/building/planningData.ts b/app/src/api/services/building/planningData.ts index 335ca39b..04636a7e 100644 --- a/app/src/api/services/building/planningData.ts +++ b/app/src/api/services/building/planningData.ts @@ -3,7 +3,7 @@ import db from '../../../db'; export async function getBuildingPlanningDataById(id: number) { try { return await db.any( - 'SELECT building_properties.uprn, building_properties.building_id, planning_data.description, planning_data.status, planning_data.uprn, planning_data.planning_application_id, planning_application_link, to_char(planning_data.decision_date, \'YYYY-MM-DD\') AS decision_date, to_char(planning_data.last_synced_date, \'YYYY-MM-DD\') AS last_synced_date, planning_data.data_source, planning_data.data_source_link \ + 'SELECT building_properties.uprn, building_properties.building_id, planning_data.description, planning_data.status, planning_data.uprn, planning_data.planning_application_id, planning_application_link, to_char(planning_data.registered_with_local_authority_date, \'YYYY-MM-DD\') AS registered_with_local_authority_date, to_char(planning_data.decision_date, \'YYYY-MM-DD\') AS decision_date, to_char(planning_data.last_synced_date, \'YYYY-MM-DD\') AS last_synced_date, planning_data.data_source, planning_data.data_source_link \ FROM building_properties \ INNER JOIN planning_data ON \ building_properties.uprn = planning_data.uprn WHERE building_id = $1', diff --git a/app/src/frontend/building/data-components/planning-data-entry.tsx b/app/src/frontend/building/data-components/planning-data-entry.tsx index 4f7706f1..fc9c8ac5 100644 --- a/app/src/frontend/building/data-components/planning-data-entry.tsx +++ b/app/src/frontend/building/data-components/planning-data-entry.tsx @@ -55,7 +55,7 @@ const PlanningDataOfficialDataEntry: React.FC
Planning application status is visualised using data uploaded by local authorities to the {data[0]["data_source"]}
Planning application ID: {data[0]["planning_application_id"]}
-
Date registered by the planning authority (validation date): TODO
+
Date registered by the planning authority (validation date): {data[0]["registered_with_local_authority_date"]}
Decision date: {data[0]["decision_date"].toString()}
Description of proposed work:
Most recent update by data provider: {data[0]["decision_date"]}