revert logic of founder's part size back to personal > 100%
This commit is contained in:
parent
558f210e99
commit
7b1e8db3d6
@ -806,13 +806,18 @@ class Form_4_Shareholders extends QuestionnaireForm
|
||||
}
|
||||
}
|
||||
|
||||
if(parseInt(total_parts, 10) > 100)
|
||||
{
|
||||
errors[0].push(`founder_part_total`);
|
||||
}
|
||||
|
||||
if(parseInt(_get(founder_persons[f], "identity_document.doctype"), 10) === 100000000 && errors.indexOf("identity_document.seria") < 0 && errors.indexOf("identity_document.docnumber") < 0)
|
||||
{
|
||||
const founder_document_check_response = await checkDocumentData({
|
||||
seria: _get(founder_persons[f], "identity_document.seria"),
|
||||
number: _get(founder_persons[f], "identity_document.docnumber"),
|
||||
});
|
||||
|
||||
|
||||
if(founder_document_check_response[0] !== undefined && founder_document_check_response[0].qc !== 0)
|
||||
{
|
||||
errors[f].push(`identity_document.invalid`);
|
||||
@ -822,11 +827,6 @@ class Form_4_Shareholders extends QuestionnaireForm
|
||||
}
|
||||
}
|
||||
|
||||
if(parseInt(total_parts, 10) !== 100)
|
||||
{
|
||||
errors[0].push(`founder_part_total`);
|
||||
}
|
||||
|
||||
this.setState({ errors, loading: false }, () =>
|
||||
{
|
||||
window.scroll(0, 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user