Skip to content

Commit

Permalink
feat: set check on the name critical
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien committed Jan 3, 2024
1 parent b7814bd commit 75221b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum DocumentRule {
R_TAX_LEAF( Level.CRITICAL, "Veuillez fournir les feuillets des avis"),
R_TAX_ALL_LEAF( Level.WARN, "Veuillez fournir tous les feuillets des avis"),// feuillet 1 founi
R_TAX_N3( Level.CRITICAL, "Les avis d'imposition antérieur à N-3 ne sont pas autorisé"),
R_TAX_NAMES( Level.WARN, "Les noms et prénoms ne correspondent pas");
R_TAX_NAMES( Level.CRITICAL, "Les noms et prénoms ne correspondent pas");

public enum Level{
CRITICAL, WARN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public DocumentAnalysisReport process(Document document, @NotNull DocumentAnalys

if (!(PersonNameComparator.bearlyEqualsTo(qrDocument.getDeclarant1Nom(), lastName, firstName)
|| (qrDocument.getDeclarant2Nom() != null &&
PersonNameComparator.bearlyEqualsTo(qrDocument.getDeclarant1Nom(), lastName, firstName))
PersonNameComparator.bearlyEqualsTo(qrDocument.getDeclarant2Nom(), lastName, firstName))
)) {
log.error("Le nom/prenom ne correpond pas à l'uilitsation tenantId:" + document.getTenant().getId() + " firstname: " + firstName);
brokenRules.add(DocumentBrokenRule.builder()
Expand Down

0 comments on commit 75221b0

Please sign in to comment.