recette2
parent
ae52b4cfba
commit
1874bbe293
|
@ -41,6 +41,7 @@ import { FcAddDatabase } from "react-icons/fc";
|
||||||
import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
|
import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
|
||||||
import ToggleSwitch from "./ToggleSwitch";
|
import ToggleSwitch from "./ToggleSwitch";
|
||||||
import ToggleSwitch_v2_mysy from "./ToggleSwitch_v2_mysy";
|
import ToggleSwitch_v2_mysy from "./ToggleSwitch_v2_mysy";
|
||||||
|
import { FcInfo } from "react-icons/fc";
|
||||||
|
|
||||||
import Link from '@mui/material/Link';
|
import Link from '@mui/material/Link';
|
||||||
import { PiDotsThree } from "react-icons/pi";
|
import { PiDotsThree } from "react-icons/pi";
|
||||||
|
@ -372,6 +373,7 @@ const Partner_Commande = (props) => {
|
||||||
setadd_One_Order();
|
setadd_One_Order();
|
||||||
setSelectionModel([]);
|
setSelectionModel([]);
|
||||||
|
|
||||||
|
setgridline_id("");
|
||||||
Getall_Parter_Orders_No_Filter();
|
Getall_Parter_Orders_No_Filter();
|
||||||
|
|
||||||
if (document.getElementById('myRef_head')) {
|
if (document.getElementById('myRef_head')) {
|
||||||
|
@ -2948,7 +2950,7 @@ const Partner_Commande = (props) => {
|
||||||
document.getElementById(current_menu).style.fontWeight = "bold";
|
document.getElementById(current_menu).style.fontWeight = "bold";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3688,6 +3690,7 @@ const Partner_Commande = (props) => {
|
||||||
const New_Option_Oui_Non = [
|
const New_Option_Oui_Non = [
|
||||||
{ "id": "1", "label": "Oui", "value": "1" },
|
{ "id": "1", "label": "Oui", "value": "1" },
|
||||||
{ "id": "0", "label": "Non", "value": "0" },
|
{ "id": "0", "label": "Non", "value": "0" },
|
||||||
|
{ "id": "", "label": "", "value": "" },
|
||||||
]
|
]
|
||||||
|
|
||||||
const [p_detail_header_devis_relance_auto, setp_detail_header_devis_relance_auto] = useState("");
|
const [p_detail_header_devis_relance_auto, setp_detail_header_devis_relance_auto] = useState("");
|
||||||
|
@ -5952,10 +5955,10 @@ const Partner_Commande = (props) => {
|
||||||
value={New_Option_Oui_Non.filter((data) => (data).id === String(p_detail_header_devis_relance_auto))[0].label}
|
value={New_Option_Oui_Non.filter((data) => (data).id === String(p_detail_header_devis_relance_auto))[0].label}
|
||||||
onChange={(event, value) => {
|
onChange={(event, value) => {
|
||||||
if (value && value.value) {
|
if (value && value.value) {
|
||||||
p_detail_header_devis_relance_auto(value.value);
|
setp_detail_header_devis_relance_auto(value.value);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
p_detail_header_devis_relance_auto("");
|
setp_detail_header_devis_relance_auto("");
|
||||||
}
|
}
|
||||||
setOrder_data_changed("1");
|
setOrder_data_changed("1");
|
||||||
}}
|
}}
|
||||||
|
@ -5972,7 +5975,10 @@ const Partner_Commande = (props) => {
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
{String(order_data_edit_mode) !== "1" && <div className="session_caract"> Fréquence Relance <br />
|
{String(order_data_edit_mode) !== "1" && <div className="session_caract">
|
||||||
|
<Tooltip className="tooltip_css" id="info_relance_1" style={{ "fontSize": "12px" }} />
|
||||||
|
<a data-tooltip-id="info_relance_1" data-tooltip-html="Le devis sera envoyé tous les X jours, tant qu'il est encours et non expiré ">
|
||||||
|
Fréquence Relance (en jour) <FcInfo /> </a> <br />
|
||||||
<TextField
|
<TextField
|
||||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
required
|
required
|
||||||
|
@ -5990,29 +5996,30 @@ const Partner_Commande = (props) => {
|
||||||
/>
|
/>
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
{String(order_data_edit_mode) === "1" && New_Option_Frequence_Relance && <div className="session_caract"> Fréquence Relance <br />
|
{String(order_data_edit_mode) === "1" && New_Option_Frequence_Relance && <div className="session_caract">
|
||||||
<Autocomplete
|
<Tooltip className="tooltip_css" id="info_relance_1" style={{ "fontSize": "12px" }} />
|
||||||
disablePortal
|
<a data-tooltip-id="info_relance_1" data-tooltip-html="Le devis sera envoyé tous les X jours, tant qu'il est encours et non expiré ">
|
||||||
|
Fréquence Relance (en jour) <FcInfo /> </a> <br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
name="detail_header_devis_freq_relance_auto"
|
name="detail_header_devis_freq_relance_auto"
|
||||||
id="detail_header_devis_freq_relance_auto"
|
id="detail_header_devis_freq_relance_auto"
|
||||||
className="disabled_style"
|
inputProps={{ min: 1, max: 90 }}
|
||||||
options={New_Option_Frequence_Relance}
|
InputLabelProps={{
|
||||||
value={p_detail_header_devis_frequence_relance}
|
shrink: true,
|
||||||
onChange={(event, value) => {
|
|
||||||
if (value && value.value) {
|
|
||||||
setp_detail_header_devis_frequence_relance(value.value);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
setp_detail_header_devis_frequence_relance("");
|
|
||||||
}
|
|
||||||
setOrder_data_changed("1");
|
|
||||||
}}
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={p_detail_header_devis_frequence_relance}
|
||||||
|
|
||||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
type="number"
|
||||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
onChange={(e) => {
|
||||||
|
setp_detail_header_devis_frequence_relance(e.target.value);
|
||||||
/>
|
setOrder_data_changed("1");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ import { TransitionProps } from '@mui/material/transitions';
|
||||||
import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif";
|
import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif";
|
||||||
import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
|
import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
|
||||||
import ToggleSwitch from "./ToggleSwitch";
|
import ToggleSwitch from "./ToggleSwitch";
|
||||||
|
import { FcInfo } from "react-icons/fc";
|
||||||
|
|
||||||
const Partner_Configuration_Technique = (props) => {
|
const Partner_Configuration_Technique = (props) => {
|
||||||
|
|
||||||
|
@ -4354,7 +4355,7 @@ const Partner_Configuration_Technique = (props) => {
|
||||||
|
|
||||||
{display_detail_quotation_config && String(display_detail_quotation_config) === "1" && <div className="div_row">
|
{display_detail_quotation_config && String(display_detail_quotation_config) === "1" && <div className="div_row">
|
||||||
{config_quotation_data_edit_mode && String(config_quotation_data_edit_mode) === "1" &&
|
{config_quotation_data_edit_mode && String(config_quotation_data_edit_mode) === "1" &&
|
||||||
New_Config_Quotation_Point &&
|
New_Config_Quotation_Point &&
|
||||||
<div className="session_caract"> Point de configuration<br />
|
<div className="session_caract"> Point de configuration<br />
|
||||||
|
|
||||||
<Autocomplete
|
<Autocomplete
|
||||||
|
@ -4434,33 +4435,36 @@ const Partner_Configuration_Technique = (props) => {
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
{String(config_quotation_data_edit_mode) === "1" && String(p_detail_quotation_config_point) === "frequence_relance_auto" &&
|
{String(config_quotation_data_edit_mode) === "1" && String(p_detail_quotation_config_point) === "frequence_relance_auto" &&
|
||||||
<div className="session_caract"> Valeur de configuration<br />
|
<div className="session_caract">
|
||||||
|
<Tooltip className="tooltip_css" id="info_relance_1" style={{ "fontSize": "12px" }} />
|
||||||
|
<a data-tooltip-id="info_relance_1" data-tooltip-html="Le devis sera envoyé tous les X jours, tant qu'il est encours et non expiré ">
|
||||||
|
Fréquence Relance (en jour) <FcInfo /> </a>
|
||||||
|
<br />
|
||||||
|
|
||||||
<Autocomplete
|
<TextField
|
||||||
disablePortal
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
name="detail_config_valeur"
|
name="detail_config_valeur"
|
||||||
id="detail_config_valeur"
|
id="detail_config_valeur"
|
||||||
|
|
||||||
className="disabled_style"
|
type="number"
|
||||||
options={New_Option_Frequence_Relance}
|
InputLabelProps={{
|
||||||
value={p_detail_quotation_config_valeur}
|
shrink: true,
|
||||||
onChange={(event, value) => {
|
|
||||||
if (value && value.value) {
|
|
||||||
setp_detail_quotation_config_valeur(value.value);
|
|
||||||
setConfig_quotation_data_changed("1");
|
|
||||||
} else {
|
|
||||||
setp_detail_quotation_config_valeur("");
|
|
||||||
setConfig_quotation_data_changed("1");
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={p_detail_quotation_config_valeur}
|
||||||
|
onChange={(e) => {
|
||||||
|
|
||||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
setp_detail_quotation_config_valeur(e.target.value);
|
||||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
setConfig_quotation_data_changed("1");
|
||||||
|
|
||||||
/>
|
|
||||||
}
|
}
|
||||||
/>
|
}
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue