บันทึกค่า datestart #764
This commit is contained in:
parent
b1c365a4da
commit
cd68062867
1 changed files with 6 additions and 0 deletions
|
|
@ -2015,6 +2015,7 @@ export class CommandController extends Controller {
|
||||||
profile.lastUpdateUserId = req.user.sub;
|
profile.lastUpdateUserId = req.user.sub;
|
||||||
profile.lastUpdateFullName = req.user.name;
|
profile.lastUpdateFullName = req.user.name;
|
||||||
profile.lastUpdatedAt = new Date();
|
profile.lastUpdatedAt = new Date();
|
||||||
|
profile.dateStart = new Date();
|
||||||
if (item.isLeave == true) {
|
if (item.isLeave == true) {
|
||||||
await removeProfileInOrganize(profile.id, "OFFICER");
|
await removeProfileInOrganize(profile.id, "OFFICER");
|
||||||
}
|
}
|
||||||
|
|
@ -2910,6 +2911,7 @@ export class CommandController extends Controller {
|
||||||
profile.posLevelId = positionNew.posLevelId;
|
profile.posLevelId = positionNew.posLevelId;
|
||||||
profile.posTypeId = positionNew.posTypeId;
|
profile.posTypeId = positionNew.posTypeId;
|
||||||
profile.position = positionNew.positionName;
|
profile.position = positionNew.positionName;
|
||||||
|
profile.dateStart = new Date();
|
||||||
await this.profileRepository.save(profile, { data: req });
|
await this.profileRepository.save(profile, { data: req });
|
||||||
setLogDataDiff(req, { before, after: profile });
|
setLogDataDiff(req, { before, after: profile });
|
||||||
await this.positionRepository.save(positionNew, { data: req });
|
await this.positionRepository.save(positionNew, { data: req });
|
||||||
|
|
@ -3125,6 +3127,10 @@ export class CommandController extends Controller {
|
||||||
profile.employeeClass = "PERM";
|
profile.employeeClass = "PERM";
|
||||||
const _null: any = null;
|
const _null: any = null;
|
||||||
profile.employeeWage = item.amount == null ? _null : item.amount.toString();
|
profile.employeeWage = item.amount == null ? _null : item.amount.toString();
|
||||||
|
profile.dateStart = new Date();
|
||||||
|
// profile.amount = item.amount == null ? _null : item.amount.toString(); //เผื่อไว้
|
||||||
|
// profile.positionSalaryAmount = item.positionSalaryAmount == null ? _null : item.positionSalaryAmount.toString();
|
||||||
|
// profile.mouthSalaryAmount = item.mouthSalaryAmount == null ? _null : item.mouthSalaryAmount.toString();
|
||||||
|
|
||||||
await this.profileEmployeeRepository.save(profile);
|
await this.profileEmployeeRepository.save(profile);
|
||||||
await this.employeePositionRepository.save(positionNew);
|
await this.employeePositionRepository.save(positionNew);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue