Merged PR 1162: added ishare id and rep end date to 2359

added ishare id and rep end date to 2359

Related work items: #7960, #11212, #11245, #11257
This commit is contained in:
Robert Bond
2024-05-24 16:06:35 +00:00
3 changed files with 69 additions and 35 deletions
+13 -13
View File
@@ -419,16 +419,16 @@ export const createRepPDFBlob = async (
let whichLocation = let whichLocation =
repName.indexOf("_IP_") > 0 repName.indexOf("_IP_") > 0
? "Interested Party Representations" ? "846040005"
: repName.indexOf("_Statement_") > 0 : repName.indexOf("_Statement_") > 0
? "Main Party Statements" ? "846040002"
: repName.indexOf("_Questionnaire_") > 0 : repName.indexOf("_Questionnaire_") > 0
? "Main Party Questionnaire" ? "846040001"
: repName.indexOf("_Comments") > 0 : repName.indexOf("_Comments") > 0
? "Main Party Comments" ? "846040003"
: repName.indexOf("_Impact") > 0 : repName.indexOf("_Impact") > 0
? "Main Party Comments" ? "846040001"
: "default"; : "846040002";
const tags = { const tags = {
containerid: containerName, containerid: containerName,
@@ -552,18 +552,18 @@ export const uploadFile = async (formContent, containerName, foldername) => {
files[prop][0].fieldName.indexOf( files[prop][0].fieldName.indexOf(
"_-_S106_Agreement_or_Unilateral_Undertaking" > 0 "_-_S106_Agreement_or_Unilateral_Undertaking" > 0
) )
? "Main Party Submission" ? "846040000"
: files[prop][0].fieldName.indexOf("_IP_") > 0 : files[prop][0].fieldName.indexOf("_IP_") > 0
? "Interested Party Representations" ? "846040005"
: files[prop][0].fieldName.indexOf("_Statement_") > 0 : files[prop][0].fieldName.indexOf("_Statement_") > 0
? "Main Party Statements" ? "846040002"
: files[prop][0].fieldName.indexOf("_Questionnaire_") > 0 : files[prop][0].fieldName.indexOf("_Questionnaire_") > 0
? "Main Party Questionnaire" ? "846040001"
: files[prop][0].fieldName.indexOf("_Comments_") > 0 : files[prop][0].fieldName.indexOf("_Comments_") > 0
? "Main Party Comments" ? "846040003"
: files[prop][0].fieldName.indexOf("_Impact_") > 0 : files[prop][0].fieldName.indexOf("_Impact_") > 0
? "Main Party Comments" ? "846040001"
: "default"; : "846040000";
const tags = { const tags = {
containerid: containerName, containerid: containerName,
+55 -22
View File
@@ -241,29 +241,62 @@ let MakeRepresentation = (props) => {
let statementDueDate; let statementDueDate;
isDNS isDNS
? ((startDate = new Date( ? (startDate = new Date(
detailsObj.pinswg_applicationacceptedasvalid new Date(
detailsObj.pinswg_applicationacceptedasvalid
).setHours(23, 59, 59, 999)
))(
(questionnaireDate = new Date(
new Date(
detailsObj.pinswg_endofrepresentationperiod
).setHours(23, 59, 59, 999)
))
)(
(finalCommentsDate = new Date(
new Date(detailsObj.pinswg_finalcommentsduedate).setHours(
23,
59,
59,
999
)
))
)(
(statementDueDate = new Date(
new Date(
detailsObj.pinswg_endofrepresentationperiod
).setHours(23, 59, 59, 999)
))
)
: (startDate = new Date(
new Date(detailsObj.pinswg_startdate).setHours(
23,
59,
59,
999
)
)), )),
(questionnaireDate = new Date( (questionnaireDate = new Date(
detailsObj.pinswg_endofrepresentationperiod new Date(detailsObj.pinswg_questionnaireduedate).setHours(
)), 23,
(finalCommentsDate = new Date( 59,
detailsObj.pinswg_finalcommentsduedate 59,
)), 999
(statementDueDate = new Date( )
detailsObj.pinswg_endofrepresentationperiod )),
))) (finalCommentsDate = new Date(
: ((startDate = new Date(detailsObj.pinswg_startdate)), new Date(detailsObj.pinswg_finalcommentsduedate).setHours(
(questionnaireDate = new Date( 23,
detailsObj.pinswg_questionnaireduedate 59,
)), 59,
(finalCommentsDate = new Date( 999
detailsObj.pinswg_finalcommentsduedate )
)), )),
(statementDueDate = new Date( (statementDueDate = new Date(
detailsObj.pinswg_statementduedate || new Date(
detailsObj.pinswg_statementsduedate detailsObj.pinswg_statementduedate ||
))); detailsObj.pinswg_statementsduedate
).setHours(23, 59, 59, 999)
));
isLPA && isLPA &&
currentView.caseReference.appealType != 846040019 && currentView.caseReference.appealType != 846040019 &&
@@ -100,6 +100,7 @@ let RepLPA = (props) => {
case 846040003: case 846040003:
case 846040009: case 846040009:
case 846040008: case 846040008:
case 846040017:
updateQuestionnaireCount(); updateQuestionnaireCount();
return ( return (
<S78_Questionnaire <S78_Questionnaire