save profile leave
This commit is contained in:
parent
57012f450d
commit
b5fb9ac84d
1 changed files with 3 additions and 3 deletions
|
|
@ -534,8 +534,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
|
||||||
|
|
||||||
await UpdateAsync(rawData);
|
await UpdateAsync(rawData);
|
||||||
|
|
||||||
var leaveType = await _appDbContext.Set<TypeLeave>()
|
//var leaveType = await _appDbContext.Set<TypeLeave>()
|
||||||
.FirstOrDefaultAsync(x => x.Name == rawData.Type.Name);
|
// .FirstOrDefaultAsync(x => x.Name == rawData.Type.Name);
|
||||||
|
|
||||||
|
|
||||||
// insert to profile leave
|
// insert to profile leave
|
||||||
|
|
@ -561,7 +561,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
|
||||||
var _res = await client.PostAsJsonAsync(apiUrlSalary, new
|
var _res = await client.PostAsJsonAsync(apiUrlSalary, new
|
||||||
{
|
{
|
||||||
profileId = profile.Id,
|
profileId = profile.Id,
|
||||||
leaveTypeId = leaveType?.Id ?? null,
|
leaveTypeId = rawData?.Type?.Id ?? null,
|
||||||
dateLeaveStart = rawData.LeaveStartDate,
|
dateLeaveStart = rawData.LeaveStartDate,
|
||||||
dateLeaveEnd = rawData.LeaveEndDate,
|
dateLeaveEnd = rawData.LeaveEndDate,
|
||||||
leaveDays = 0,//หน้า fe ไม่ได้ใช้
|
leaveDays = 0,//หน้า fe ไม่ได้ใช้
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue