this._onRemoveError(index, name) }
+ removeShareholder={ this._handle_onRemoveShareholder }
+ clearFounderFromListSelection={ this._handle_onClearFounderFromListSelection }
+ changeFounderSelectionFromList={ this._handle_onChangeFounderSelectionFromList }
+ contacts={ client_contacts }
+ checking={ checking }
+ />
+ ) }
+ ) }
{ !checking && (
diff --git a/pages/api/questionnaire/download.js b/pages/api/questionnaire/download.js
index 42b00de..e260704 100644
--- a/pages/api/questionnaire/download.js
+++ b/pages/api/questionnaire/download.js
@@ -16,6 +16,12 @@ const address = {
100000002: "postal",
};
+const personal_doctypes = {
+ 100000000: "Паспорт РФ",
+ 100000001: "Иностранный паспорт",
+ 100000002: "Вид на жительство",
+};
+
const fields = {
main: {
title: { name: "main_title", type: "text", bind: null, },
@@ -159,10 +165,11 @@ export default async function handler(req, res)
}
else if(field === "personal")
{
- const { citizenship, doctype, seria, docnumber, code, issueby, issuedate, } = questionnaire[group][p].identity_document;
+ const { birthdate, } = questionnaire[group][p];
+ const { placebirth, citizenship, doctype, seria, docnumber, code, issueby, issuedate, } = questionnaire[group][p].identity_document;
fields[group][p][field].bind = form.getTextField(fields[group][p][field].name);
if(fields[group][p][field].size !== undefined) { fields[group][p][field].bind.setFontSize(fields[group][p][field].size); }
- fields[group][p][field].bind.setText(`Гражданство: ${ citizenship.title }, паспорт ${ seria.toString() } ${ docnumber.toString() }, выдан \n${ issueby.toString() }, ${ code.toString() } ${ moment(issuedate).format("DD.MM.YYYY") }`.toUpperCase());
+ fields[group][p][field].bind.setText(`${ moment(birthdate).format("DD.MM.YYYY") }, ${ placebirth }, ${ citizenship.title }, ${ personal_doctypes[doctype].toString().toUpperCase() } ${ seria.toString() } ${ docnumber.toString() }, выдан ${ issueby.toString() }, ${ code.toString() } ${ moment(issuedate).format("DD.MM.YYYY") }`.toUpperCase());
}
else if(field === "registration")
{
diff --git a/pages/api/questionnaire/send.js b/pages/api/questionnaire/send.js
index ebcb6c0..af7a50c 100644
--- a/pages/api/questionnaire/send.js
+++ b/pages/api/questionnaire/send.js
@@ -192,6 +192,7 @@ export default async function handler(req, res)
founder_persons[i].telephone = checkNullEmpty(founder_persons[i].telephone) ? founder_persons[i].telephone.replace(/[^0-9]/g, '') : null;
founder_persons[i].identity_document.issuedate = checkNullEmpty(founder_persons[i].identity_document.issuedate) ? moment(founder_persons[i].identity_document.issuedate).format("YYYY-MM-DD") : null;
founder_persons[i].identity_document.citizenship_code = founder_persons[i].identity_document.citizenship.code.toString();
+ founder_persons[i].birthdate = checkNullEmpty(founder_persons[i].birthdate) ? moment(founder_persons[i].birthdate).format("YYYY-MM-DD") : null;
if(founder_persons[i].middlename !== "" && founder_persons[i].middlename !== null)
{