Add LeaveTotal property to LeaveRequest DTOs for better leave tracking #2245
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m13s

This commit is contained in:
Suphonchai Phoonsawat 2026-01-26 22:58:37 +07:00
parent 982dfc33d1
commit 4f28b4e9e0
3 changed files with 7 additions and 1 deletions

View file

@ -1326,7 +1326,8 @@ namespace BMA.EHR.Leave.Service.Controllers
FullName = $"{d.Prefix}{d.FirstName} {d.LastName}",
LeaveEndDate = d.LeaveEndDate,
LeaveStartDate = d.LeaveStartDate,
KeycloakId = d.KeycloakUserId
KeycloakId = d.KeycloakUserId,
LeaveTotal = d.LeaveTotal
})
.ToList();
@ -1750,6 +1751,7 @@ namespace BMA.EHR.Leave.Service.Controllers
LeaveRange = item.LeaveRange ?? "ALL",
LeaveRangeEnd = item.LeaveRangeEnd ?? "ALL",
HajjDayStatus = item.HajjDayStatus,
LeaveTotal = item.LeaveTotal
};
result.Add(res);

View file

@ -19,5 +19,7 @@
public DateTime LeaveEndDate { get; set; }
public Guid KeycloakId { get; set; }
public double LeaveTotal { get; set; }
}
}

View file

@ -37,5 +37,7 @@
public bool? HajjDayStatus { get; set; }
public string? ProfileType { get; set; }
public double LeaveTotal { get; set; }
}
}