06/06/23 - 19h
parent
7c50bf1d72
commit
673d6746cd
|
@ -1147,7 +1147,7 @@ function Abonnement(props) {
|
||||||
<div style={{ "textAlign": "left", "width": "50%", "float": "left" }} className="block_remise">
|
<div style={{ "textAlign": "left", "width": "50%", "float": "left" }} className="block_remise">
|
||||||
|
|
||||||
<a data-tooltip-id="tooltip_id_1" data-tooltip-content="Saisir le code remise">
|
<a data-tooltip-id="tooltip_id_1" data-tooltip-content="Saisir le code remise">
|
||||||
Code remise :
|
Code Remise :
|
||||||
<input type="text" id="discount_val" name="discount_val"
|
<input type="text" id="discount_val" name="discount_val"
|
||||||
minlength="4" maxlength="20" size="20" style={{ "width": "50%", "float": "right" }}
|
minlength="4" maxlength="20" size="20" style={{ "width": "50%", "float": "right" }}
|
||||||
onBlur={handleOnblur_Code_Promo}>
|
onBlur={handleOnblur_Code_Promo}>
|
||||||
|
@ -1175,9 +1175,30 @@ function Abonnement(props) {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{code_promo_text_to_display && String(code_promo_text_to_display) != "" &&
|
||||||
|
<div style={{ "width": "100%", "float": "left" }} id="div_nb_formation" className="mob_heigh">
|
||||||
|
<div style={{ "textAlign": "left", "width": "50%", "float": "left", "color": "green", "fontSize": "bold" }}>
|
||||||
|
Montant Remise :
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{String(handleOnblur_Code_Promo_api) === "true" &&
|
||||||
|
<div style={{ "textAlign": "right", "width": "50%", "float": "right", "color": "green", "fontSize": "bold" }}>
|
||||||
|
{String(code_promo_type) === "fix" && <nav>
|
||||||
|
- {(((packprice * new_nb_formations) - parseFloat(code_promo_valeur)) ).toFixed(2)} €
|
||||||
|
</nav>}
|
||||||
|
|
||||||
|
{String(code_promo_type) === "percent" && <nav>
|
||||||
|
- {((((packprice * new_nb_formations) * ( (parseFloat(code_promo_valeur) / 100)))) ).toFixed(2)} €
|
||||||
|
</nav>}
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
<div style={{ "width": "100%", "float": "left" }} id="div_nb_formation" className="mob_heigh">
|
<div style={{ "width": "100%", "float": "left" }} id="div_nb_formation" className="mob_heigh">
|
||||||
<div style={{ "textAlign": "left", "width": "50%", "float": "left" }}>
|
<div style={{ "textAlign": "left", "width": "50%", "float": "left" }}>
|
||||||
TVA :
|
TVA (20%):
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{String(handleOnblur_Code_Promo_api) !== "true" && <div style={{ "textAlign": "right", "width": "50%", "float": "left" }}>
|
{String(handleOnblur_Code_Promo_api) !== "true" && <div style={{ "textAlign": "right", "width": "50%", "float": "left" }}>
|
||||||
|
|
|
@ -1298,13 +1298,41 @@ function CheckOut(props) {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div style={{ "width": "90%", "float": "left" }} id="div_ttc">
|
||||||
|
<div style={{ "textAlign": "left", "width": "50%", "float": "left" }}>
|
||||||
|
Total HT :
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{String(handleOnblur_Code_Promo_api) !== "true" &&
|
||||||
|
<div style={{ "textAlign": "right", "width": "50%", "float": "right" }}>
|
||||||
|
{(packprice * nb_formations).toFixed(2)} €
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
{String(handleOnblur_Code_Promo_api) === "true" &&
|
||||||
|
<div style={{ "textAlign": "right", "width": "50%", "float": "right" }}>
|
||||||
|
|
||||||
|
{String(code_promo_type) === "fix" && <nav>
|
||||||
|
{(packprice * nb_formations).toFixed(2)} €
|
||||||
|
</nav>}
|
||||||
|
|
||||||
|
{String(code_promo_type) === "percent" && <nav>
|
||||||
|
{(packprice * nb_formations).toFixed(2)} €
|
||||||
|
</nav>}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div style={{ "width": "90%", "float": "left" }}>
|
<div style={{ "width": "90%", "float": "left" }}>
|
||||||
<Tooltip id="tooltip_id_1" />
|
<Tooltip id="tooltip_id_1" />
|
||||||
<div style={{ "textAlign": "left", "width": "50%", "float": "left" }}>
|
<div style={{ "textAlign": "left", "width": "50%", "float": "left" }}>
|
||||||
<a data-tooltip-id="tooltip_id_1" data-tooltip-content="Saisir le code remise">
|
<a data-tooltip-id="tooltip_id_1" data-tooltip-content="Saisir le code remise">
|
||||||
Code remise :
|
Code Remise :
|
||||||
<input type="text" id="discount_val" name="discount_val"
|
<input type="text" id="discount_val" name="discount_val"
|
||||||
minlength="4" maxlength="20" size="20" style={{ "width": "50%", "float": "right" }}
|
minlength="4" maxlength="20" size="20" style={{ "width": "50%", "float": "right" }}
|
||||||
onBlur={handleOnblur_Code_Promo}>
|
onBlur={handleOnblur_Code_Promo}>
|
||||||
|
@ -1328,41 +1356,31 @@ function CheckOut(props) {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style={{ "width": "90%", "float": "left" }} id="div_ttc">
|
|
||||||
<div style={{ "textAlign": "left", "width": "50%", "float": "left" }}>
|
{code_promo_text_to_display && String(code_promo_text_to_display) != "" &&
|
||||||
Total HT :
|
<div style={{ "width": "90%", "float": "left" }} id="div_nb_formation" className="mob_heigh">
|
||||||
|
<div style={{ "textAlign": "left", "width": "50%", "float": "left", "color": "green", "fontSize": "bold" }}>
|
||||||
|
Montant Remise :
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{String(handleOnblur_Code_Promo_api) !== "true" &&
|
|
||||||
<div style={{ "textAlign": "right", "width": "50%", "float": "right" }}>
|
|
||||||
{(packprice * nb_formations).toFixed(2) } €
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
|
|
||||||
{String(handleOnblur_Code_Promo_api) === "true" &&
|
{String(handleOnblur_Code_Promo_api) === "true" &&
|
||||||
<div style={{ "textAlign": "right", "width": "50%", "float": "right" }}>
|
<div style={{ "textAlign": "right", "width": "50%", "float": "right", "color": "green", "fontSize": "bold" }}>
|
||||||
|
|
||||||
{String(code_promo_type) === "fix" && <nav>
|
{String(code_promo_type) === "fix" && <nav>
|
||||||
{(((packprice * nb_formations) - parseFloat(code_promo_valeur))).toFixed(2) } €
|
- {(((packprice * nb_formations) - parseFloat(code_promo_valeur))).toFixed(2)} €
|
||||||
</nav>}
|
</nav>}
|
||||||
|
|
||||||
{String(code_promo_type) === "percent" && <nav>
|
{String(code_promo_type) === "percent" && <nav>
|
||||||
{((((packprice * nb_formations) * (1 - (parseFloat(code_promo_valeur) / 100))))).toFixed(2) } €
|
- {((((packprice * nb_formations) * ((parseFloat(code_promo_valeur) / 100))))).toFixed(2)} €
|
||||||
</nav>}
|
</nav>}
|
||||||
|
</div>}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
<div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style={{ "width": "90%", "float": "left" }}>
|
<div style={{ "width": "90%", "float": "left" }}>
|
||||||
<div style={{ "textAlign": "left", "width": "50%", "float": "left" }}>
|
<div style={{ "textAlign": "left", "width": "50%", "float": "left" }}>
|
||||||
|
|
||||||
TVA :
|
TVA (20%):
|
||||||
</div>
|
</div>
|
||||||
{String(handleOnblur_Code_Promo_api) !== "true" &&
|
{String(handleOnblur_Code_Promo_api) !== "true" &&
|
||||||
<div style={{ "textAlign": "right", "width": "50%", "float": "right" }}>
|
<div style={{ "textAlign": "right", "width": "50%", "float": "right" }}>
|
||||||
|
|
|
@ -564,7 +564,7 @@ const Partner = (props) => {
|
||||||
my_lms_url = (JSON.parse(res.data.message).lms_virtualhost_url) + "user_portal.php?recid=" + encodeURIComponent(JSON.parse(res.data.message).lms_part_recid) +
|
my_lms_url = (JSON.parse(res.data.message).lms_virtualhost_url) + "user_portal.php?recid=" + encodeURIComponent(JSON.parse(res.data.message).lms_part_recid) +
|
||||||
"&mysytoken=" + encodeURIComponent(JSON.parse(res.data.message).lms_pwd_mask);
|
"&mysytoken=" + encodeURIComponent(JSON.parse(res.data.message).lms_pwd_mask);
|
||||||
|
|
||||||
//console.log(" ### LMS url = ", my_lms_url);
|
console.log(" ### LMS url = ", my_lms_url);
|
||||||
setpartner_lms_url(my_lms_url);
|
setpartner_lms_url(my_lms_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue