Add consultant onboarding for firm administrators
This commit is contained in:
@@ -136,6 +136,13 @@ def user_onboarding_submit(
|
||||
designation: str = Form(""),
|
||||
date_of_joining: str = Form(""),
|
||||
employment_type: str = Form("full_time"),
|
||||
consultant_type: str = Form("external_consultant"),
|
||||
firm_name: str = Form(""),
|
||||
specialisation: str = Form(""),
|
||||
gstin: str = Form(""),
|
||||
pan: str = Form(""),
|
||||
address: str = Form(""),
|
||||
remarks: str = Form(""),
|
||||
csrf_token: str = Form(...),
|
||||
):
|
||||
validate_csrf(request, csrf_token)
|
||||
@@ -164,6 +171,13 @@ def user_onboarding_submit(
|
||||
designation=designation,
|
||||
date_of_joining=date_of_joining,
|
||||
employment_type=employment_type,
|
||||
consultant_type=consultant_type,
|
||||
firm_name=firm_name,
|
||||
specialisation=specialisation,
|
||||
gstin=gstin,
|
||||
pan=pan,
|
||||
address=address,
|
||||
remarks=remarks,
|
||||
)
|
||||
except Exception as exc:
|
||||
db.rollback()
|
||||
@@ -185,6 +199,13 @@ def user_onboarding_submit(
|
||||
"designation": designation,
|
||||
"date_of_joining": date_of_joining,
|
||||
"employment_type": employment_type,
|
||||
"consultant_type": consultant_type,
|
||||
"firm_name": firm_name,
|
||||
"specialisation": specialisation,
|
||||
"gstin": gstin,
|
||||
"pan": pan,
|
||||
"address": address,
|
||||
"remarks": remarks,
|
||||
},
|
||||
),
|
||||
status_code=400,
|
||||
|
||||
Reference in New Issue
Block a user