fix ลาติดตามคู่สมรส รายงานแสดง Null
Some checks failed
release-dev / release-dev (push) Failing after 13s

This commit is contained in:
harid 2025-12-16 10:37:27 +07:00
parent 795502a93c
commit cc8cd77560

View file

@ -690,11 +690,11 @@ namespace BMA.EHR.Leave.Service.Controllers
coupleDayPosition = data.CoupleDayPosition.ToThaiNumber(),
coupleDayOrganizationName = "-",
coupleDayLevelCountry = data.CoupleDayLevelCountry.ToThaiNumber(),
coupleDayCountryHistory = data.CoupleDayCountryHistory!.ToThaiNumber() ?? "",
coupleDayTotalHistory = data.CoupleDayTotalHistory!.ToThaiNumber() ?? "",
coupleDayStartDateHistory = data.CoupleDayStartDateHistory == null ? "" : data.CoupleDayStartDateHistory.Value.Date.ToThaiShortDate().ToThaiNumber(),
coupleDayEndDateHistory = data.CoupleDayEndDateHistory == null ? "" : data.CoupleDayEndDateHistory.Value.Date.ToThaiShortDate().ToThaiNumber(),
coupleDaySumTotalHistory = data.CoupleDaySumTotalHistory!.ToThaiNumber(),
coupleDayCountryHistory = data.CoupleDayCountryHistory == null ? "-" : data.CoupleDayCountryHistory!.ToThaiNumber() ?? "",
coupleDayTotalHistory = data.CoupleDayTotalHistory == null ? "-" : data.CoupleDayTotalHistory!.ToThaiNumber(),
coupleDayStartDateHistory = data.CoupleDayStartDateHistory == null ? "-" : data.CoupleDayStartDateHistory.Value.Date.ToThaiShortDate().ToThaiNumber(),
coupleDayEndDateHistory = data.CoupleDayEndDateHistory == null ? "-" : data.CoupleDayEndDateHistory.Value.Date.ToThaiShortDate().ToThaiNumber(),
coupleDaySumTotalHistory = data.CoupleDaySumTotalHistory == null ? "-" : data.CoupleDaySumTotalHistory!.ToThaiNumber(),
leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(),