Merge branch 'develop' into working

This commit is contained in:
Kittapath 2023-10-17 12:39:55 +07:00
commit 43f7eb7f6d
6 changed files with 6 additions and 2 deletions

View file

@ -3574,11 +3574,13 @@ namespace BMA.EHR.Application.Repositories.Commands
profile.Salaries.Add(salary);
var org_pos = await _dbContext.Set<OrganizationPositionEntity>().Include(x => x.PositionNumber).FirstOrDefaultAsync(x => x.PositionNumber.Id == placementProfile.PositionNumber.Id);
// add profile position
var profilePosition = new ProfilePosition
{
Profile = profile,
OrganizationPosition = placementProfile.OrganizationPosition,
OrganizationPosition = org_pos,
IsActive = true,
IsPublished = true,
};
@ -3833,11 +3835,13 @@ namespace BMA.EHR.Application.Repositories.Commands
profile.Salaries.Add(salary);
var org_pos = await _dbContext.Set<OrganizationPositionEntity>().Include(x => x.PositionNumber).FirstOrDefaultAsync(x => x.PositionNumber.Id == placementProfile.PositionNumber.Id);
// add profile position
var profilePosition = new ProfilePosition
{
Profile = profile,
OrganizationPosition = placementProfile.OrganizationPosition,
OrganizationPosition = org_pos,
IsActive = true,
IsPublished = true,
};