snap บางสำนัก

This commit is contained in:
moss 2025-05-01 09:48:03 +07:00
parent 39ec6018d2
commit 79d10b12e3

View file

@ -2555,7 +2555,16 @@ export class SalaryPeriodController extends Controller {
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"]));
orgs = orgs.filter((x: any) =>
x.rootId.includes([
"d7e98989-b5ce-47d6-93c3-ab63ed486348",
"e0545eca-5d0a-4a1c-8bbd-e3e25c2521db",
"7ff1fbf2-cc9e-4f53-b83c-334967c27967",
"26989ffa-d5ab-4bbd-ac97-130646cd1da6",
"6f9b30e1-757a-40d5-b053-61eb1b91c0f0",
"eaf65f33-25e9-4956-9dba-5d909f5eb595",
]),
);
let total = 1000;
// let _orgProfiles = await new CallAPI().PostData(request, "/org/unauthorize/salary/gen", {