VSN-2436/ feat(absence): support mobile leave types and fix type/reception display in driver absence table
Driver absence requests created from the mobile app use absenceType=OTHER with a leaveType field (e.g. LEAVE_RTT, LEAVE_PAID) instead of the standard BO absence types. This caused the type column to always display "Autre" for mobile-created leave requests.
Changes
- Added
leaveType,requestType, andotherLeaveDescriptionfields toDriverAbsenceListinterface to support mobile-created absences - Extended
_OPTION_TYPES_ABSENCEwith mobile leave types (LEAVE_PAID,LEAVE_UNPAID,LEAVE_SICK,LEAVE_PARENTAL,LEAVE_RTT,OTHER) - Fixed
typeAbsencemapping in both table hooks: fall back toleaveType/otherLeaveDescriptionwhenabsenceTypeisOTHER, so mobile leave requests show their actual type instead of "Autre" - Updated
typeAbsencecell: matched types render as"Absence : {label}", unknown values as"Autre : {value}" - Fixed
modeReceptioncell: raw values (e.g.PORTAL) now resolve to readable labels (e.g.Portail)