} else {
                 if ($contrat->typeBien() == "localCommercial") {
                     $locauxManager->changeStatus($contrat->idBien(), "Disponible");
                 }
             }
             //change status of the new contrat Bien from Disponible to Vendu
             //and change the property price to the price of sold
             if ($typeBien == "appartement") {
                 $contratManager->changerBien($idContrat, $idBien, $typeBien);
                 $appartementManager->changeStatus($idBien, "Vendu");
                 $appartementManager->updatePrix($prixVente, $idBien);
             } else {
                 if ($typeBien == "localCommercial") {
                     $contratManager->changerBien($idContrat, $idBien, $typeBien);
                     $locauxManager->changeStatus($idBien, "Vendu");
                     $locauxManager->updatePrix($prixVente, $idBien);
                 }
             }
         }
         $actionMessage = "<strong>Opération Valide : </strong>Contrat modifié(e) avec succès.";
         $typeMessage = "success";
         $redirectLink = "Location:../contrat.php?codeContrat=" . $codeContrat;
         if (isset($_POST['source']) and $_POST['source'] == "clients-list") {
             $redirectLink = "Location:../clients-list.php";
         }
     } else {
         $actionMessage = "<strong>Erreur Modification Client : </strong>Vous devez remplir le champ <strong>&lt;Prix de vente&gt;</strong>.";
         $typeMessage = "error";
         $redirectLink = "Location:../contrat.php?codeContrat=" . $codeContrat;
     }
 } else {