* Variables contenant les valeurs nécessaires à ce contrôle
*/
private String ligneNodeId, civiliteNodeId, prenomNodeId, tiersNodeId = "";
- private String exercice, idBordereau, typeBordereau, catTiers, idPce, adresse2, ville, civilite, prenom = "";
+ private String exercice, idBordereau, typeBordereau, catTiers, idPce, adresse2, ville, cp, civilite, prenom = "";
private boolean isDepense = false;
private final ArrayList<String> valeursCivilite = new ArrayList<String>();
private Document tableRef;
private static final String CHEMIN_TIERS_CATTIERS = CHEMIN_TIERS_INFO + "CatTiers/";
private static final String CHEMIN_TIERS_ADRESSE2 = CHEMIN_TIERS_ADRESSE + "Adr2/";
private static final String CHEMIN_TIERS_VILLE = CHEMIN_TIERS_ADRESSE + "Ville/";
+ private static final String CHEMIN_TIERS_CP = CHEMIN_TIERS_ADRESSE + "CP/";
private static final String CHEMIN_TIERS_CIVILITE = CHEMIN_TIERS_INFO + "Civilite/";
private static final String CHEMIN_TIERS_PRENOM = CHEMIN_TIERS_INFO + "Prenom/";
if (xpath.endsWith(CHEMIN_TIERS)) {
this.catTiers = "";
this.adresse2 = this.ville = "";
+ this.cp = "";
this.civilite = this.civiliteNodeId = "";
this.prenom = this.prenomNodeId = "";
this.tiersNodeId = atts.getValue("ano:node-id");
this.adresse2 = atts.getValue("V");
} else if (xpath.endsWith(CHEMIN_TIERS_VILLE)) {
this.ville = atts.getValue("V");
+ } else if (xpath.endsWith(CHEMIN_TIERS_CP)) {
+ this.cp = atts.getValue("V");
} else if (xpath.endsWith(CHEMIN_TIERS_CIVILITE)) {
this.civilite = atts.getValue("V");
this.civiliteNodeId = atts.getValue("ano:node-id");
nodeId = this.tiersNodeId; // plusieurs blocs Tiers possibles par Ligne donc on remonte le nodeId sur le bloc Tiers
}
- if (this.adresse2.equals("") || this.ville.equals("")) {
+ if (this.adresse2.equals("") || this.ville.equals("") || this.cp.equals("")) {
final Anomalie ano = this.addPesAnomalie(this, this.getDocumentModel(), this.messageAnomalie, this.isDepense, this.exercice, this.typeBordereau, this.idBordereau, "MTIE03", null, PIECE_ELEMENT_ID, this.idPce);
if (this.adresse2.equals("")) {
if (this.ville.equals("")) {
ano.addNode(nodeId, "Ville");
}
+ if (this.cp.equals("")) {
+ ano.addNode(nodeId, "CP");
+ }
this.anos.add(ano);
}