diff --git a/thecaoffice-hr.py b/thecaoffice-hr.py index c98375b..c135b74 100644 --- a/thecaoffice-hr.py +++ b/thecaoffice-hr.py @@ -302,3 +302,58 @@ Paylod = { } # salary register download option. + + +/// Added BY Yatmesh on 13.01.2026 +/// Team list Response for old records and new records +/// Cause : Team List Not displaying on UI +/// Reason : value of key applicantNotes is getting as string of dictionary("{}") instead of dictionary({}) +/// +/// Team List Old response + +{ + "authorisations_json": null, + "department_id": 699, + "department_name": "Client Management", + "email": "aramduke@gmail.com", + "full_name": "Aarm Duke", + "hierarchy_level": 1, + "json_notes": "{\n \"pdf\": \"https://nexcom.ditscentre.in/utils/files/small/download/69315bd0a468dde807890681\",\n \"salary\": 30000,\n \"maritalStatus\": \"\",\n \"dateOfBirth\": \"\",\n \"dateOfJoin\": \"\",\n \"accountNumber\": \"\",\n \"ifsc\": \"\",\n \"bankName\": \"\",\n \"esicNumber\": \"\",\n \"ppfnumber\": \"\",\n \"emergencyContactNumber\": \"\",\n \"emergencyContactName\": \"\",\n \"photoUrl\": \"https://nexcom.ditscentre.in/utils/files/small/download/6900430c77c9b049da378dab\",\n \"aadhaarUrl\": \"\",\n \"panCardUrl\": \"\",\n \"address\": \"\",\n \"billingRate\": \"\",\n \"relationship\": \"\",\n \"city\": \"\",\n \"pincode\": \"\",\n \"branchId\": 84,\n \"weeklyOff\": [],\n \"weeklyWorkingHours\": 0,\n \"noOfPaidLeaves\": 0,\n \"country\": \"India\",\n \"lastDayOfWorking\": null,\n \"applicantNotes\": {\n \"age\": null,\n \"gender\": \"\",\n \"educationLevel\": null,\n \"noChildren\": null,\n \"spouseWorkingStatus\": null,\n \"noOfChildrenAbove18\": null,\n \"noOfChildrenBelow18\": null,\n \"employmentStatus\": \"\",\n \"attendanceAllowance\": 0,\n \"performanceAllowance\": 0,\n \"adaitechEmail\": null,\n \"adaitechPassword\": null,\n \"gearincEmail\": null,\n \"payrollFor\": null,\n \"contractStartDate\": null,\n \"contractEndDate\": null,\n \"nricNo\": null,\n \"taxNo\": null,\n \"epfNo\": null,\n \"perksoNo\": null,\n \"Salutation\": null,\n \"reportingToName\": \"Aditya Shah\",\n \"outlierId\": null,\n \"addressProofUrl\": null,\n \"appointmentLetterUrl\": null,\n \"offerLetterUrl\": null,\n \"pfUanNumber\": null,\n \"panCardNumber\": null,\n \"aadhaarCardNumber\": null,\n \"payRollType\": \"onRoll\",\n \"labourContractorName\": null,\n \"labourContractorId\": null,\n \"leaveAfter\": 10\n },\n \"userBasicSalary\": 25000,\n \"houseResidencesAllowance\": 3000,\n \"dearnessAllowance\": 0,\n \"conveyance\": 1000,\n \"allowance\": 1000,\n \"providentFund\": true,\n \"employeesInsurance\": true,\n \"professionalTax\": true,\n \"salaryType\": \"Monthly\",\n \"team_master\": true,\n \"account_master_id\": 43682\n}", + "phone_number": "+916655665577", + "pseudonym": "aramduke", + "reporting_to": 2057.0, + "role": "Crm Lead", + "user_id": 2876, + "user_status": "active" +} + +//Key point to look : +"applicantNotes": {\n \"age\": null,\n \"gender\": \"\",\n \"educationLevel\": null,\n \"noChildren\": null,\n \"spouseWorkingStatus\": null,\n \"noOfChildrenAbove18\": null,\n \"noOfChildrenBelow18\": null,\n \"employmentStatus\": \"\",\n \"attendanceAllowance\": 0,\n \"performanceAllowance\": 0,\n \"adaitechEmail\": null,\n \"adaitechPassword\": null,\n \"gearincEmail\": null,\n \"payrollFor\": null,\n \"contractStartDate\": null,\n \"contractEndDate\": null,\n \"nricNo\": null,\n \"taxNo\": null,\n \"epfNo\": null,\n \"perksoNo\": null,\n \"Salutation\": null,\n \"reportingToName\": \"Aditya Shah\",\n \"outlierId\": null,\n \"addressProofUrl\": null,\n \"appointmentLetterUrl\": null,\n \"offerLetterUrl\": null,\n \"pfUanNumber\": null,\n \"panCardNumber\": null,\n \"aadhaarCardNumber\": null,\n \"payRollType\": \"onRoll\",\n \"labourContractorName\": null,\n \"labourContractorId\": null,\n \"leaveAfter\": 10\n } + +//------------------------------------------------------------------------------------------------------------------------------- + + +////// Team List New response + +{ + "authorisations_json": null, + "department_id": 854, + "department_name": "TRAVEL DESK", + "email": "adineshkumarreddy@velankanigroup.com", + "full_name": "A Dinesh Kumar Reddy", + "hierarchy_level": 1, + "json_notes": "{\n \"pdf\": \"https://nexcom.ditscentre.in/utils/files/small/download/6965025e001c9ca7eb605961\",\n \"salary\": null,\n \"maritalStatus\": null,\n \"dateOfBirth\": null,\n \"dateOfJoin\": null,\n \"accountNumber\": null,\n \"ifsc\": null,\n \"bankName\": null,\n \"esicNumber\": null,\n \"ppfnumber\": null,\n \"emergencyContactNumber\": null,\n \"emergencyContactName\": null,\n \"photoUrl\": null,\n \"aadhaarUrl\": null,\n \"panCardUrl\": null,\n \"address\": null,\n \"billingRate\": null,\n \"relationship\": null,\n \"city\": null,\n \"pincode\": null,\n \"branchId\": 130,\n \"weeklyOff\": null,\n \"weeklyWorkingHours\": null,\n \"noOfPaidLeaves\": null,\n \"country\": null,\n \"lastDayOfWorking\": null,\n \"applicantNotes\": \"{\\\"cosec\\\":{\\\"User ID\\\":\\\"VL0687\\\",\\\"User Name\\\":\\\"A Dinesh Kumar Reddy\\\",\\\"Category Name\\\":\\\"Contract-Adhaan\\\",\\\"Grade Name\\\":\\\"Worker\\\",\\\"Branch Name\\\":\\\"VISPL-TRAVEL DESK\\\",\\\"Department Name\\\":\\\"TRAVEL DESK\\\",\\\"Direct Reporting\\\":\\\"Nagaraj Patel\\\",\\\"Level-1\\\":\\\"Nagaraj Patel\\\",\\\"Direct Reporting ID\\\":null,\\\"Level-1 ID\\\":null}}\",\n \"userBasicSalary\": null,\n \"houseResidencesAllowance\": null,\n \"dearnessAllowance\": null,\n \"conveyance\": null,\n \"allowance\": null,\n \"providentFund\": null,\n \"employeesInsurance\": null,\n \"professionalTax\": null,\n \"salaryType\": null,\n \"team_master\": true,\n \"account_master_id\": 46325\n}", + "phone_number": "9876543210", + "pseudonym": "adineshkumarreddy", + "reporting_to": null, + "role": "Worker", + "user_id": 3900, + "user_status": "active" +} + + +//Key Point to look +"applicantNotes": \"{\\\"cosec\\\":{\\\"User ID\\\":\\\"VL0687\\\",\\\"User Name\\\":\\\"A Dinesh Kumar Reddy\\\",\\\"Category Name\\\":\\\"Contract-Adhaan\\\",\\\"Grade Name\\\":\\\"Worker\\\",\\\"Branch Name\\\":\\\"VISPL-TRAVEL DESK\\\",\\\"Department Name\\\":\\\"TRAVEL DESK\\\",\\\"Direct Reporting\\\":\\\"Nagaraj Patel\\\",\\\"Level-1\\\":\\\"Nagaraj Patel\\\",\\\"Direct Reporting ID\\\":null,\\\"Level-1 ID\\\":null}}\" + + +