ESPD / ESPD-Service

Other
18 stars 69 forks source link

Incorrect exclusion criterion referenced #142

Closed ziykon closed 7 years ago

ziykon commented 7 years ago

Looks like there is a bug in the insolvencyListEO map in CriteriaTemplates.java (the referenced ExclusionCriterion should be the swapped between the two below):

            ImmutableMap.<String, Object>builder().
                    put("template", "exclusionFormTemplate").
                    put("field", "agreementsWithOtherEO").
                    put("title_code", "crit_eu_title_agreement_economic").
                    put("description_code", "crit_eu_text_agreement_economic").
                    put("checkExistanse", "true").
                    put("availableElectronically", "false").
                    put("criterion", ExclusionCriterion.GUILTY_OF_PROFESSIONAL_MISCONDUCT).build(),

            ImmutableMap.<String, Object>builder().
                    put("template", "aexclusionFormTemplate").
                    put("field", "guiltyGrave").
                    put("title_code", "crit_eu_title_guilty_misconduct").
                    put("description_code", "crit_eu_text_guilty_misconduct").
                    put("checkExistanse", "true").
                    put("availableElectronically", "false").
                    put("criterion", ExclusionCriterion.AGREEMENTS_WITH_OTHER_EO).build(),
dg-grow-alexey-lukashov commented 7 years ago

fixed on develop