diff --git a/src/pages/DomandaEditInstructorManager/index.js b/src/pages/DomandaEditInstructorManager/index.js index 49161e6..d781333 100644 --- a/src/pages/DomandaEditInstructorManager/index.js +++ b/src/pages/DomandaEditInstructorManager/index.js @@ -80,7 +80,7 @@ const DomandaEditInstructorManager = () => { const [isVisibleAppointmentDialog, setIsVisibleAppointmentDialog] = useState(false); const [isVisiblePreTecEvalDialog, setIsVisiblePreTecEvalDialog] = useState(false); const [preTecEvalData, setPreTecEvalData] = useState({ - type: 0, + amendmentDocumentType: 0, pec: '', amount: 0 }); @@ -290,7 +290,7 @@ const DomandaEditInstructorManager = () => { label: __('Nessuna garanzia', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 1 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'NESSUNA_GARANZIA' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -298,7 +298,7 @@ const DomandaEditInstructorManager = () => { label: __('Garanzia MCC', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 2 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'GARANZIA_MCC' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -306,7 +306,7 @@ const DomandaEditInstructorManager = () => { label: __('Garanzia MCC Start-Up', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 3 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'MCC_START_UP' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -314,7 +314,7 @@ const DomandaEditInstructorManager = () => { label: __('Altre garanzie (fideiussioni)', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 4 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'ALTRE_GARANZIE' })); setIsVisiblePreTecEvalDialog(true); } } diff --git a/src/pages/DomandaEditPreInstructor/index.js b/src/pages/DomandaEditPreInstructor/index.js index 77bb74f..21cc569 100644 --- a/src/pages/DomandaEditPreInstructor/index.js +++ b/src/pages/DomandaEditPreInstructor/index.js @@ -80,7 +80,7 @@ const DomandaEditPreInstructor = () => { const [isVisibleAppointmentDialog, setIsVisibleAppointmentDialog] = useState(false); const [isVisiblePreTecEvalDialog, setIsVisiblePreTecEvalDialog] = useState(false); const [preTecEvalData, setPreTecEvalData] = useState({ - type: 0, + amendmentDocumentType: '', pec: '', amount: 0 }); @@ -290,7 +290,7 @@ const DomandaEditPreInstructor = () => { label: __('Nessuna garanzia', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 1 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'NESSUNA_GARANZIA' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -298,7 +298,7 @@ const DomandaEditPreInstructor = () => { label: __('Garanzia MCC', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 2 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'GARANZIA_MCC' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -306,7 +306,7 @@ const DomandaEditPreInstructor = () => { label: __('Garanzia MCC Start-Up', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 3 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'MCC_START_UP' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -314,7 +314,7 @@ const DomandaEditPreInstructor = () => { label: __('Altre garanzie (fideiussioni)', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 4 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'ALTRE_GARANZIE' })); setIsVisiblePreTecEvalDialog(true); } }