diff --git a/components/questionnaire/forms/DigitalCertificates.js b/components/questionnaire/forms/DigitalCertificates.js index dd819da..6673de7 100644 --- a/components/questionnaire/forms/DigitalCertificates.js +++ b/components/questionnaire/forms/DigitalCertificates.js @@ -89,7 +89,7 @@ export default class DigitalCertificates extends React.Component { if(cert.Subject['INNLE'] !== undefined && cert.Subject['INNLE'] !== null && cert.Subject['INNLE'] !== "") { - if(main.inn !== cert.Subject['INN']) + if(main.inn !== cert.Subject['INNLE']) { errors.push('inn'); } @@ -329,7 +329,7 @@ export default class DigitalCertificates extends React.Component { certificate.errors.indexOf("name") > -1 ?

Не соответствует ФИО

:

 

} { certificate.errors.indexOf("inn") > -1 ?

Не соответствует ИНН

:

 

}

 

- { certificate.errors.indexOf("date") > -1 ?

{ certificate.errors.indexOf('invalid') > 1 && "Сертификат недействителен или нарушена цепочка сертификации" }{ certificate.errors.indexOf('date') > 1 && "Срок действия закончился" }

:

 

} + { certificate.errors.indexOf("date") > -1 ?

{ certificate.errors.indexOf('date') > 1 ? "Срок действия закончился" : certificate.errors.indexOf('invalid') > 1 ? "Сертификат недействителен или нарушена цепочка сертификации" : null }

:

 

} ) } diff --git a/components/questionnaire/forms/Form_4_Shareholders/index.js b/components/questionnaire/forms/Form_4_Shareholders/index.js index 93f4caa..734d382 100644 --- a/components/questionnaire/forms/Form_4_Shareholders/index.js +++ b/components/questionnaire/forms/Form_4_Shareholders/index.js @@ -792,9 +792,12 @@ class Form_4_Shareholders extends QuestionnaireForm { total_parts = total_parts + parseFloat(v) - if(parseFloat(v) < 25) + if(i > 0) { - errors[f].push(`founder_part`); + if(parseFloat(v) < 25) + { + errors[f].push(`founder_part`); + } } } else