feat(recruitment,separation): Job Offer + Employee Separation custom fields (TETRA-1352) #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/TETRA-1352-job-offer-separation-custom-fields"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tóm tắt
Fix TETRA-1352: 3 endpoint trong Tetra eOffice API trả
HTTP 403 "Field not permitted in query"vì FrappeJob Offer/Employee Separationthiếu custom fields mà NestJS services query.GET /api/v1/recruitment/offersGET /api/v1/hrms/separationsGET /api/v1/hrms/separations/compliance-alertsThay đổi
Thêm định nghĩa custom fields vào
vhrms/vhrms/setup/custom_fields.py— vhrms là owner của schema Frappe, Tetra chỉ là consumer.job_openingLink (stock Frappe không có), offer lifecycle (custom_offer_status,custom_offer_number), lương / hợp đồng / department / report_to, approval workflow (Flowable process ID, approval comments, decline reason), PDF attach + URL, revision tracking (custom_revision_of,custom_revision_number).custom_hiring_manager_email,custom_salary_band_max,custom_job_grade_level— đọc bởioffers.service.tskhi submit offer for approval.custom_cancellation_reason,custom_other_party_consent, requested/approved/rejected_by/at + notes) và hoàn tất (custom_completed_by/at). Block 16 field hiện tại giữ nguyên.Verify
Trước fix:
Sau fix (
bench --site hrms.localhost migrate+ restart backend):Ngoài scope
Brief ticket liệt kê một số field nằm ngoài Job Offer / Employee Separation:
custom_gross_salary,custom_is_pregnant,custom_pregnancy_status→ thuộc Employee DocTypecustom_returned,custom_returned_date,custom_return_condition,custom_return_notes→ thuộc Asset Assignment DocTypecustom_skip_reason,custom_interviewer_id,custom_location,custom_notes,custom_nps_score,custom_suggestions→ thuộc Exit Interview DocTypeNhững field này không gây 403 cho 3 endpoint của ticket, để lại cho TETRA-1354 (dọn dẹp Layer 2 fixtures toàn diện) hoặc ticket riêng.
Refs
🤖 Generated with Claude Code