From 92ac388a5b87be84a3867a5018349218af70a7b7 Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Mon, 2 Dec 2024 11:12:30 +0100 Subject: [PATCH 01/23] - enabled fiscal code field for flow 2; --- src/helpers/formatDateString.js | 1 - src/pages/AddCompany/index.js | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helpers/formatDateString.js b/src/helpers/formatDateString.js index 9c08c55..9690a1b 100644 --- a/src/helpers/formatDateString.js +++ b/src/helpers/formatDateString.js @@ -4,7 +4,6 @@ * @return {string} */ const formatDateString = (date) => { - console.log('date', date); const year = date.getFullYear(); const month = String(date.getMonth() + 1).padStart(2, '0'); const day = String(date.getDate()).padStart(2, '0'); diff --git a/src/pages/AddCompany/index.js b/src/pages/AddCompany/index.js index 57d6d83..4a81ad2 100644 --- a/src/pages/AddCompany/index.js +++ b/src/pages/AddCompany/index.js @@ -22,6 +22,8 @@ import CompanyService from '../../service/company-service'; import { isPIVA, isEmail, isEmailPEC } from '../../helpers/validators'; import set404FromErrorResponse from '../../helpers/set404FromErrorResponse'; +const APP_EVALUATION_FLOW_ID = process.env.REACT_APP_EVALUATION_FLOW_ID; + const AddCompany = () => { const navigate = useNavigate(); const isAsyncRequest = useStore().main.isAsyncRequest(); @@ -186,7 +188,7 @@ const AddCompany = () => { Date: Mon, 2 Dec 2024 12:33:01 +0100 Subject: [PATCH 02/23] - updated source code for amendment fileupload; --- src/pages/DomandaBeneficiario/index.js | 1 + src/pages/SoccorsoEditPreInstructor/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pages/DomandaBeneficiario/index.js b/src/pages/DomandaBeneficiario/index.js index 3ba58ae..2aee3a5 100644 --- a/src/pages/DomandaBeneficiario/index.js +++ b/src/pages/DomandaBeneficiario/index.js @@ -289,6 +289,7 @@ const DomandaBeneficiario = () => { errors={errors} defaultValue={formInitialData[o.fieldId] ? formInitialData[o.fieldId] : []} accept={[]} + source="AMENDMENT" sourceId={data.applicationId} multiple={true} /> diff --git a/src/pages/SoccorsoEditPreInstructor/index.js b/src/pages/SoccorsoEditPreInstructor/index.js index 41420c5..7ca9299 100644 --- a/src/pages/SoccorsoEditPreInstructor/index.js +++ b/src/pages/SoccorsoEditPreInstructor/index.js @@ -407,6 +407,7 @@ const SoccorsoEditPreInstructor = () => { errors={errors} defaultValue={formInitialData[o.fieldId] ? formInitialData[o.fieldId] : []} accept={[]} + source="AMENDMENT" sourceId={data.applicationId} multiple={true} /> From a60ef5238e6bd8cfede4f269769c52bd831c0dd1 Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Mon, 2 Dec 2024 13:31:33 +0100 Subject: [PATCH 03/23] - fixed error related to saving valuation object; --- src/pages/DomandaEditPreInstructor/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/DomandaEditPreInstructor/index.js b/src/pages/DomandaEditPreInstructor/index.js index ad8e506..95c0c9b 100644 --- a/src/pages/DomandaEditPreInstructor/index.js +++ b/src/pages/DomandaEditPreInstructor/index.js @@ -134,6 +134,7 @@ const DomandaEditPreInstructor = () => { files: klona(data.files), note: data.note } + ApplicationEvaluationService.updateEvaluation( data.assignedApplicationId, formData, @@ -661,13 +662,13 @@ const DomandaEditPreInstructor = () => { ?