From ef2e41a3776ecea633e793342cff05c3ffedf2cf Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Wed, 5 Jun 2024 06:35:13 +0100 Subject: [PATCH] reps defects --- actions/azurestorage.js | 2 +- components/case/representation/index.js | 9 +- .../representation/representationAgent.js | 1 + .../representation/representationAppellant.js | 1 + .../representation/representationElements.js | 37 +- .../representationInterestedPartyPerson.js | 1 + .../case/representation/representationLPA.js | 1 + .../representation/representationLandowner.js | 1 + ...resentationLPAQuestionnaire_enforcement.js | 1 + .../representationLPAQuestionnaire_s78.js | 1 + components/case/summary.js | 20 +- components/myportal.js | 29 +- .../myportal/awaitingsubmissionfromblob.js | 2 +- components/myportal/viewall.js | 342 ++++++++++-------- data/crmfieldlookuptranslations.json | 4 +- data/formsxml/planningappeals78.xml | 2 +- locales/cy/search.json | 4 +- locales/en/search.json | 4 +- pages/myportal/viewall.js | 1 + 19 files changed, 262 insertions(+), 201 deletions(-) diff --git a/actions/azurestorage.js b/actions/azurestorage.js index b7acd5e9..d08e4ecc 100644 --- a/actions/azurestorage.js +++ b/actions/azurestorage.js @@ -486,7 +486,7 @@ export const deleteBlobCase = async (containerName, blobName) => { containerClient.deleteBlob(blob.name); } - containerClient.deleteBlob(blobName); + // containerClient.deleteBlob(blobName); console.log(`deleted blob ${blobName}`); for await (const blob of containerClient.listBlobsFlat()) { console.log(" ------ :", blob.name); diff --git a/components/case/representation/index.js b/components/case/representation/index.js index fdc56e91..552cb170 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -300,6 +300,7 @@ let MakeRepresentation = (props) => { currentView.caseReference.appealType != 846040019 && currentView.caseReference.appealType != 846040011 && currentView.caseReference.appealType != 846040015 && + currentView.caseReference.appealType != 846040016 && todaysDate >= startDate && todaysDate <= questionnaireDate && buildArr.push("Questionnaire"); @@ -922,10 +923,10 @@ let MakeRepresentation = (props) => { var dataObj = values; - for (let key in dataObj) { - _.includes(key, "representationDocuments") == true && - delete dataObj[key]; - } + // for (let key in dataObj) { + // _.includes(key, "representationDocuments") == true && + // delete dataObj[key]; + // } uploadRepFiles( dataObj, diff --git a/components/case/representation/representationAgent.js b/components/case/representation/representationAgent.js index 2babc922..1439c16c 100644 --- a/components/case/representation/representationAgent.js +++ b/components/case/representation/representationAgent.js @@ -145,6 +145,7 @@ const RepAgent = (props) => {
{
)} - {value} +