From 4ae78dec72bcd16a1519b08c6d20ad9946d5fc62 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 27 Feb 2025 13:05:16 +0000 Subject: [PATCH 1/4] remove www text on reps --- .gitignore | 9 ++++++++- components/case/representation/index.js | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 23848e18..fdf5dd65 100644 --- a/.gitignore +++ b/.gitignore @@ -31,4 +31,11 @@ docker*.yml # Polling pages/api/poll-queue.js -pages/polling.js \ No newline at end of file +pages/polling.js + +# dev apis to no include + +/pages/api/endpoint/getaccounts_api.js + + + diff --git a/components/case/representation/index.js b/components/case/representation/index.js index c694ea84..801b4c9a 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -1192,7 +1192,6 @@ let MakeRepresentation = (props) => {
- www {whichControl()}
From 74774ddae0b70761c3caa60a71915ab24271062f Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Mon, 24 Mar 2025 12:49:33 +0000 Subject: [PATCH 2/4] added statements and cater for end rep period date --- components/case/representation/index.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index 801b4c9a..624587f3 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -316,12 +316,9 @@ let MakeRepresentation = (props) => { ).setHours(23, 59, 59, 999) )), (finalCommentsDate = new Date( - new Date(detailsObj.pinswg_finalcommentsduedate).setHours( - 23, - 59, - 59, - 999 - ) + new Date( + detailsObj.pinswg_endofrepresentationperiod + ).setHours(23, 59, 59, 999) )), (statementDueDate = new Date( new Date( @@ -368,7 +365,8 @@ let MakeRepresentation = (props) => { currentView.caseReference.appealType != 846040019 && todaysDate >= startDate && todaysDate <= finalCommentsDate && - buildArr.push("Local Impact Report"); + buildArr.push("Local Impact Report"), + buildArr.push("Statement"); !isDNS && currentView.caseReference.appealType != 846040004 && From 8642608c642b204a5185eb8227ec63151bebca54 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Mon, 24 Mar 2025 16:07:08 +0000 Subject: [PATCH 3/4] amended display logic for startemtns to fix previous --- components/case/representation/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index 624587f3..877a34f0 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -365,7 +365,13 @@ let MakeRepresentation = (props) => { currentView.caseReference.appealType != 846040019 && todaysDate >= startDate && todaysDate <= finalCommentsDate && - buildArr.push("Local Impact Report"), + buildArr.push("Local Impact Report"); + + isLPA && + isDNS && + currentView.caseReference.appealType != 846040019 && + todaysDate >= startDate && + todaysDate <= finalCommentsDate && buildArr.push("Statement"); !isDNS && From 0ad58a59be6fb9b76b663f2a9d27fccaf92f1d74 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Tue, 25 Mar 2025 12:49:26 +0000 Subject: [PATCH 4/4] taking end date of dns fix --- components/case/representation/index.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index 877a34f0..41fdbb0e 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -779,10 +779,15 @@ let MakeRepresentation = (props) => { props.props.currentView.caseReference.currentReference, "pinswg_questionnaireduedate": detailsObj.pinswg_questionnaireduedate, - "pinswg_statementduedate": detailsObj.pinswg_statementduedate, - "pinswg_statementsduedate": detailsObj.pinswg_statementsduedate, + "pinswg_statementduedate": + detailsObj.pinswg_statementduedate || + detailsObj.pinswg_endofrepresentationperiod, + "pinswg_statementsduedate": + detailsObj.pinswg_statementsduedate || + detailsObj.pinswg_endofrepresentationperiod, "pinswg_finalcommentsduedate": - detailsObj.pinswg_finalcommentsduedate, + detailsObj.pinswg_finalcommentsduedate || + detailsObj.pinswg_endofrepresentationperiod, "pinswg_name": props.props.currentView.caseReference.currentReference, "firstname": props.props.accountDetails.accountDetails.firstname,