fix(paiement): envoi de l'email de confirmation uniquement si le paiement est remis
This commit is contained in:
@@ -70,6 +70,11 @@ public class PaiementEmailService {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Boolean.FALSE.equals(paiement.getRemis())) {
|
||||
log.info("Paiement non remis (remis=false) pour le paiement ID {}. L'e-mail de confirmation ne sera pas envoyé.", paiement.getId());
|
||||
return false;
|
||||
}
|
||||
|
||||
Licence licence = paiement.getLicence();
|
||||
String recipientEmail = licence.getAdherent() != null ? licence.getAdherent().getEmail() : null;
|
||||
log.info(">>> [PaiementEmailService] Adhérent: {} {}, Email: {}",
|
||||
|
||||
Reference in New Issue
Block a user