diff --git a/src/components/Abonnement.js b/src/components/Abonnement.js index f04b324..24ad706 100644 --- a/src/components/Abonnement.js +++ b/src/components/Abonnement.js @@ -1294,10 +1294,10 @@ function Abonnement(props) {
- +
- + Code Remise : { const [Get_List_Metiers_result, setGet_List_Metiers_result] = useState(); function Get_List_Metiers() { var form = new FormData(); - var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_List_metier_formation/"; + var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_List_metier_formation_JSON/"; setLoading(true); fetch(myurl, { @@ -1019,8 +1019,11 @@ const AddClassManual = (props) => { new_data2.push(node); }); - if (new_data2.length > 0) + if (new_data2.length > 0) { setNew_Get_List_Metiers_result(new_data2); + // console.log(" ### new_data2 ", new_data2); + //console.log(" ### setNew_Get_List_Metiers_result ", New_Get_List_Metiers_result); + } } @@ -1057,7 +1060,7 @@ const AddClassManual = (props) => { const [Get_List_Domaines_result, setGet_List_Domaines_result] = useState(); function Get_List_Domaines() { var form = new FormData(); - var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_List_domaine_formation/"; + var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_List_domaine_formation_JSON/"; fetch(myurl, { @@ -1996,8 +1999,9 @@ const AddClassManual = (props) => { options={New_Get_List_Metiers_result} value={mytrainingmetier} onChange={(event, value) => { + if (value && value.metier) { - + setmytrainingmetier(value.metier); setdatamodification("1"); } @@ -2056,8 +2060,8 @@ const AddClassManual = (props) => { className="disabled_style" />
- - + +
{ {String(JSON.parse(client).include_com) === "1" && } @@ -2883,8 +2883,8 @@ const AddParnerClient = (props) => { @@ -3182,8 +3182,8 @@ const AddParnerClient = (props) => {
- - + + N° Siret
{
- - + + N° TVA
{

- -
+ +
*/} - -
+ +
*/} - -
+ +
{p_filtre1 &&
- - + +   { setp_filtre2("1"); }} />
} {p_filtre1 &&
- - + +   { setp_filtre1(); setp_filtre1_value(); @@ -4241,8 +4241,8 @@ const Apprenant = (props) => { {String(p_filtre2).length > 3 &&
- - + +   { setp_filtre2(); @@ -5242,8 +5242,8 @@ const Apprenant = (props) => { Tuteur 1 {p_detail_tuteur1_include_com === true && } @@ -5355,8 +5355,8 @@ const Apprenant = (props) => { Tuteur 2 {p_detail_tuteur2_include_com === true && } diff --git a/src/components/CheckOut.js b/src/components/CheckOut.js index 41c2b16..cbb8a1e 100644 --- a/src/components/CheckOut.js +++ b/src/components/CheckOut.js @@ -1349,9 +1349,9 @@ function CheckOut(props) {
- + {p_filtre1 && } {p_filtre1 && {String(p_filtre2).length > 2 && } {String(p_filtre2).length > 2 &&
- - + +   { setp_filtre2(); @@ -1455,8 +1455,8 @@ const Config_Champs_Personnalise = (props) => { } {String(personal_field_data_edit_mode) !== "1" && } {String(personal_field_data_edit_mode) === "1" &&
- - + + Champ public
{ {p_filtre1 && } {p_filtre1 && {String(p_filtre2).length > 2 && } {String(p_filtre2).length > 2 && {String(p_filtre2).length > 2 && } {String(p_filtre3).length > 2 &&
- - + +   { setp_filtre3(); setp_filtre3_value(); diff --git a/src/components/Dashbord_Formation.js b/src/components/Dashbord_Formation.js index 5b9e47e..661b2ea 100644 --- a/src/components/Dashbord_Formation.js +++ b/src/components/Dashbord_Formation.js @@ -217,16 +217,16 @@ const Dashbord_Formation = (props) => {

Tableaux de bord des formations

 
Affichage   - - + + { setdisplay_nb_column("1"); setdisplay_column_size("100%"); }} />     - - + + { setdisplay_nb_column("2"); setdisplay_column_size("50%"); @@ -316,8 +316,8 @@ const Dashbord_Formation = (props) => {
- - + +