diff --git a/.gitignore b/.gitignore index 91dc1bbd..fdf5dd65 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,5 @@ pages/polling.js /pages/api/endpoint/getaccounts_api.js + + diff --git a/components/case/representation/index.js b/components/case/representation/index.js index dcb9f4cf..41fdbb0e 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -367,6 +367,13 @@ let MakeRepresentation = (props) => { todaysDate <= finalCommentsDate && buildArr.push("Local Impact Report"); + isLPA && + isDNS && + currentView.caseReference.appealType != 846040019 && + todaysDate >= startDate && + todaysDate <= finalCommentsDate && + buildArr.push("Statement"); + !isDNS && currentView.caseReference.appealType != 846040004 && todaysDate >= startDate && @@ -772,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,