update
This commit is contained in:
parent
8f62a41db3
commit
2f94ee747e
1 changed files with 3 additions and 3 deletions
|
|
@ -3543,15 +3543,15 @@ export class CommandController extends Controller {
|
|||
const clearProfile = await checkCommandType(String(item.commandId));
|
||||
|
||||
//ปั๊มประวัติก่อนลบตำแหน่ง
|
||||
const curRevition = await this.orgRevisionRepo.findOne({
|
||||
const curRevision = await this.orgRevisionRepo.findOne({
|
||||
where: { orgRevisionIsCurrent: true, orgRevisionIsDraft: false }
|
||||
})
|
||||
|
||||
if(curRevition){
|
||||
if(curRevision){
|
||||
const curPosMaster = await this.posMasterRepository.findOne({
|
||||
where:{
|
||||
current_holderId: profile.id,
|
||||
orgRevisionId: curRevition.id
|
||||
orgRevisionId: curRevision.id
|
||||
}
|
||||
})
|
||||
if (curPosMaster && clearProfile.LeaveType != "RETIRE_OUT_EMP") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue