recette2
cherif 2024-03-10 10:56:53 +01:00
parent 78de0e0028
commit a69c47c101
7 changed files with 775 additions and 86 deletions

View File

@ -17,7 +17,7 @@ import add_plus from "../mysy_img/plus.png";
import excel_icone from "../mysy_img/excel_icone.png";
import participants from "../mysy_img/participants.png";
import fileDownload from 'js-file-download'
import { FcInfo } from "react-icons/fc";
import { FcInfo } from "react-icons/fc";
import Popup from 'reactjs-popup';
import 'reactjs-popup/dist/index.css';
import { FcSearch } from "react-icons/fc";
@ -321,6 +321,10 @@ const Apprenant = (props) => {
const [p_detail_ville, setp_detail_ville] = useState("");
const [p_detail_pays, setp_detail_pays] = useState("");
const [p_detail_tuteur1_nom, setp_detail_tuteur1_nom] = useState("");
const [p_detail_tuteur1_civilite, setp_detail_tuteur1_civilite] = useState("");
const [p_detail_tuteur1_prenom, setp_detail_tuteur1_prenom] = useState("");
const [p_detail_tuteur1_email, setp_detail_tuteur1_email] = useState("");
const [p_detail_tuteur1_telephone, setp_detail_tuteur1_telephone] = useState("");
@ -330,6 +334,9 @@ const Apprenant = (props) => {
const [p_detail_tuteur1_pays, setp_detail_tuteur1_pays] = useState("");
const [p_detail_tuteur1_include_com, setp_detail_tuteur1_include_com] = useState(false);
const [p_detail_tuteur2_nom, setp_detail_tuteur2_nom] = useState("");
const [p_detail_tuteur2_civilite, setp_detail_tuteur2_civilite] = useState("");
const [p_detail_tuteur2_prenom, setp_detail_tuteur2_prenom] = useState("");
const [p_detail_tuteur2_email, setp_detail_tuteur2_email] = useState("");
const [p_detail_tuteur2_telephone, setp_detail_tuteur2_telephone] = useState("");
@ -506,6 +513,13 @@ const Apprenant = (props) => {
setp_detail_tuteur1_nom(mylocaltraining.tuteur1_nom);
}
if (mylocaltraining.tuteur1_civilite) {
setp_detail_tuteur1_civilite(mylocaltraining.tuteur1_civilite);
} else {
setp_detail_tuteur1_civilite("");
}
if (mylocaltraining.tuteur1_prenom) {
setp_detail_tuteur1_prenom(mylocaltraining.tuteur1_prenom);
}
@ -545,6 +559,12 @@ const Apprenant = (props) => {
setp_detail_tuteur2_nom(mylocaltraining.tuteur2_nom);
}
if (mylocaltraining.tuteur2_civilite) {
setp_detail_tuteur2_civilite(mylocaltraining.tuteur2_civilite);
} else {
setp_detail_tuteur2_civilite("");
}
if (mylocaltraining.tuteur2_prenom) {
setp_detail_tuteur2_prenom(mylocaltraining.tuteur2_prenom);
}
@ -942,6 +962,7 @@ const Apprenant = (props) => {
setfield_detail_tuteur2_telephone('');
setp_detail_tuteur1_nom('');
setp_detail_tuteur1_civilite("");
setp_detail_tuteur1_prenom('');
setp_detail_tuteur1_email('');
setp_detail_tuteur1_telephone('');
@ -952,6 +973,7 @@ const Apprenant = (props) => {
setp_detail_tuteur1_include_com(false);
setp_detail_tuteur2_nom('');
setp_detail_tuteur2_civilite("");
setp_detail_tuteur2_prenom('');
setp_detail_tuteur2_email('');
setp_detail_tuteur2_telephone('');
@ -1034,6 +1056,11 @@ const Apprenant = (props) => {
;
}
if (document.getElementsByName("field_detail_tuteur1_civilite") && document.getElementsByName("field_detail_tuteur1_civilite")[0]) {
document.getElementsByName("field_detail_tuteur1_civilite")[0].value = "";
;
}
if (document.getElementsByName("field_detail_tuteur1_email") && document.getElementsByName("field_detail_tuteur1_email")[0]) {
document.getElementsByName("field_detail_tuteur1_email")[0].value = "";
@ -1049,6 +1076,14 @@ const Apprenant = (props) => {
}
if (document.getElementsByName("field_detail_tuteur2_civilite") && document.getElementsByName("field_detail_tuteur2_civilite")[0]) {
document.getElementsByName("field_detail_tuteur2_civilite")[0].value = "";
}
if (document.getElementsByName("field_detail_tuteur2_prenom") && document.getElementsByName("field_detail_tuteur2_prenom")[0]) {
document.getElementsByName("field_detail_tuteur2_prenom")[0].value = "";
@ -1168,6 +1203,19 @@ const Apprenant = (props) => {
document.getElementsByName("field_detail_tuteur1_prenom")[0].style.backgroundColor = "#ECEFF1";
}
if (document.getElementsByName("field_detail_tuteur1_civilite") && document.getElementsByName("field_detail_tuteur1_civilite")[0]) {
console.log(" iiiiiiiiiiiiiii");
document.getElementsByName("field_detail_tuteur1_civilite")[0].disabled = true;
document.getElementsByName("field_detail_tuteur1_civilite")[0].style.backgroundColor = "#ECEFF1";
}
if (document.getElementsByName("field_detail_tuteur2_civilite") && document.getElementsByName("field_detail_tuteur2_civilite")[0]) {
document.getElementsByName("field_detail_tuteur2_civilite")[0].disabled = true;
document.getElementsByName("field_detail_tuteur2_civilite")[0].style.backgroundColor = "#ECEFF1";
}
if (document.getElementsByName("field_detail_tuteur1_email") && document.getElementsByName("field_detail_tuteur1_email")[0]) {
document.getElementsByName("field_detail_tuteur1_email")[0].disabled = true;
document.getElementsByName("field_detail_tuteur1_email")[0].style.backgroundColor = "#ECEFF1";
@ -1666,7 +1714,7 @@ const Apprenant = (props) => {
if (String(value) === "supprimer" || String(value) === "inscription"
|| String(value) === "exporter") {
|| String(value) === "exporter") {
setactionmass_ftion_val(value);
}
else {
@ -1700,7 +1748,7 @@ const Apprenant = (props) => {
}
function Export_apprenant(tab_class) {
const stored_cookie = getCookie('tokenmysypart');
@ -3268,6 +3316,15 @@ const Apprenant = (props) => {
}
if (p_detail_tuteur1_civilite)
form.append("tuteur1_civilite", p_detail_tuteur1_civilite);
else {
form.append("tuteur1_civilite", "");
}
if (p_detail_tuteur1_prenom && String(p_detail_tuteur1_prenom).trim() !== "")
form.append("tuteur1_prenom", p_detail_tuteur1_prenom);
else {
@ -3333,6 +3390,13 @@ const Apprenant = (props) => {
return;
}
if (p_detail_tuteur2_civilite)
form.append("tuteur2_civilite", p_detail_tuteur2_civilite);
else {
form.append("tuteur2_civilite", "");
}
if (p_detail_tuteur2_prenom && String(p_detail_tuteur2_prenom).trim() !== "")
form.append("tuteur2_prenom", p_detail_tuteur2_prenom);
@ -3430,6 +3494,12 @@ const Apprenant = (props) => {
{ "id": "4", "label": "Sans Emploi" }
]
const New_civilite = [
{ "id": "nme", "label": "Mme", "value": "mme" },
{ "id": "m", "label": "M", "value": "m" },
{ "id": "neutre", "label": "Neutre", "value": "neutre" },
{ "id": "", "label": "", "value": "" },
]
const New_Financement = [
@ -3656,11 +3726,11 @@ const Apprenant = (props) => {
<div className="div_row_gauche_dialog_session" style={{ "textAlign": 'left' }}>
Civilité
</div>
{Get_All_Apprenant_result &&
selected_apprenant_id &&
String(selected_apprenant_id).length > 0 &&
Get_All_Apprenant_result[selected_apprenant_row_id] &&
<div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
{Get_All_Apprenant_result &&
selected_apprenant_id &&
String(selected_apprenant_id).length > 0 &&
Get_All_Apprenant_result[selected_apprenant_row_id] &&
<div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
{JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).civilite}
</div>}
</div>
@ -3670,8 +3740,8 @@ const Apprenant = (props) => {
Nom & Prénom
</div>
{Get_All_Apprenant_result && selected_apprenant_id &&
String(selected_apprenant_id).length > 0 &&
Get_All_Apprenant_result[selected_apprenant_row_id] &&
String(selected_apprenant_id).length > 0 &&
Get_All_Apprenant_result[selected_apprenant_row_id] &&
<div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
{JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).nom.toUpperCase()} {JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).prenom.charAt(0).toUpperCase() + JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).prenom.slice(1)}
@ -3697,8 +3767,8 @@ const Apprenant = (props) => {
Téléphone
</div>
{Get_All_Apprenant_result && selected_apprenant_id &&
String(selected_apprenant_id).length > 0 &&
Get_All_Apprenant_result[selected_apprenant_row_id] &&<div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
String(selected_apprenant_id).length > 0 &&
Get_All_Apprenant_result[selected_apprenant_row_id] && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
{JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).telephone}
</div>}
</div>
@ -3708,7 +3778,7 @@ const Apprenant = (props) => {
Age
</div>
{Get_All_Apprenant_result && selected_apprenant_id &&
String(selected_apprenant_id).length > 0 &&
String(selected_apprenant_id).length > 0 &&
Get_All_Apprenant_result[selected_apprenant_row_id] &&
<div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
{selected_row_data_json_age} ans - {JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).date_naissance}
@ -3719,15 +3789,15 @@ const Apprenant = (props) => {
<div className="div_row_dialog">
<div className="div_row_gauche_dialog_session" style={{ "textAlign": 'left' }}>
Adresse postale
Adresse postale
</div>
{Get_All_Apprenant_result && selected_apprenant_id &&
String(selected_apprenant_id).length > 0 &&
String(selected_apprenant_id).length > 0 &&
Get_All_Apprenant_result[selected_apprenant_row_id] &&
<div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
{JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).adresse} <br/>
{JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).code_postal} {JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).ville} <br/>
{JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).pays.toUpperCase()}
{JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).adresse} <br />
{JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).code_postal} {JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).ville} <br />
{JSON.parse(Get_All_Apprenant_result[selected_apprenant_row_id]).pays.toUpperCase()}
</div>}
</div>
@ -3759,13 +3829,38 @@ const Apprenant = (props) => {
>
<DialogTitle>Tuteur {quel_tuteur}</DialogTitle>
<DialogTitle>Tuteur {quel_tuteur}</DialogTitle>
{String(quel_tuteur) === "1" && <DialogContent className="DialogContent_width">
<DialogContentText>
{Dialog_tuteur_1_message}
</DialogContentText>
<div className="session_caract"> <b> Civilité </b><br />
<Autocomplete
disablePortal
name="event_dialog_civilite"
id="event_dialog_civilite"
value={New_civilite.filter((data) => (data).value === String(p_detail_tuteur1_civilite))[0].label}
fullWidth
options={New_civilite}
onChange={(event, value) => {
if (value && value.value) {
setp_detail_tuteur1_civilite(value.value);
} else {
setp_detail_tuteur1_civilite("");
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>
<div className="session_caract_Dialog" > <b> Nom </b>
@ -3929,7 +4024,33 @@ const Apprenant = (props) => {
{Dialog_tuteur_1_message}
</DialogContentText>
<div className="session_caract"> <b> Civilité </b><br />
<Autocomplete
disablePortal
name="event_dialog_civilite"
id="event_dialog_civilite"
value={New_civilite.filter((data) => (data).value === String(p_detail_tuteur2_civilite))[0].label}
fullWidth
options={New_civilite}
onChange={(event, value) => {
if (value && value.value) {
setp_detail_tuteur2_civilite(value.value);
} else {
setp_detail_tuteur2_civilite("");
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>
<div className="session_caract_Dialog" > <b> Nom </b>
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -4132,9 +4253,9 @@ const Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps = {{...params.inputProps, style: { fontSize: 12, height:"1.4rem" }}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
/>
}
/>
</div>}
@ -4155,9 +4276,9 @@ const Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps = {{...params.inputProps, style: { fontSize: 12, height:"1.4rem" }}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
/>
}
/>
@ -4179,9 +4300,9 @@ const Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps = {{...params.inputProps, style: { fontSize: 12, height:"1.4rem" }}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
/>
}
/>
@ -4203,9 +4324,9 @@ const Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps = {{...params.inputProps, style: { fontSize: 12, height:"1.4rem" }}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
/>
}
/>
@ -4271,9 +4392,9 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps = {{...params.inputProps, style: { fontSize: 12, height:"1.4rem" }}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
/>
}
/>
@ -4706,31 +4827,31 @@ const Apprenant = (props) => {
<nav >Traitement en masse </nav>
&nbsp;
<Autocomplete
disablePortal
id="combo-box-demo"
className="block_en_mass_select"
fullWidth
options={New_Option}
onChange={(event, value) => {
if (value && value.value) {
if( String(value.value) === "supprimer"
|| String(value.value) === "dupliquer" || String(value.value) === "exporter") {
setactionmass_ftion_val(value.value);
}
else {
setactionmass_ftion_val();
disablePortal
id="combo-box-demo"
className="block_en_mass_select"
fullWidth
options={New_Option}
onChange={(event, value) => {
if (value && value.value) {
if (String(value.value) === "supprimer"
|| String(value.value) === "dupliquer" || String(value.value) === "exporter") {
setactionmass_ftion_val(value.value);
}
else {
setactionmass_ftion_val();
}
}
}
}}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps = {{...params.inputProps, style: { fontSize: 12, height:"1.4rem" }}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
}
/>
{/*<TextField
select
@ -4779,7 +4900,7 @@ const Apprenant = (props) => {
<font> Confirmer l'inscription de {selectionModel.length} apprenants à la session que vous aller choisir à présent.
</font>}
{String(actionmass_ftion_val) === "exporter" &&
{String(actionmass_ftion_val) === "exporter" &&
<font> Confirmer l'export excel de {selectionModel.length} apprenant(s).
</font>}
</div>
@ -5537,6 +5658,42 @@ const Apprenant = (props) => {
</nav>}
</div>
<div className="tuteur_field"> <b> Civilité </b><br />
{p_detail_tuteur1_civilite && <TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="field_detail_tuteur1_civilite"
id="field_detail_tuteur1_civilite"
className="disabled_style mysy_gris"
InputLabelProps={{
shrink: true,
}}
disabled={false}
value={String(p_detail_tuteur1_civilite)[0].toUpperCase() + String(p_detail_tuteur1_civilite).slice(1)}
/>}
{!p_detail_tuteur1_civilite && <TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="field_detail_tuteur1_civilite"
id="field_detail_tuteur1_civilite"
className="disabled_style mysy_gris"
InputLabelProps={{
shrink: true,
}}
disabled={false}
value=""
/>}
</div>
<div className="tuteur_field"> <b>Nom </b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -5650,6 +5807,42 @@ const Apprenant = (props) => {
</nav>}
</div>
<div className="tuteur_field"> <b> Civilité </b><br />
{p_detail_tuteur2_civilite && <TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="field_detail_tuteur2_civilite"
id="field_detail_tuteur2_civilite"
className="disabled_style mysy_gris"
InputLabelProps={{
shrink: true,
}}
disabled={false}
value={String(p_detail_tuteur2_civilite)[0].toUpperCase() + String(p_detail_tuteur2_civilite).slice(1)}
/>}
{!p_detail_tuteur2_civilite && <TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="field_detail_tuteur2_civilite"
id="field_detail_tuteur2_civilite"
className="disabled_style mysy_gris"
InputLabelProps={{
shrink: true,
}}
disabled={false}
value=""
/>}
</div>
<div className="tuteur_field"> <b> Nom </b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -6088,7 +6281,7 @@ const Apprenant = (props) => {
{selectionModel && selectionModel.length >= 1 && <div className="block_en_mass">
<nav >Traitement en masse </nav>
&nbsp;
<TextField
select
@ -6105,7 +6298,7 @@ const Apprenant = (props) => {
<MenuItem value="n/a" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Action &nbsp;&nbsp;</MenuItem>
<MenuItem value="supprimer" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Supprimer &nbsp;</MenuItem>
<MenuItem value="dupliquer" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Dupliquer &nbsp;</MenuItem>
</TextField>
</TextField>
{actionmass_ftion_val && <nav className='block_en_mass_bton_action'>

View File

@ -100,7 +100,7 @@ const DisplayPartnerStagiaires = (props) => {
{ field: 'pays', headerName: 'pays', hide: true, editable: false, Width: 0 },
{ field: 'civilite', headerName: 'Civ.', minWidth: 100, flex: 1, maxWidth: 100, hide: false, editable: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'civilite', headerName: 'Civ.', minWidth: 100, flex: 1, maxWidth: 100, hide: false, editable: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'nom', headerName: 'Nom', minWidth: 200, flex: 1, hide: false, editable: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'prenom', headerName: 'Prénom', minWidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
@ -166,7 +166,7 @@ const DisplayPartnerStagiaires = (props) => {
{
field: "Detail", headerName: 'Voir detail',
field: "Detail", headerName: 'Voir détail',
renderCell: (cellValues) => {
return (
@ -1546,6 +1546,7 @@ const DisplayPartnerStagiaires = (props) => {
function disableAttendeeDetailFields() {
setparticipant_data_edit_mode("0");
console.log( " disableAttendeeDetailFieldsdisableAttendeeDetailFields ");
if (document.getElementsByName("detail_session_class")[0]) {
document.getElementsByName("detail_session_class")[0].disabled = true;
@ -2382,6 +2383,10 @@ const DisplayPartnerStagiaires = (props) => {
const [p_detail_apprenant_id, setp_detail_apprenant_id] = useState("");
const [p_detail_tuteur1_nom, setp_detail_tuteur1_nom] = useState("");
const [p_detail_tuteur1_civilite, setp_detail_tuteur1_civilite] = useState("");
const [p_detail_tuteur1_prenom, setp_detail_tuteur1_prenom] = useState("");
const [p_detail_tuteur1_email, setp_detail_tuteur1_email] = useState("");
const [p_detail_tuteur1_telephone, setp_detail_tuteur1_telephone] = useState("");
@ -2393,6 +2398,9 @@ const DisplayPartnerStagiaires = (props) => {
const [p_detail_tuteur2_nom, setp_detail_tuteur2_nom] = useState("");
const [p_detail_tuteur2_civilite, setp_detail_tuteur2_civilite] = useState("");
const [p_detail_tuteur2_prenom, setp_detail_tuteur2_prenom] = useState("");
const [p_detail_tuteur2_email, setp_detail_tuteur2_email] = useState("");
const [p_detail_tuteur2_telephone, setp_detail_tuteur2_telephone] = useState("");
@ -2591,7 +2599,6 @@ const DisplayPartnerStagiaires = (props) => {
}
if (mylocalattendee.telephone) {
setp_detail_tel(mylocalattendee.telephone);
}
@ -2669,6 +2676,13 @@ const DisplayPartnerStagiaires = (props) => {
}
if (mylocalattendee.tuteur1_civilite) {
setp_detail_tuteur1_civilite(mylocalattendee.tuteur1_civilite);
} else {
setp_detail_tuteur1_civilite("");
}
if (mylocalattendee.tuteur1_prenom) {
setp_detail_tuteur1_prenom(mylocalattendee.tuteur1_prenom);
}
@ -2710,6 +2724,13 @@ const DisplayPartnerStagiaires = (props) => {
}
if (mylocalattendee.tuteur2_civilite) {
setp_detail_tuteur2_civilite(mylocalattendee.tuteur2_civilite);
} else {
setp_detail_tuteur2_civilite("");
}
if (mylocalattendee.tuteur2_prenom) {
setp_detail_tuteur2_prenom(mylocalattendee.tuteur2_prenom);
}
@ -4724,6 +4745,12 @@ const DisplayPartnerStagiaires = (props) => {
else
form.append("tuteur1_nom", "");
if (p_detail_tuteur1_civilite)
form.append("tuteur1_civilite", p_detail_tuteur1_civilite);
else {
form.append("tuteur1_civilite", "");
}
if (p_detail_tuteur1_prenom)
form.append("tuteur1_prenom", p_detail_tuteur1_prenom);
@ -4784,6 +4811,12 @@ const DisplayPartnerStagiaires = (props) => {
form.append("tuteur2_nom", "");
if (p_detail_tuteur2_civilite)
form.append("tuteur2_civilite", p_detail_tuteur2_civilite);
else {
form.append("tuteur2_civilite", "");
}
if (p_detail_tuteur2_prenom)
form.append("tuteur2_prenom", p_detail_tuteur2_prenom);
else
@ -5343,16 +5376,15 @@ const DisplayPartnerStagiaires = (props) => {
{ "id": "0", "label": "Exporter", "value": "exporter" },
{ "id": "1", "label": "Supprimer", "value": "supprimer" },
]
const New_civilite = [
{ "id": "Mme", "label": "Mme", "value": "Mme" },
{ "id": "M", "label": "M", "value": "M" },
{ "id": "Neutre", "label": "Neutre", "value": "Neutre" },
{ "id": "nme", "label": "Mme", "value": "mme" },
{ "id": "m", "label": "M", "value": "m" },
{ "id": "neutre", "label": "Neutre", "value": "neutre" },
{ "id": "", "label": "", "value": "" },
]
const New_status_inscription_add_with_annule = [
{ "id": "0", "label": "PréInscription", "value": "0" },
{ "id": "1", "label": "Inscription", "value": "1" },
@ -5533,7 +5565,7 @@ const DisplayPartnerStagiaires = (props) => {
<DialogActions>
<div className="div_row">
<div className="div_row_gauche">
<Button onClick={Show_Detailled_stagiaire_Data} className="bton_enreg_dialog">Voir detail</Button>
<Button onClick={Show_Detailled_stagiaire_Data} className="bton_enreg_dialog">Voir détail</Button>
</div>
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
<Button onClick={Dialog_stagiaire_handleClose_buton} className="bton_annule_dialog" >Fermer</Button>
@ -5581,7 +5613,32 @@ const DisplayPartnerStagiaires = (props) => {
</DialogContentText>
<div className="session_caract"> <b> Civilité </b><br />
<Autocomplete
disablePortal
name="event_dialog_civilite"
id="event_dialog_civilite"
value={New_civilite.filter((data) => (data).value === String(p_detail_tuteur1_civilite))[0].label}
fullWidth
options={New_civilite}
onChange={(event, value) => {
if (value && value.value) {
setp_detail_tuteur1_civilite(value.value);
} else {
setp_detail_tuteur1_civilite("");
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>
<div className="session_caract_Dialog" > <b>Nom </b>
<TextField
@ -5744,6 +5801,33 @@ const DisplayPartnerStagiaires = (props) => {
{Dialog_tuteur_1_message}
</DialogContentText>
<div className="session_caract"> <b> Civilité </b><br />
<Autocomplete
disablePortal
name="event_dialog_civilite"
id="event_dialog_civilite"
value={New_civilite.filter((data) => (data).value === String(p_detail_tuteur2_civilite))[0].label}
fullWidth
options={New_civilite}
onChange={(event, value) => {
if (value && value.value) {
setp_detail_tuteur2_civilite(value.value);
} else {
setp_detail_tuteur2_civilite("");
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>
<div className="session_caract_Dialog" ><b> Nom </b>
<TextField
@ -6276,7 +6360,7 @@ const DisplayPartnerStagiaires = (props) => {
<div className="titre1"> Utilisez les filtres !</div>
<div className="div_row" style={{ "marginBottom": "5px" }}>
<div className="div_row_gauche texte_area_filter" >
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
disablePortal
name="filtre1"
id="filtre1"
@ -6378,7 +6462,7 @@ const DisplayPartnerStagiaires = (props) => {
{p_filtre2 &&
<div className="div_row" style={{ "marginBottom": "5px" }}>
<div className="div_row_gauche texte_area_filter">
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
disablePortal
name="filtre2"
id="filtre2"
@ -6484,7 +6568,7 @@ const DisplayPartnerStagiaires = (props) => {
<div className="div_row" style={{ "marginBottom": "5px" }}>
<div className="div_row_gauche texte_area_filter">
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
disablePortal
name="filtre3"
id="filtre3"
@ -6585,7 +6669,7 @@ const DisplayPartnerStagiaires = (props) => {
<div className="div_row" style={{ "marginBottom": "5px" }}>
<div className="div_row_gauche texte_area_filter">
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
disablePortal
name="filtre4"
id="filtre4"
@ -7133,7 +7217,7 @@ const DisplayPartnerStagiaires = (props) => {
if (value && value._id) {
setp_one_detail_session_class(value._id);
setp_one_detail_code_session(value.code_session);
}else{
} else {
setp_one_detail_session_class("");
setp_one_detail_code_session("");
}
@ -7883,7 +7967,7 @@ const DisplayPartnerStagiaires = (props) => {
className="disabled_style"
options={New_Get_List_Partner_Clients_result}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_client_rattachement_id(value._id);
setp_detail_client_rattachement_nom(value.nom);
@ -7892,8 +7976,8 @@ const DisplayPartnerStagiaires = (props) => {
Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant");
}else{
} else {
setp_detail_client_rattachement_id("");
setp_detail_client_rattachement_nom("");
}
@ -7965,12 +8049,12 @@ const DisplayPartnerStagiaires = (props) => {
setp_detail_financeur_rattachement_nom(value.nom);
setparticipant_data_changed("1");
Dialog_1_handle_change_participant_session(" Attention, vous allez modifier l'organisme financeur du participant");
}else{
} else {
setp_detail_financeur_rattachement_id("");
setp_detail_financeur_rattachement_nom("");
setparticipant_data_changed("1");
Dialog_1_handle_change_participant_session(" Attention, vous allez modifier l'organisme financeur du participant");
}
}}
value={p_detail_financeur_rattachement_nom}
@ -8563,6 +8647,43 @@ const DisplayPartnerStagiaires = (props) => {
<div style={{ "width": '100%', "float": 'left' }}>
<div style={{ "width": '50%', "float": 'left', "borderRight": "thick double #32a1ce" }}>
<div className="tuteur_field" style={{ "textAlign": "center", "width": "100%" }}> Tuteur 1 </div>
<div className="tuteur_field"> <b> Civilité </b><br />
{p_detail_tuteur1_civilite && <TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="field_detail_tuteur1_civilite"
id="field_detail_tuteur1_civilite"
className="disabled_style mysy_gris"
InputLabelProps={{
shrink: true,
}}
disabled={false}
value={String(p_detail_tuteur1_civilite)[0].toUpperCase() + String(p_detail_tuteur1_civilite).slice(1)}
/>}
{!p_detail_tuteur1_civilite && <TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="field_detail_tuteur1_civilite"
id="field_detail_tuteur1_civilite"
className="disabled_style mysy_gris"
InputLabelProps={{
shrink: true,
}}
disabled={false}
value=""
/>}
</div>
<div className="tuteur_field"> <b> Nom </b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -8667,6 +8788,42 @@ const DisplayPartnerStagiaires = (props) => {
<div style={{ "width": '50%', "float": 'left', }}>
<div className="tuteur_field" style={{ "textAlign": "center", "width": "100%" }}> Tuteur 2 </div>
<div className="tuteur_field"> <b> Civilité </b><br />
{p_detail_tuteur2_civilite && <TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="field_detail_tuteur2_civilite"
id="field_detail_tuteur2_civilite"
className="disabled_style mysy_gris"
InputLabelProps={{
shrink: true,
}}
disabled={false}
value={String(p_detail_tuteur2_civilite)[0].toUpperCase() + String(p_detail_tuteur2_civilite).slice(1)}
/>}
{!p_detail_tuteur2_civilite && <TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="field_detail_tuteur2_civilite"
id="field_detail_tuteur2_civilite"
className="disabled_style mysy_gris"
InputLabelProps={{
shrink: true,
}}
disabled={false}
value=""
/>}
</div>
<div className="tuteur_field"> <b>Nom </b><br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}

View File

@ -1618,7 +1618,7 @@ const Module_Editique = (props) => {
</div>
{(String(selected_convention_type) === "email" || String(selected_convention_type) === "pdf") && <div className="session_caract_Dialog" > Choisir une convention 2
{(String(selected_convention_type) === "email" || String(selected_convention_type) === "pdf") && <div className="session_caract_Dialog" > Choisir une convention
<Autocomplete
disablePortal
name="event_dialog_version_convention"

View File

@ -12,8 +12,8 @@ import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
import { Editor } from '@tinymce/tinymce-react';
import parse from 'html-react-parser';
import { FcViewDetails, FcDisapprove } from "react-icons/fc";
import 'react-tooltip/dist/react-tooltip.css'
import { Tooltip } from 'react-tooltip'
import 'react-tooltip/dist/react-tooltip.css';
import { Tooltip } from 'react-tooltip';
import add_plus from "../mysy_img/plus.png";
import excel_icone from "../mysy_img/excel_icone.png";
import participants from "../mysy_img/participants.png";
@ -3384,8 +3384,14 @@ const Partner_Commande = (props) => {
fullWidth
//variant="standard"
value={partner_taux_tva}
disabled
type="text"
onChange={(e) => {
setpartner_taux_tva(e.target.value);
}
}
type="number"
/>
</div>

View File

@ -11,7 +11,7 @@ import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid';
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
import { Editor } from '@tinymce/tinymce-react';
import parse from 'html-react-parser';
import { FcViewDetails, FcDisapprove } from "react-icons/fc";
import { FcViewDetails, FcDisapprove, FcInfo } from "react-icons/fc";
import 'react-tooltip/dist/react-tooltip.css'
import { Tooltip } from 'react-tooltip'
import add_plus from "../mysy_img/plus.png";
@ -35,6 +35,11 @@ import { MdAddCircleOutline, MdRemoveCircleOutline } from "react-icons/md";
import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif";
import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
import Dialog from '@mui/material/Dialog';
import DialogActions from '@mui/material/DialogActions';
import DialogContent from '@mui/material/DialogContent';
import DialogContentText from '@mui/material/DialogContentText';
import DialogTitle from '@mui/material/DialogTitle';
const Partner_Facture = (props) => {
@ -63,15 +68,15 @@ const Partner_Facture = (props) => {
const columns = [
{ field: '_id', headerName: '_id', hide: true },
{ field: 'id', headerName: 'id', hide: true },
{ field: 'invoice_header_ref_interne', headerName: 'Num Facture', minWidth: 200, flex: 1, hide: false, editable: false },
{ field: 'order_header_ref_interne', headerName: 'Reference Cmd', minWidth: 200, flex: 1, hide: false, editable: false },
{ field: 'invoice_header_ref_interne', headerName: 'Num Facture', minWidth: 200, flex: 1, hide: false, editable: false },
{ field: 'order_header_ref_interne', headerName: 'Reference Cmd', minWidth: 200, flex: 1, hide: false, editable: false },
{ field: 'invoice_header_type', headerName: 'Type', width: 100, hide: false, editable: false },
{ field: 'invoice_date', headerName: 'Date Facture', width: 150, hide: false, editable: false },
{ field: 'order_header_client_id', headerName: 'Client_Id', width: 150, hide: true, editable: false },
{ field: 'order_header_client_nom', headerName: 'Nom Client', minWidth: 150, flex: 1 },
{ field: 'order_header_client_nom', headerName: 'Nom Client', minWidth: 150, flex: 1 },
{ field: 'order_header_vendeur_id', headerName: 'Vendeur Id', width: 0, hide: true, editable: false },
{ field: 'order_header_vendeur_nom_prenom', headerName: 'Vendeur', width: 150, flex: 1, editable: false },
{ field: 'order_header_vendeur_nom_prenom', headerName: 'Vendeur', width: 150, flex: 1, editable: false },
{ field: 'order_header_date_cmd', headerName: 'Date Cmd', width: 150, hide: true, editable: false },
{ field: 'total_header_hors_taxe_after_header_reduction', headerName: 'Montant HT', width: 150, hide: false, editable: false },
{ field: 'order_header_tax_amount', headerName: 'Taxe', width: 150, hide: false, editable: false },
@ -303,8 +308,8 @@ const Partner_Facture = (props) => {
Get_Given_Line_Of_Partner_Invoice_Line_Data(invoice_line_id, invoice_internal_ref);
setDialog_Detail_Article_open(true);
//setDialog_Detail_Article_open(true);
//alert(" afficher le detail de la ligne " + String(order_line_id));
}
@ -468,6 +473,7 @@ const Partner_Facture = (props) => {
const [p_detail_header_date_expiration, setp_detail_header_date_expiration] = useState(date_today_90j.toLocaleDateString('fr-FR'));
const [p_detail_header_condition_paiement_id, setp_detail_header_condition_paiement_id] = useState("");
const [p_detail_header_condition_paiement_code, setp_detail_header_condition_paiement_code] = useState("");
const [p_detail_header_ref_client, setp_detail_header_ref_client] = useState();
const [p_detail_header_ref_interne, setp_detail_header_ref_interne] = useState();
@ -488,6 +494,11 @@ const Partner_Facture = (props) => {
const [p_detail_header_date_cmd_val, setp_detail_header_date_cmd_val] = useState(new Date().toLocaleDateString('fr-FR'));
const [p_detail_header_date_expiration_val, setp_detail_header_date_expiration_val] = useState(date_today_90j.toLocaleDateString('fr-FR'));
const [p_detail_header_condition_paiement, setp_detail_header_condition_paiement] = useState();
const [p_detail_header_condition_paiement_desc, setp_detail_header_condition_paiement_desc] = useState();
const [p_detail_header_date_echeance, setp_detail_header_date_echeance] = useState();
const [p_detail_header_fact_adr, setp_detail_header_fact_adr] = useState();
const [p_detail_header_fact_code_postal, setp_detail_header_fact_code_postal] = useState();
const [p_detail_header_fact_ville, setp_detail_header_fact_ville] = useState();
@ -805,6 +816,26 @@ const Partner_Facture = (props) => {
setp_detail_header_liv_code_postal(mylocal_order.order_header_adr_liv_code_postal);
}
if (mylocal_order.invoice_date_echeance) {
setp_detail_header_date_echeance(mylocal_order.invoice_date_echeance);
} else {
setp_detail_header_date_echeance("");
}
if (mylocal_order.order_header_condition_paiement_code) {
setp_detail_header_condition_paiement(mylocal_order.order_header_condition_paiement_code);
} else {
setp_detail_header_condition_paiement("");
}
if (mylocal_order.order_header_condition_paiement_description) {
setp_detail_header_condition_paiement_desc(mylocal_order.order_header_condition_paiement_description);
} else {
setp_detail_header_condition_paiement_desc("");
}
//document.getElementsByName("detail_header_liv_ville")[0].value = "";
if (mylocal_order.order_header_adr_liv_ville) {
sep_detail_header_liv_ville(mylocal_order.order_header_adr_liv_ville);
@ -1225,11 +1256,24 @@ const Partner_Facture = (props) => {
document.getElementsByName("detail_header_ref_cient")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_header_mode_paiement")[0]) {
document.getElementsByName("detail_header_mode_paiement")[0].disabled = false;
document.getElementsByName("detail_header_mode_paiement")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_header_date_echeance")[0]) {
document.getElementsByName("detail_header_date_echeance")[0].disabled = false;
document.getElementsByName("detail_header_date_echeance")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_header_fact_adresse")[0]) {
document.getElementsByName("detail_header_fact_adresse")[0].disabled = false;
document.getElementsByName("detail_header_fact_adresse")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_header_fact_code_postal")[0]) {
document.getElementsByName("detail_header_fact_code_postal")[0].disabled = false;
document.getElementsByName("detail_header_fact_code_postal")[0].style.backgroundColor = "#FFFFFF";
@ -1380,11 +1424,23 @@ const Partner_Facture = (props) => {
document.getElementsByName("detail_header_ref_cient")[0].style.backgroundColor = "#ECEFF1";
}
if (document.getElementsByName("detail_header_mode_paiement")[0]) {
document.getElementsByName("detail_header_mode_paiement")[0].disabled = true;
document.getElementsByName("detail_header_mode_paiement")[0].style.backgroundColor = "#ECEFF1";
}
if (document.getElementsByName("detail_header_date_echeance")[0]) {
document.getElementsByName("detail_header_date_echeance")[0].disabled = true;
document.getElementsByName("detail_header_date_echeance")[0].style.backgroundColor = "#ECEFF1";
}
if (document.getElementsByName("detail_header_fact_adresse")[0]) {
document.getElementsByName("detail_header_fact_adresse")[0].disabled = true;
document.getElementsByName("detail_header_fact_adresse")[0].style.backgroundColor = "#ECEFF1";
}
if (document.getElementsByName("detail_header_fact_code_postal")[0]) {
document.getElementsByName("detail_header_fact_code_postal")[0].disabled = true;
document.getElementsByName("detail_header_fact_code_postal")[0].style.backgroundColor = "#ECEFF1";
@ -1482,6 +1538,23 @@ const Partner_Facture = (props) => {
}
const [Dialog_Detail_Article_open, setDialog_Detail_Article_open] = React.useState(false);
const Close_Dialog_Detail_Article_open = () => {
setDialog_Detail_Article_open(false);
};
const Dialog_1_handleClose = () => {
//alert(" Utiliser le bouton 'fermer' ");
//setOpen(false);
};
const Dialog_1_handleClose_buton = () => {
setDialog_1_open(false);
};
const [Dialog_1_open, setDialog_1_open] = React.useState(false);
return (
@ -1490,6 +1563,219 @@ const Partner_Facture = (props) => {
<div className="mysy_spinner"> <img src={img_loading_spin} /> </div>
</div>}
<Dialog
open={Dialog_Detail_Article_open}
onClose={Dialog_1_handleClose}
className="partner_commande"
>
<DialogTitle> Détail ligne Facture <font style={{ fontWeight: "700" }}> {String(invoice_internal_ref)} </font> </DialogTitle>
<DialogContent>
<div className="session_caract_Dialog" > Article
<TextField
autoFocus
margin="dense"
id="ref_article"
//label="Article"
disabled
fullWidth
//variant="standard"
value={p_add_line_item}
/>
</div>
<div className="session_caract_Dialog" > Quantité
<TextField
margin="dense"
id="ref_article_qty"
//label="Quantité"
//type="number"
fullWidth
//variant="standard"
value={p_add_line_item_qty}
disabled
type="text"
/>
</div>
<div className="session_caract_Dialog" > Prix Unitaire
<TextField
margin="dense"
id="ref_article_unit_price"
name="ref_article_unit_price"
//label="Prix Unitaire"
fullWidth
//variant="standard"
value={p_add_line_item_price}
disabled
type="text"
/>
</div>
<div className="session_caract_Dialog" > Taux TVA
<TextField
margin="dense"
id="ref_article_taux_tva"
name="ref_article_taux_tva"
//label="Prix Unitaire"
fullWidth
//variant="standard"
//value={partner_taux_tva}
type="number"
/>
</div>
<div className="session_caract_Dialog" > Type reduction
<TextField
margin="dense"
id="ref_article_type_reduction"
//label="Type reduction"
fullWidth
//variant="standard"
value={p_add_line_item_type_reduction}
disabled
/>
</div>
<div className="session_caract_Dialog" > Reduction
<TextField
margin="dense"
id="ref_article_reduction_value"
//label="Reduction"
fullWidth
//variant="standard"
value={p_add_line_item_reduction_value}
disabled
type="text"
/>
</div>
<div className="session_caract_Dialog" > Total Reduction
<TextField
margin="dense"
id="ref_article_reduction_total_amount"
//label="Total Reduction"
fullWidth
disabled
//variant="standard"
value={p_add_line_item_reduction_total_amount}
/>
</div>
<div className="session_caract_Dialog_comment_2_lines" > Commentaire
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
name="ref_article_comment"
id="ref_article_comment"
fullWidth
value={p_add_line_item_comment}
//label="Commentaire"
//variant="standard"
multiline
minRows={2}
maxRows={2}
rows={2}
disabled
/>
</div>
<div className="session_caract_Dialog" > Total HT
<TextField
margin="dense"
id="ref_article_total_amount_ht"
//label="Total HT"
type="text"
fullWidth
//variant="standard"
disabled={true}
value={p_add_line_item_total_amount_ht}
/>
</div>
{/* <div className="session_caract" style={{ "width": "100%", "height": "5rem" }}> Total HT
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="ref_article_total_amount_ht"
id="ref_article_total_amount_ht"
InputLabelProps={{
shrink: true,
}}
disabled={true}
fullWidth
className="disabled_style_Dialog"
value={p_add_line_item_total_amount_ht}
/>
</div>*/}
</DialogContent>
<DialogActions>
<div className="div_row">
<div className="div_row_gauche">
&nbsp;
</div>
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
<Button onClick={Close_Dialog_Detail_Article_open} className="bton_annule_dialog" >Fermer</Button>
</div>
</div>
</DialogActions>
</Dialog>
<h3> Vos Factures </h3>
<div className="div_row">
<div className="titre1"> Utilisez les filtres !</div>
@ -1918,8 +2204,8 @@ const Partner_Facture = (props) => {
<div className="session_data">
<div className="div_row" style={{ "textAlign": "right", "paddingTop": "10px" }}>
<Button variant="outlined" onClick={order_header_submenu_main} className="detail_class_submenu" id='order_header_main' name='order_header_main'>Détail</Button>
<Button variant="outlined" onClick={order_header_submenu_detail} className="detail_class_submenu" id='order_header_detail' name='order_header_detail'>Menu Total </Button>
<Button variant="outlined" onClick={order_header_submenu_facturation} className="detail_class_submenu" id='order_header_facturation' name='order_header_facturation'>Menu Facturation </Button>
<Button variant="outlined" onClick={order_header_submenu_facturation} className="detail_class_submenu" id='order_header_facturation' name='order_header_facturation'>Données Facture </Button>
<Button variant="outlined" onClick={order_header_submenu_detail} className="detail_class_submenu" id='order_header_detail' name='order_header_detail'> Totaux </Button>
</div>
@ -2003,7 +2289,7 @@ const Partner_Facture = (props) => {
/>
</div>
<div className="session_caract" > Conditions Paiement <br />
<div className="session_caract" > Conditions Paiement <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -2343,6 +2629,45 @@ const Partner_Facture = (props) => {
{String(header_submenu) === "facturation" && <div>
<div className="session_caract"> Condition Paiement &nbsp; <FcInfo /><br />
<Tooltip className="tooltip_css" id="tooltip_desc_paiement" style={{ "fontSize": "12px" }} />
<a data-tooltip-id="tooltip_desc_paiement" data-tooltip-html={p_detail_header_condition_paiement_desc}>
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="detail_header_mode_paiement"
id="detail_header_mode_paiement"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_header_condition_paiement}
/>
</a>
</div>
<div className="session_caract"> Date échéance <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="detail_header_date_echeance"
id="detail_header_date_echeance"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_header_date_echeance}
/>
</div>
<div className="session_caract"> Adresse Facturation <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -2448,7 +2773,6 @@ const Partner_Facture = (props) => {
className="disabled_style"
value={p_detail_header_liv_code_postal}
/>
</div>

View File

@ -2604,6 +2604,10 @@
}
.mysy_gris{
background: #ECEFF1 !important;
}
// end media

View File

@ -2342,6 +2342,11 @@
}
.mysy_gris{
background: #ECEFF1 !important;
}
// end media
.disabled_style_with_visualiser {