Exemple #1
0
     			4. unset($_SESSION['numcom']);
     			* */
 } else {
     if ($action == "validerReg") {
         //règlement par chèque ou virement (dans panier-ifip transmis dans paiement.php)
         if ($radioReg == "ch" || $radioReg == "vi") {
             $laCom = new Commande();
             $laCom->numclient = $_SESSION['numclient'];
             $laCom->numcom = $_SESSION['numcom'];
             if ($forma) {
                 //Le client règle une formation suite au mail reçu par l'admin
                 $laCom->infosCommande();
                 $montantCh = $laCom->montantTTC;
                 //$laCom->montantTTC=$laCom->montantTTC; // modif julien decembre 2009
                 if ($radioReg == "ch") {
                     $laCom->validerCommandeCheque();
                 } else {
                     if ($radioReg == "vi") {
                         $laCom->validerCommandeVirement();
                     }
                 }
                 //ajout HC janvier 2010 : paiement par virement
             } else {
                 //Le client règle des docs (ouvrage,article, etc...)
                 $numpays = $laCom->getNumPays();
                 $lePanier = new Panier();
                 $lePanier->numcom = $_SESSION['numcom'];
                 $lePanier->pays = $numpays;
                 $lePanier->infosPanier();
                 $laCom->montantHT = $lePanier->totalHT;
                 $laCom->montantTTC = $lePanier->totalTTC;