diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index 3f5a66b..fde0166 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -1410,7 +1410,7 @@ const DisplayPartnerSession = (props) => { if (String(res.data.status) === String("true")) { //console.log(" In Getall_TrainingSession res.data.status = " + res.data.status); - //console.log(" In Getall_TrainingSession res.data.message r_class = " + res.data.message); + // console.log(" In Getall_TrainingSession res.data.message r_class = " + res.data.message); setGetall_TrainingSession_api("true"); setGetall_TrainingSession_result(res.data.message); setRows(res.data.message); @@ -4533,7 +4533,7 @@ const DisplayPartnerSession = (props) => { if (document.getElementById("code_session") && document.getElementById("code_session").value != "") code_session = document.getElementById("code_session").value; - + //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA"); const stored_cookie = getCookie('tokenmysypart'); @@ -5037,13 +5037,13 @@ const DisplayPartnerSession = (props) => { } - }else{ - if( New_Getall_Parter_OR_Default_Session_Steps_result && New_Getall_Parter_OR_Default_Session_Steps_result.length > 0 ){ - + } else { + if (New_Getall_Parter_OR_Default_Session_Steps_result && New_Getall_Parter_OR_Default_Session_Steps_result.length > 0) { + setp_session_etape(New_Getall_Parter_OR_Default_Session_Steps_result[0].session_step_name); setp_session_etape_label(New_Getall_Parter_OR_Default_Session_Steps_result[0].label); - // console.log(" ### iciii") - + // console.log(" ### iciii") + } } @@ -11216,6 +11216,8 @@ const DisplayPartnerSession = (props) => { const [selected_emargement_user, setselected_emargement_user] = useState(""); const [selected_emargement_date, setselected_emargement_date] = useState(""); + const [selected_row_data_json, setselected_row_data_json] = useState([]); + return (
@@ -13645,7 +13647,7 @@ const DisplayPartnerSession = (props) => { />} - +
@@ -13728,7 +13730,7 @@ const DisplayPartnerSession = (props) => { /> } />} - +
{String(p_filtre2).length > 3 && @@ -14290,9 +14292,12 @@ const DisplayPartnerSession = (props) => { setselected_session_id(newSelectionModel.row._id); - setsession_selected_row_id(newSelectionModel.row.id); - setDialog_2_message(String(JSON.parse(rowss[newSelectionModel.row.id]).title)); + var result = JSON.parse(rowss.filter((data) => (JSON.parse(data))._id === newSelectionModel.row._id)); + + setsession_selected_row_id(result.id); + + setDialog_2_message(String(newSelectionModel.row.title)); setDialog_2_open(true); }} @@ -14979,7 +14984,7 @@ const DisplayPartnerSession = (props) => { } /> - +
} {!edit_session_form &&
Etape
@@ -15647,7 +15652,7 @@ const DisplayPartnerSession = (props) => { {sessionChanged &&
- /!\ Pensez à enregistrer les modifications + /!\ Pensez à enregistrer les modifications
} {
@@ -17710,7 +17715,7 @@ const DisplayPartnerSession = (props) => { {
-
@@ -20290,7 +20295,7 @@ const DisplayPartnerSession = (props) => { {String(submenu) === String("planification_session") &&
- + {
*/} - + {/* {String(order_data_edit_mode) === "1" &&
Type de Reduction (entete)
{ />
- +*/}
Total Ligne HT avant reduction
{ order_line_taux_taxe: JSON.parse(item).order_line_taux_taxe, order_line_class_id: JSON.parse(item).class_id, + order_line_type_reduction: JSON.parse(item).order_line_type_reduction, + order_line_type_valeur: JSON.parse(item).order_line_type_valeur, + order_line_montant_reduction: JSON.parse(item).order_line_montant_reduction, + } ))}