snap บางอัน
This commit is contained in:
parent
bd38181be1
commit
39ec6018d2
1 changed files with 8 additions and 3 deletions
|
|
@ -2554,6 +2554,9 @@ export class SalaryPeriodController extends Controller {
|
|||
await this.salaryProfileEmployeeRepository.remove(salaryProfileEmployee, { data: request });
|
||||
await this.salaryOrgEmployeeRepository.remove(salaryOrgEmployee, { data: request });
|
||||
let orgs = await new CallAPI().GetData(request, "/org/unauthorize/active/root/id");
|
||||
//snap บางสำนัก
|
||||
orgs = orgs.filter((x: any) => x.rootId.includes(["d7e98989-b5ce-47d6-93c3-ab63ed486348"]));
|
||||
|
||||
let total = 1000;
|
||||
// let _orgProfiles = await new CallAPI().PostData(request, "/org/unauthorize/salary/gen", {
|
||||
let _orgProfiles = await new CallAPI().PostData(request, "/org/unauthorize/new-salary/gen", {
|
||||
|
|
@ -2761,7 +2764,7 @@ export class SalaryPeriodController extends Controller {
|
|||
}
|
||||
}),
|
||||
);
|
||||
console.log("mlength",orgProfileEmployees.length)
|
||||
console.log("mlength", orgProfileEmployees.length);
|
||||
await Promise.all(
|
||||
orgProfileEmployees.map(async (profile: any) => {
|
||||
try {
|
||||
|
|
@ -2803,8 +2806,10 @@ export class SalaryPeriodController extends Controller {
|
|||
salaryProfileNew.type = salaryOld == null ? 0 : salaryOld.type;
|
||||
// salaryProfileNew.salaryLevel = salaryOld && salaryOld.salaryLevelNew ? salaryOld.salaryLevelNew : salaryOld?.salaryLevel;
|
||||
// salaryProfileNew.group = salaryOld && salaryOld.groupNew ? salaryOld.groupNew : salaryOld?.group;
|
||||
salaryProfileNew.salaryLevelNew = salaryOld && salaryOld.salaryLevelNew ? salaryOld.salaryLevelNew : null;
|
||||
salaryProfileNew.groupNew = salaryOld && salaryOld.groupNew ? salaryOld.groupNew : null;
|
||||
salaryProfileNew.salaryLevelNew =
|
||||
salaryOld && salaryOld.salaryLevelNew ? salaryOld.salaryLevelNew : null;
|
||||
salaryProfileNew.groupNew =
|
||||
salaryOld && salaryOld.groupNew ? salaryOld.groupNew : null;
|
||||
salaryProfileNew.amount = salaryOld == null ? 0 : salaryOld.amount;
|
||||
salaryProfileNew.amountSpecial = salaryOld == null ? 0 : salaryOld.amountSpecial;
|
||||
salaryProfileNew.amountUse = salaryOld == null ? 0 : salaryOld.amountUse;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue