แก้บั้ก check-time ในกรณีที่ลงเวลาเข้าและออกในวันปัจจุบันเรียบร้อยแล้ว ระบบแสดงข้อมูลไม่ถูกต้องทำให้พร้อมลงเวลาในวันเดียวกันอีกครั้ง
Some checks failed
release-dev / release-dev (push) Failing after 11s
Some checks failed
release-dev / release-dev (push) Failing after 11s
This commit is contained in:
parent
3bf7cba244
commit
ef5ec7dd85
1 changed files with 8 additions and 0 deletions
|
|
@ -425,8 +425,16 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
}
|
||||
else
|
||||
{
|
||||
// ถ้า check-in + check-out ไปแล้ว
|
||||
if (data.CheckIn.Date == DateTime.Now.Date)
|
||||
{
|
||||
return Error("คุณได้ทำการลงเวลาเข้าและออกเรียบร้อยแล้ว คุณจะสามารถลงเวลาได้อีกครั้งในวันถัดไป");
|
||||
}
|
||||
|
||||
if (data.CheckOut != null)
|
||||
{
|
||||
|
||||
|
||||
ret = new CheckInResultDto
|
||||
{
|
||||
StartTimeMorning = duty == null ? "00:00" : duty.StartTimeMorning,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue