вариант справки ФНС c ИНН
This commit is contained in:
@@ -634,6 +634,7 @@ def send_registration_request2():
|
|||||||
pct_doc_date = date_obj.strftime("%Y-%m-%dT00:00:00.000Z")
|
pct_doc_date = date_obj.strftime("%Y-%m-%dT00:00:00.000Z")
|
||||||
pct_doc_org_name = raw_data.get("passport_issued_by1", "")
|
pct_doc_org_name = raw_data.get("passport_issued_by1", "")
|
||||||
pct_doc_org_kod = raw_data.get("postal_code1", "")
|
pct_doc_org_kod = raw_data.get("postal_code1", "")
|
||||||
|
inn1 = ""
|
||||||
|
|
||||||
elif raw_data.get("svedetelstvo") and raw_data.get("svedetelstvo_date") and raw_data.get(
|
elif raw_data.get("svedetelstvo") and raw_data.get("svedetelstvo_date") and raw_data.get(
|
||||||
"svedetelstvo_issued_by"):
|
"svedetelstvo_issued_by"):
|
||||||
@@ -645,6 +646,17 @@ def send_registration_request2():
|
|||||||
pct_doc_date = date_obj.strftime("%Y-%m-%dT00:00:00.000Z")
|
pct_doc_date = date_obj.strftime("%Y-%m-%dT00:00:00.000Z")
|
||||||
pct_doc_org_name = raw_data.get("svedetelstvo_issued_by", "")
|
pct_doc_org_name = raw_data.get("svedetelstvo_issued_by", "")
|
||||||
pct_doc_org_kod = ""
|
pct_doc_org_kod = ""
|
||||||
|
inn1 = ""
|
||||||
|
elif raw_data.get("inn1"):
|
||||||
|
inn1 = raw_data.get("inn1", "")
|
||||||
|
pct_doc_type = ""
|
||||||
|
pct_doc_ind = ""
|
||||||
|
pct_doc_ser = ""
|
||||||
|
pct_doc_nom = ""
|
||||||
|
pct_doc_date = ""
|
||||||
|
pct_doc_org_name = ""
|
||||||
|
pct_doc_org_kod = ""
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return jsonify({'success': False, "error": "Недостаточно данных для определения документа"}), 400
|
return jsonify({'success': False, "error": "Недостаточно данных для определения документа"}), 400
|
||||||
|
|
||||||
@@ -666,7 +678,7 @@ def send_registration_request2():
|
|||||||
plc_inn = raw_data.get("innnal", "")
|
plc_inn = raw_data.get("innnal", "")
|
||||||
|
|
||||||
user_id = raw_data.get('user_id')
|
user_id = raw_data.get('user_id')
|
||||||
inn1=raw_data.get("inn1", "")
|
|
||||||
email1=raw_data.get("email1", "")
|
email1=raw_data.get("email1", "")
|
||||||
# Извлекаем годы
|
# Извлекаем годы
|
||||||
selected_years = raw_data.get('selected_years', [])
|
selected_years = raw_data.get('selected_years', [])
|
||||||
|
|||||||
Reference in New Issue
Block a user