Esempio n. 1
0
 /**
  * @return ErrorElements
  */
 public function validatePaiementMontant()
 {
     $value = $this->_object->getPaiementMontant();
     if ($value) {
         if (!$this->_object->getPaiementDevise() && !$this->getValidateImport()) {
             $this->_errorElement->with('paiement_montant')->addViolation('"Paiement Devise" can\'t be empty in case if "Montant payé" is not empty')->end();
         }
         if (!$this->_object->getPaiementDate()) {
             $this->_errorElement->with('paiement_montant')->addViolation('"Paiement Date" can\'t be empty in case if "Montant payé" is not empty')->end();
         }
     }
     return $this;
 }