예제 #1
0
 		$leClient->actif="o";
 		$leClient->modifierClient();
 		*/
 $laCom->nom_l = $textNom_l;
 $laCom->prenom_l = $textPrenom_l;
 $laCom->tel_l = $textTel_l;
 $laCom->fax_l = $textFax_l;
 $laCom->raison_l = $textSociete_l;
 $laCom->adr1_l = $textAdr1_l;
 $laCom->adr2_l = $textAdr2_l;
 $laCom->cp_l = $textCp_l;
 $laCom->ville_l = $textVille_l;
 $laCom->pays_l = $selectPays_l;
 if ($numpays != $selectPays_l) {
     $laCom->pays = $selectPays_l;
     $laCom->modifierPays();
 }
 $laCom->enregistrerLivraison();
 //enregistrement des infos de livraison facturation
 //la commande se transforme eventuellement en demande de devis
 $lePanier = new Panier();
 $lePanier->numcom = $_SESSION['numcom'];
 $lePanier->pays = $laCom->getNumPays();
 $lePanier->infosPanier();
 if ($lePanier->pays != "247" && $lePanier->totalPoids != "0,00") {
     $laCom->montantHT = $lePanier->totalHT;
     $laCom->montantTTC = $lePanier->totalTTC;
     $laCom->fraisPort = $lePanier->fraisPort;
     $laCom->totalPoids = $lePanier->totalPoids;
     $montantDevis = $lePanier->totalTTC;
     $laCom->enregistrerDemandeDevis();