fix Defect
LV2_003 - เช็คการยื่นขอลา (USER)_defect_001#188 LV2_013 - เจ้าหน้าที่อนุมัติการลา (ADMIN)_defect_001#189
This commit is contained in:
parent
f11f927f7e
commit
3d7313ede7
2 changed files with 13 additions and 6 deletions
|
|
@ -18,7 +18,7 @@ namespace BMA.EHR.Domain.Extensions
|
|||
{
|
||||
throw new ArgumentException("End Date must greater than start date.");
|
||||
}
|
||||
return (int)(endDate.Date - startDate.Date).TotalDays;
|
||||
return (int)(endDate.Date - startDate.Date).TotalDays + 1;
|
||||
}
|
||||
|
||||
public static double DiffYear(this DateTime currentDate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue