@@ -57,7 +57,7 @@ public DatabasePersonneDto(Long id, Etat etat, CategoriePersonne categorie, Stri
5757 if (etat == Etat .Delete && dateModification .equals (dateAcquittement )) {
5858 this .etat = Etat .Deleting ;
5959 this .dateSuppression = dateModification ;
60- } else if (dateAcquittement ==null ){
60+ } else if (dateAcquittement ==null && etat != Etat . Incertain ){
6161 this .etat = Etat .Non_alimente ;
6262 }
6363 this .uid = uid ;
@@ -80,7 +80,7 @@ public DatabasePersonneDto(Long id, Etat etat, CategoriePersonne categorie, Stri
8080 if (etat == Etat .Delete && dateModification .equals (dateAcquittement )) {
8181 this .etat = Etat .Deleting ;
8282 this .dateSuppression = dateModification ;
83- } else if (dateAcquittement ==null ){
83+ } else if (dateAcquittement ==null && etat != Etat . Incertain ){
8484 this .etat = Etat .Non_alimente ;
8585 }
8686 this .uid = uid ;
@@ -102,7 +102,7 @@ public DatabasePersonneDto(Long id, Etat etat, CategoriePersonne categorie, Stri
102102 if (etat == Etat .Delete && dateModification .equals (dateAcquittement )) {
103103 this .etat = Etat .Deleting ;
104104 this .dateSuppression = dateModification ;
105- } else if (dateAcquittement ==null ){
105+ } else if (dateAcquittement ==null && etat != Etat . Incertain ){
106106 this .etat = Etat .Non_alimente ;
107107 }
108108 this .uid = "" ;
@@ -125,7 +125,7 @@ public DatabasePersonneDto(Long id, Etat etat, CategoriePersonne categorie, Stri
125125 if (etat == Etat .Delete && dateModification .equals (dateAcquittement )) {
126126 this .etat = Etat .Deleting ;
127127 this .dateSuppression = dateModification ;
128- } else if (dateAcquittement ==null ){
128+ } else if (dateAcquittement ==null && etat != Etat . Incertain ){
129129 this .etat = Etat .Non_alimente ;
130130 }
131131 this .uid = "" ;
@@ -146,7 +146,7 @@ public DatabasePersonneDto(APersonne aPersonne) {
146146 if (aPersonne .getEtat () == Etat .Delete && aPersonne .getDateModification ().equals (aPersonne .getDateAcquittement ())) {
147147 this .etat = Etat .Deleting ;
148148 this .dateSuppression = aPersonne .getDateModification ();
149- } else if (aPersonne .getDateAcquittement ()==null ){
149+ } else if (aPersonne .getDateAcquittement ()==null && etat != Etat . Incertain ){
150150 this .etat = Etat .Non_alimente ;
151151 }
152152 this .dateModification = aPersonne .getDateModification ();
0 commit comments