Add consultant onboarding for firm administrators

This commit is contained in:
A R R R Associates
2026-07-17 13:55:14 +05:30
parent 46536bf96e
commit 9c04d97625
6 changed files with 141 additions and 15 deletions
+21
View File
@@ -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,