a
This commit is contained in:
parent
c27f92bd96
commit
8297673510
|
|
@ -18859,58 +18859,38 @@ function telRwanda(valeur)
|
|||
function envoyer_prescription_medicament()
|
||||
{
|
||||
smsOrdonnance = $('#smsOrdonnance').val();
|
||||
alert("envoyer_prescription_medicament => "+smsOrdonnance);
|
||||
|
||||
const numero = telRwanda(smsOrdonnance);
|
||||
alert("numero => "+numero)
|
||||
if (numero === null) {
|
||||
alert('Numéro invalide : '+smsOrdonnance);
|
||||
console.error('Numéro invalide :', smsOrdonnance);
|
||||
} else {
|
||||
alert('Numéro valide : '+smsOrdonnance);
|
||||
console.log('Numéro valide :', numero); // ex. +250788123456
|
||||
}
|
||||
|
||||
/*
|
||||
if(smsOrdonnance<=" "){
|
||||
v_msg="No de téléphone obligatoire obligatoire!";
|
||||
v_msgEng="An appointment date is required!";
|
||||
v_msg="Revoir le No de téléphone!";
|
||||
v_msgEng="Check the phone number!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
$("#dateRdvAccordee").focus();
|
||||
$("#smsOrdonnance").focus();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
donnees = 'smsOrdonnance='+numero;
|
||||
|
||||
alert(donnees);
|
||||
|
||||
|
||||
if(controle_numerique(controle))
|
||||
{
|
||||
if(quantite==0)
|
||||
{
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxdetailpharmacien/majquantitepha/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
// $("#medicaments").html(data);
|
||||
$("#livraison").html(data);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
alerter_depassement_limite();
|
||||
controle.focus();
|
||||
v_msg="Veuillez saisir la quantité!";
|
||||
v_msgEng="Please enter the quantity!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
donnees = 'idMedicament='+idMedicament+"&quantite="+quantite;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxdetailpharmacien/majquantitepha/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
// $("#medicaments").html(data);
|
||||
$("#livraison").html(data);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
alerter_depassement_limite();
|
||||
controle.focus();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user