diff --git a/src/components/AddPartnerClient.js b/src/components/AddPartnerClient.js index 02a000d..746e179 100644 --- a/src/components/AddPartnerClient.js +++ b/src/components/AddPartnerClient.js @@ -93,6 +93,17 @@ import { Plus, Download, Eye, + UserRound, + Landmark, + SlidersHorizontal, + ChevronDown, + Check, + Target, + BriefcaseBusiness, + Handshake, + ReceiptEuro, + CircleEllipsis + } from "lucide-react"; function PaperComponent(props) { @@ -172,6 +183,9 @@ const AddParnerClient = (props) => { const [p_client_comment, setp_client_comment] = useState(""); + const [p_client_responsable_compte_id, setp_client_responsable_compte_id] = useState(""); + + const [p_client_responsable_compte_nom_prenom, setp_client_responsable_compte_nom_prenom] = useState(""); const [p_client_siret, setclient_siret] = useState(""); const [p_client_tva, setclient_tva] = useState(""); @@ -412,6 +426,7 @@ const AddParnerClient = (props) => { const [importmessage, setimportmessage] = useState(""); async function submenu_donnee_client() { + Get_Client_Diverses_Data(); setsubmenu("submenu_donnee_client"); /* Ceci est super crade, fair eun wait de pour attendre l'afficage avant de desacitcation si on a desactiver, mais bon ... on avance. @@ -1040,7 +1055,226 @@ const AddParnerClient = (props) => { }) } + const [New_Getall_Training_Employee_No_Filter_result, setNew_Getall_Training_Employee_No_Filter_result] = useState([{ + "_id": "", + "id": "", + "label": "", + "nom": "", + "prenom": "", + "ismanager": "" + }]); + const [Getall_Training_Employee_No_Filter_api, setGetall_Training_Employee_No_Filter_api] = useState(); + const [Getall_Training_Employee_No_Filter_message, setGetall_Training_Employee_No_Filter_message] = useState(); + const [Getall_Training_Employee_No_Filter_result, setGetall_Training_Employee_No_Filter_result] = useState(); + function Getall_Training_Employee_No_Filter(event) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Ressource_Humaine_no_filter/"; + + + + axios.post(myurl, form).then(res => { + + setLoading(true); + + if (String(res.data.status) === String("true")) { + setLoading(false); + //console.log(" In Getall_Training_Employee_No_Filter res.data.status = " + res.data.status); + //console.log(" In Getall_Training_Employee_No_Filter res.data.message r_class = " + res.data.message); + setGetall_Training_Employee_No_Filter_api("true"); + setGetall_Training_Employee_No_Filter_result(res.data.message); + + var new_data2 = []; + const new_data = res.data.message.map((x) => { + + //--- + var localid = JSON.parse(x).id; + var local_id = JSON.parse(x)._id; + var local_nom = JSON.parse(x).nom; + var local_prenom = JSON.parse(x).prenom; + var local_ismanager = JSON.parse(x).ismanager; + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_nom + " " + local_prenom, + "nom": local_nom, + "prenom": local_prenom, + "ismanager": local_ismanager + }; + new_data2.push(node); + }); + + //--- + var node = { + "_id": "", + "id": "", + "label": "", + "nom": "", + "prenom": "", + "ismanager": "" + }; + new_data2.push(node); + + if (new_data2.length > 0) + setNew_Getall_Training_Employee_No_Filter_result(new_data2); + + } + else { + setGetall_Training_Employee_No_Filter_api("false"); + setGetall_Training_Employee_No_Filter_message(res.data.message); + // alert(res.data.message); + setdisplay_alert_mysy("1"); + setalert_message(res.data.message); + setalert_type("error"); + + } + + }).catch((error) => { + setLoading(false); + console.warn('Not good man :( Getall_Training_Employee_No_Filter = ', error); + setGetall_Training_Employee_No_Filter_api("false"); + // alert(" Impossible de recuperer la liste des employés"); + + setdisplay_alert_mysy("1"); + setalert_message(" Impossible de recuperer la liste des employés"); + setalert_type("error"); + //setmyApimyApiMessage("") + }) + } + + + const [client_12_ca, setclient_12_ca] = useState(""); + const [client_12_nb_invoice, setclient_12_nb_invoice] = useState(""); + const [client_12_reste_a_payer, setclient_12_reste_a_payer] = useState(""); + const [client_12_retard_a_payer, setclient_12_retard_a_payer] = useState(""); + const [client_12_attente_paiement, setclient_12_attente_paiement] = useState(""); + const [client_12_deja_paye, setclient_12_deja_paye] = useState(""); + const [client_12_activite_3, setclient_12_activite_3] = useState([]); + + const [client_12_taux_encaissement, setclient_12_taux_encaissement] = useState(""); + + + const [New_Get_Client_Diverses_Data_result, setNew_Get_Client_Diverses_Data_result] = useState([]); + + const [Get_Client_Diverses_Data_api, setGet_Client_Diverses_Data_api] = useState(); + const [Get_Client_Diverses_Data_message, setGet_Client_Diverses_Data_message] = useState(); + const [Get_Client_Diverses_Data_result, setGet_Client_Diverses_Data_result] = useState(); + function Get_Client_Diverses_Data(event) { + + var form = new FormData(); + const stored_cookie = getCookie('tokenmysypart'); + + + form.append("token", stored_cookie); + form.append("filter_client_id", props.client_id); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Parner_Divers_Invoice_Data_12/"; + + axios.post(myurl, form).then(res => { + //console.log(" In Get_Client_Diverses_Data res.data.status = " + res.data.status); + //console.log(" In Get_Client_Diverses_Data res.data.message r_class = " + res.data.message); + + if (String(res.data.status) === String("true")) { + setGet_Client_Diverses_Data_api("true"); + setGet_Client_Diverses_Data_result(res.data.message); + + var new_data2 = []; + const new_data = res.data.message.map((x) => { + + if (JSON.parse(x).total_montant_CA_TTC) { + setclient_12_ca(local_format_monetaire(JSON.parse(x).total_montant_CA_TTC)) + } else { + setclient_12_ca("") + } + + if (JSON.parse(x).total_nb_facture) { + setclient_12_nb_invoice(JSON.parse(x).total_nb_facture) + } else { + setclient_12_nb_invoice("") + } + + if (JSON.parse(x).total_montant_a_payer) { + setclient_12_reste_a_payer(local_format_monetaire(JSON.parse(x).total_montant_a_payer)) + } else { + setclient_12_reste_a_payer("") + } + + if (JSON.parse(x).total_montant_deja_paye) { + setclient_12_deja_paye(local_format_monetaire(JSON.parse(x).total_montant_deja_paye)) + } else { + setclient_12_deja_paye("") + } + + + if (JSON.parse(x).total_montant_attente_payement) { + setclient_12_attente_paiement(local_format_monetaire(JSON.parse(x).total_montant_attente_payement)) + } else { + setclient_12_attente_paiement("") + } + + if (JSON.parse(x).taux_encaissement) { + setclient_12_taux_encaissement(JSON.parse(x).taux_encaissement) + } else { + setclient_12_taux_encaissement("") + } + + if (JSON.parse(x).tab_activite) { + setclient_12_activite_3(JSON.parse(x).tab_activite) + } else { + setclient_12_activite_3([]) + } + + if (JSON.parse(x).total_montant_en_retard) { + setclient_12_retard_a_payer(local_format_monetaire(JSON.parse(x).total_montant_en_retard)) + } else { + setclient_12_retard_a_payer("") + } + + + new_data2.push(x) + + }); + + + if (new_data2.length > 0) + setNew_Get_Client_Diverses_Data_result(new_data2); + else + setNew_Get_Client_Diverses_Data_result([]) + + + } + else if (String(res.data.status) === String("Err_Connexion")) { + alert('Erreur: ' + res.data.message); + history.push("/Connexion"); + } + else { + setGet_Client_Diverses_Data_api("false"); + setGet_Client_Diverses_Data_message(res.data.message); + //alert(res.data.message); + setdisplay_alert_mysy("1"); + setalert_message(res.data.message); + setalert_type("error"); + } + + }).catch((error) => { + console.warn('Not good man :( Get_Client_Diverses_Data = ', error); + setGet_Client_Diverses_Data_api("false"); + //alert(" Impossible de récupérer les types de clients"); + + setdisplay_alert_mysy("1"); + setalert_message(" Impossible de récupérer les données diverses du client"); + setalert_type("error"); + }) + } useEffect(() => { Get_List_Client_Type(); @@ -1049,7 +1283,7 @@ const AddParnerClient = (props) => { Get_List_Of_All_PJ(props.client_id); Get_List_Type_Financeur(); Get_List_Type_Pouvoir_Public(); - + Getall_Training_Employee_No_Filter(); if (String(props.new_customer) !== "1") { @@ -1073,6 +1307,8 @@ const AddParnerClient = (props) => { setp_new_pwd(""); setp_conf_new_login(""); + Get_Client_Diverses_Data(); + }, [props.client_mail,]); @@ -1098,7 +1334,7 @@ const AddParnerClient = (props) => { axios.post(myurl, form).then(res => { if (String(res.data.status) === String("true")) { //console.log(" In fillfield res.data.status = " + res.data.status); - //console.log(" In fillfield res.data.message = " + res.data.message); + // console.log(" In fillfield res.data.message = " + res.data.message); setfillfield_api("true"); setfillfield_result(res.data.message); var mylocalclient = JSON.parse(res.data.message); @@ -1132,33 +1368,55 @@ const AddParnerClient = (props) => { setclient_raison_sociale(""); } + + + + setp_client_is_company("0"); if (mylocalclient.is_company) { setp_client_is_company(mylocalclient.is_company); - } + if (mylocalclient.is_company === "1") + setSelectedType("entreprise"); + + else if (mylocalclient.is_company === "0") + setSelectedType("particulier"); + + else if (mylocalclient.is_company === "2") + setSelectedType("public"); + + } setp_detail_archive("0"); if (mylocalclient.archive) { setp_detail_archive(mylocalclient.archive); } + if (mylocalclient.is_prospect && mylocalclient.is_prospect === "1") { + setselected_Actor_Type("prospect") + } - if (String(mylocalclient.is_financeur) === "1") + if (String(mylocalclient.is_financeur) === "1") { setp_client_is_financeur(true); + setselected_Actor_Type("financier") + } else setp_client_is_financeur(false); - if (String(mylocalclient.is_client) === "1") + if (String(mylocalclient.is_client) === "1") { setp_client_is_client(true); + setselected_Actor_Type("client") + } else setp_client_is_client(false); - if (String(mylocalclient.is_fournisseur) === "1") + if (String(mylocalclient.is_fournisseur) === "1") { setp_client_is_fournisseur(true); + setselected_Actor_Type("fournisseur") + } else setp_client_is_fournisseur(false); @@ -1220,6 +1478,19 @@ const AddParnerClient = (props) => { setclient_tva(""); + + if (mylocalclient.responsable_compte_id) + setp_client_responsable_compte_id(mylocalclient.responsable_compte_id); + else + setp_client_responsable_compte_id(""); + + + if (mylocalclient.responsable_compte_nom_prenom) + setp_client_responsable_compte_nom_prenom(mylocalclient.responsable_compte_nom_prenom); + else + setp_client_responsable_compte_nom_prenom(""); + + if (mylocalclient.type_financeur_id) setp_client_type_financeur(mylocalclient.type_financeur_id); else @@ -1754,6 +2025,11 @@ const AddParnerClient = (props) => { document.getElementsByName("client_tva")[0].style.backgroundColor = "#ECEFF1"; } + if (document.getElementsByName("client_responsable_compte") && document.getElementsByName("client_responsable_compte")[0]) { + document.getElementsByName("client_responsable_compte")[0].disabled = true; + document.getElementsByName("client_responsable_compte")[0].style.backgroundColor = "#ECEFF1"; + } + if (document.getElementsByName("client_website") && document.getElementsByName("client_website")[0]) { document.getElementsByName("client_website")[0].disabled = true; document.getElementsByName("client_website")[0].style.backgroundColor = "#ECEFF1"; @@ -1849,6 +2125,11 @@ const AddParnerClient = (props) => { document.getElementsByName("client_tva")[0].style.backgroundColor = "#FFFFFF"; } + if (document.getElementsByName("client_responsable_compte")) { + document.getElementsByName("client_responsable_compte")[0].disabled = false; + document.getElementsByName("client_responsable_compte")[0].style.backgroundColor = "#FFFFFF"; + } + if (document.getElementsByName("client_website")) { document.getElementsByName("client_website")[0].disabled = false; document.getElementsByName("client_website")[0].style.backgroundColor = "#FFFFFF"; @@ -2121,6 +2402,9 @@ const AddParnerClient = (props) => { } form.append("tva", client_tva); + + form.append("responsable_compte_id", p_client_responsable_compte_id); + var client_website = "" if (document.getElementsByName("client_website")) { client_website = document.getElementsByName("client_website")[0].value; @@ -2321,6 +2605,8 @@ const AddParnerClient = (props) => { } form.append("tva", client_tva); + form.append("responsable_compte_id", p_client_responsable_compte_id); + var client_website = "" if (document.getElementsByName("client_website")) { client_website = document.getElementsByName("client_website")[0].value; @@ -4173,6 +4459,92 @@ const AddParnerClient = (props) => { color: "purple", }, ]; + + const clientTypes = [ + { + id: "entreprise", + title: "Entreprise", + description: "Société privée, association ou organisation à but lucratif.", + icon: Building2, + mysy_id: "1", + }, + { + id: "particulier", + title: "Particulier", + description: "Personne physique, indépendant ou particulier.", + icon: UserRound, + mysy_id: "0", + }, + { + id: "public", + title: "Pouvoir Public", + description: "Organisme public, administration ou établissement public.", + icon: Landmark, + mysy_id: "2", + }, + ]; + + const actorTypes = [ + { + id: "prospect", + title: "Prospect", + description: "Contact ou organisation à convertir", + icon: Target, + color: "#F59E0B", + bgColor: "#FFF7E6", + }, + { + id: "client", + title: "Client", + description: "Entreprise, particulier ou organisme client", + icon: BriefcaseBusiness, + color: "#104277", + bgColor: "#EAF2FF", + }, + { + id: "fournisseur", + title: "Fournisseur", + description: "Prestataire, formateur ou sous-traitant", + icon: Handshake, + color: "#7C3AED", + bgColor: "#F3E8FF", + }, + { + id: "financier", + title: "Financier", + description: "OPCO, financeur ou organisme payeur", + icon: Landmark, + color: "#008F5A", + bgColor: "#EAFBF3", + }, + ]; + + const [selected_Actor_Type, setselected_Actor_Type] = useState("client"); + + const [selectedType, setSelectedType] = useState("entreprise"); + function SelectField({ label, options = [] }) { + return ( +
+ + +
+ + + +
+
+ ); + } return (
@@ -4337,7 +4709,7 @@ const AddParnerClient = (props) => { {/*** FIN GESTION Compte Intranet */} - {String(props.new_customer) === "1" &&
+ {String(props.new_customer) === "1 ee" &&
@@ -4659,7 +5031,7 @@ const AddParnerClient = (props) => { name="radio-buttons" inputProps={{ 'aria-label': 'C' }} - />   P. Public + />   Pouvoir Public
@@ -4949,8 +5321,8 @@ const AddParnerClient = (props) => {
} - {String(props.new_customer) !== "1" &&
-
+ {String(props.new_customer) !== "1" &&
+
}   -
+ {String(props.new_customer) === "1" &&
+
+
+ Nouveau client / partenaire +
+ +
+ + + + + +
+ +
+   +
+
+
+ Enregistrer   + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Information
+
+ {' '} + + Confirmez la création du nouveau partenaire
+ +
+
+
+ + +
+
+ +
+
+
+ )} +
+ + +
+
+ +
+
+ +
+ +
} + + {String(props.new_customer) !== "1" &&
-
JM
+
{String(p_client_raison_sociale).substring(0, 2).toUpperCase()}
-

JMJ Formation

-
- Entreprise +

{p_client_raison_sociale}

+
+ {p_client_is_company === "1" && "Entreprise"} {p_client_is_company !== "1" && "Particulier"} Compte prioritaire {p_detail_archive && String(p_detail_archive) === "1" && Archivé}
@@ -6683,7 +7634,7 @@ const AddParnerClient = (props) => { } label="Email" value={p_client_email} /> } label="Téléphone" value={p_client_telephone} /> } label="Ville" value={p_client_ville} /> - } label="Commercial référent" value="Julien Lefèvre" /> + } label="Resp. Compte " value={p_client_responsable_compte_nom_prenom} />
@@ -6772,6 +7723,48 @@ const AddParnerClient = (props) => {
+
Responsable compte
+ {formedit_mode !== "1" && New_Getall_Training_Employee_No_Filter_result && New_Getall_Training_Employee_No_Filter_result.length > 0 && + (data)._id === String(p_client_responsable_compte_id))[0].label} + />} + + {formedit_mode === "1" && New_Getall_Training_Employee_No_Filter_result && New_Getall_Training_Employee_No_Filter_result.length > 0 && + (data)._id === String(p_client_responsable_compte_id))[0].label} + + onChange={(event, value) => { + DataUpdated(); + if (value && value._id) { + setp_client_responsable_compte_id(value._id); + } else { + setp_client_responsable_compte_id(""); + } + + }} + + renderInput={(params) => + } + />} +
+ +
@@ -6925,6 +7918,353 @@ const AddParnerClient = (props) => {
+
 
+ +
+
+ +
+
+ +
+ Caracteristiques +
+
 
+ + +
+ {clientTypes.map((type) => { + const Icon = type.icon; + const isActive = selectedType === type.id; + + return ( + + ); + })} +
+ +
+
+ +
+
+ +
+ Rôle principal exist +
+
 
+ +
+ {actorTypes.map((type) => { + const Icon = type.icon; + const isActive = selected_Actor_Type === type.id; + + return ( + + ); + })} +
+ +
 
+
+
+ + + +
+
+ +
+
+ + {formedit_mode === "1" &&
+
+ +
+ Informations complémentaires +
+ +
+ (data)._id === String(p_client_type_id))[0].label} + + onChange={(event, value) => { + DataUpdated(); + if (value && value._id) { + setp_client_type_id(value._id); + + } else { + setp_client_type_id(""); + } + }} + //value={p_one_detail_client_rattachement_nom} + + renderInput={(params) => + } + /> + + { + DataUpdated(); + if (value && value._id) { + setp_client_goupe_client_id(value._id); + + } else { + setp_client_goupe_client_id(""); + } + }} + value={New_Get_List_Client_Groupe_result.filter((data) => (data)._id === String(p_client_goupe_client_id))[0].label} + + + renderInput={(params) => + } + /> + + {p_client_is_financeur === true && + + { + DataUpdated(); + if (value && value._id) { + setp_client_type_financeur(value._id); + + } else { + + setp_client_type_financeur(""); + + } + }} + value={New_Get_List_Type_Financeur_result.filter((data) => (data)._id === String(p_client_type_financeur))[0].label} + + + renderInput={(params) => + } + />} + + {p_client_is_company && String(p_client_is_company) === "2" && + { + if (value && value._id) { + setp_client_type_pouvoir_public(value._id); + + } else { + + setp_client_type_pouvoir_public(""); + + } + }} + value={New_Get_List_Type_Pouvoir_Public_result.filter((data) => (data)._id === String(p_client_type_pouvoir_public))[0].label} + + renderInput={(params) => + } + />} + + + +
+ +
+
} + + {formedit_mode !== "1" &&
+
+ +
+ Informations complémentaires +
+ +
+ + {New_Get_List_Client_Type_result && New_Get_List_Client_Type_result.length > 0 && + (data)._id === String(p_client_type_id))[0].label} + + />} + + {New_Get_List_Client_Groupe_result && New_Get_List_Client_Groupe_result.length > 0 && + (data)._id === String(p_client_goupe_client_id))[0].label} + + />} + + + + + + {p_client_is_financeur === true && New_Get_List_Type_Financeur_result && New_Get_List_Type_Financeur_result.length > 0 && + + (data)._id === String(p_client_type_financeur))[0].label} + + />} + + + + {p_client_is_company && String(p_client_is_company) === "2" && New_Get_List_Type_Pouvoir_Public_result && New_Get_List_Type_Pouvoir_Public_result.length > 0 && + + (data)._id === String(p_client_type_pouvoir_public))[0].label} + + /> + } + +
+ +
+
} + + + + +
+
+ +
@@ -7788,56 +9128,67 @@ const AddParnerClient = (props) => {
- {String(submenu).trim() !== "submenu_activite" && }
 
@@ -7846,32 +9197,38 @@ const AddParnerClient = (props) => { } label="CA généré (12 mois)" - value="76 845,30 €" - detail="vs 67 210,00 € (N-1)" - evolution="+14,4 %" + value={client_12_ca} color="blue" /> } label="Factures ouvertes" - value="3" - detail="dont 1 en retard" + value={client_12_nb_invoice} color="orange" /> } label="Reste à encaisser" - value="9 480,00 €" - detail="12,3 % du CA" + value={client_12_reste_a_payer} color="purple" /> + + } + label="Retard à encaisser" + value={client_12_reste_a_payer} + color="red" + />
-
+ } + + +
span { + width: 9px; + height: 9px; + margin-top: 8px; + border-radius: 999px; + background: var(--elyos-green); + box-shadow: 0 0 0 6px rgba(0, 143, 90, 0.09); +} + +.elyos-extra-title h4 { + margin: 0; + color: var(--elyos-blue); + font-size: 18px; + font-weight: 900; +} + +.elyos-extra-title p { + margin: 6px 0 0; + color: var(--elyos-muted); + font-size: 14px; +} + +.elyos-fields-grid { + display: flex; + grid-template-columns: repeat(3, 1fr); + gap: 26px; + flex-direction: column; +} + +.elyos-field { + display: flex; + flex-direction: column; + gap: 10px; +} + +.elyos-field label { + color: var(--elyos-blue); + font-size: 13px; + font-weight: 800; +} + +.elyos-select-wrapper { + position: relative; +} + +.elyos-select-wrapper select { + width: 100%; + height: 58px; + appearance: none; + border: 1px solid var(--elyos-border); + border-radius: 16px; + padding: 0 46px 0 18px; + background: #ffffff; + color: var(--elyos-muted); + font-size: 15px; + font-family: inherit; + outline: none; + cursor: pointer; + box-shadow: 0 10px 24px rgba(16, 66, 119, 0.05); + transition: all 0.2s ease; +} + +.elyos-select-wrapper select:focus { + border-color: var(--elyos-blue); + box-shadow: + 0 0 0 4px rgba(16, 66, 119, 0.1), + 0 12px 28px rgba(16, 66, 119, 0.1); +} + +.elyos-select-icon { + position: absolute; + top: 50%; + right: 18px; + transform: translateY(-50%); + color: #506176; + pointer-events: none; +} + +.elyos-actions { + max-width: 1040px; + margin: 28px auto 0; + display: flex; + justify-content: space-between; + gap: 18px; +} + +.elyos-btn-secondary, +.elyos-btn-primary { + height: 58px; + border-radius: 16px; + padding: 0 32px; + font-family: inherit; + font-size: 15px; + font-weight: 800; + cursor: pointer; + transition: all 0.2s ease; +} + +.elyos-btn-secondary { + border: 1px solid var(--elyos-border); + background: rgba(255, 255, 255, 0.7); + color: var(--elyos-blue); +} + +.elyos-btn-secondary:hover { + background: #ffffff; + box-shadow: 0 12px 30px rgba(16, 66, 119, 0.1); +} + +.elyos-btn-primary { + min-width: 260px; + border: none; + background: linear-gradient(135deg, #104277 0%, #0b55d9 100%); + color: #ffffff; + box-shadow: 0 20px 44px rgba(11, 85, 217, 0.28); +} + +.elyos-btn-primary span { + margin-left: 14px; + font-size: 18px; +} + +.elyos-btn-primary:hover { + transform: translateY(-2px); + box-shadow: 0 26px 56px rgba(11, 85, 217, 0.34); +} + +@media (max-width: 980px) { + .elyos-page { + padding: 28px; + } + + .elyos-client-grid, + .elyos-fields-grid { + grid-template-columns: 1fr; + } + + .elyos-client-card { + min-height: 220px; + } +} + +@media (max-width: 640px) { + .elyos-page { + padding: 18px; + } + + .elyos-main-card { + padding: 24px; + border-radius: 24px; + } + + .elyos-header { + flex-direction: column; + } + + .elyos-header h2 { + font-size: 24px; + } + + .elyos-separator { + margin-left: -24px; + margin-right: -24px; + } + + .elyos-actions { + flex-direction: column; + } + + .elyos-btn-primary, + .elyos-btn-secondary { + width: 100%; + } `; diff --git a/src/components/AddPartnerClient_ARG_100526.js b/src/components/AddPartnerClient_ARG_100526.js index 206872c..1f19090 100644 --- a/src/components/AddPartnerClient_ARG_100526.js +++ b/src/components/AddPartnerClient_ARG_100526.js @@ -4203,616 +4203,617 @@ const AddPartnerClient_ARG_100526 = (props) => { {/*** FIN GESTION Compte Intranet */} - {String(props.new_customer) === "1" &&
-
- -
- - - -
-
- -
-
- -
- Infos générales -
- -
- - - -
Raison sociale
- setclient_raison_sociale(e.target.value)} - /> -
- -
Nom
- setclient_nom(e.target.value)} - - /> -
- - -
N° Siret
- setclient_siret(e.target.value)} - /> -
- -
N° TVA
- setclient_tva(e.target.value)} - /> -
- -
 
- -
- Email
- setclient_email(e.target.value)} - - /> -
- -
Téléphone
- setclient_telephone(e.target.value)} - /> -
- -
Site web
- setclient_website(e.target.value)} - /> -
- -
-
-
- -
-
- -
- Coordonnées -
- -
- -
Adresse
- setclient_adresse(e.target.value)} - /> -
-
ville
- setclient_ville(e.target.value)} - /> -
-
Code Postal
- setclient_code_postal(e.target.value)} - /> -
-
Pays
- setclient_pays(e.target.value)} - /> -
- -
 
-
Commentaire
- { - setp_client_comment(e.target.value); - - }} - /> -
- - - -
-
-
- - - + {String(props.new_customer) === "1" && +
+
+
-
- -
-
- -
-
- -
- Caracteristiques -
- -
-
-  

-
-
-   -
-
-
- Enregistrer   +
 
- } - modal - nested - position="center center" - > - {close => ( -
- -
MySy Information
-
- {' '} +
Type client
- Confirmez la création du nouveau partenaire
+ { + if (value && value._id) { + setp_client_type_id(value._id); + + } else { + setp_client_type_id(""); + } + }} + //value={p_one_detail_client_rattachement_nom} + + renderInput={(params) => + } + /> -
-
-
-
-
-
+
+
+ + + + + +
+
+ + +
+   +
+
+
+ Enregistrer   + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Information
+
+ {' '} + + Confirmez la création du nouveau partenaire
+ +
+
+
+ + }}> Valider + +
+
+ +
-
- )} - + )} + -
-
- +
+
+ +
-
} {String(props.new_customer) !== "1" &&
diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index 1ff40fb..cb2c143 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -25458,7 +25458,7 @@ const DisplayPartnerSession = (props) => {

Affichage planning

  - +
{ form.append("event_type", p_detail_event_type); form.append("justified", p_detail_justified); - //console.log(" form == ", form); + //console.log(" form == ", form); var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Update_Agenda_Event/"; @@ -1237,7 +1237,7 @@ const Module_Agenda = (props) => { { "id": "1", "label": "Planning", "value": "planning" }, { "id": "preparation", "label": "Préparation", "value": "preparation" }, { "id": "suivi", "label": "Suivi/Correction", "value": "suivi" }, - { "id": "eval", "label": "Evaluation", "value": "eval" }, + { "id": "eval", "label": "Evaluation", "value": "eval" }, { "id": "2", "label": "Autre", "value": "autre" }, ] @@ -1461,7 +1461,7 @@ const Module_Agenda = (props) => {