/**
  * @name input($pAchat)
  * @return bool
  * @desc Test la validite de l'élément
  */
 public function input($pAchat)
 {
     if ($this->estAchat($pAchat)) {
         $lOperationAchat = $pAchat->getOperationAchat();
         $lOperationAchatSolidaire = $pAchat->getOperationAchatSolidaire();
         $lRechargement = $pAchat->getRechargement();
         $lOperationValid = new \OperationValid();
         return (!is_null($lOperationAchat->getIdCompte()) && ($lOperationValid->insert($pAchat->getOperationAchat()) || $lOperationValid->update($pAchat->getOperationAchat())) || !is_null($lOperationAchatSolidaire->getIdCompte()) && ($lOperationValid->insert($pAchat->getOperationAchatSolidaire()) || $lOperationValid->update($pAchat->getOperationAchatSolidaire()))) && $this->produits($pAchat->getProduits()) || !is_null($lRechargement->getIdCompte()) && ($lOperationValid->insert($pAchat->getRechargement()) || $lOperationValid->update($pAchat->getRechargement()));
     } else {
         return false;
     }
 }
 /**
  * @name input($pFacture)
  * @return bool
  * @desc Test la validite de l'élément
  */
 public function input($pFacture)
 {
     if ($this->estFacture($pFacture)) {
         $lId = $pFacture->getId();
         $lOperationProducteur = $pFacture->getOperationProducteur();
         $lOperationZeybu = $pFacture->getOperationZeybu();
         $lOperationValid = new \OperationValid();
         return (is_null($lId->getId()) || $lId->getId() == '' || $lOperationValid->delete($lId->getId())) && (!is_null($lOperationProducteur->getIdCompte()) || $lOperationValid->insert($lOperationProducteur)) && (!is_null($lOperationProducteur->getId()) || $lOperationValid->update($lOperationProducteur)) && (is_null($lOperationZeybu->getId()) || $lOperationValid->update($lOperationZeybu)) && $this->produits($pFacture->getProduits());
     } else {
         return false;
     }
 }
 /**
  * @name set($pOperation)
  * @param OperationVO
  * @return integer
  * @desc Ajoute ou modifie une opération
  */
 public function set($pOperation)
 {
     $lOperationValid = new OperationValid();
     if ($lOperationValid->insert($pOperation)) {
         return $this->insert($pOperation);
     } else {
         if ($lOperationValid->update($pOperation)) {
             return $this->update($pOperation);
         } else {
             return false;
         }
     }
 }