This commit is contained in:
AdisakKanthawilang 2025-02-04 17:38:21 +07:00
parent a499a4a15b
commit 7957ecab1b
2 changed files with 3 additions and 2 deletions

View file

@ -2154,7 +2154,7 @@ export class SalaryPeriodController extends Controller {
}
}
let revisionId = await new CallAPI().GetData(request, "/org/unauthorize/revision/latest");
let _null:any = null;
const beforeSalaryPeriod = structuredClone(salaryPeriod);
salaryPeriod.revisionId = revisionId;
salaryPeriod.lastUpdateUserId = request.user.sub;
@ -2172,7 +2172,7 @@ export class SalaryPeriodController extends Controller {
salaryOrgNew.salaryPeriodId = salaryPeriod.id;
salaryOrgNew.status = "PENDING";
salaryOrgNew.rootId = root.rootId;
salaryOrgNew.rootDnaId = root.rootDnaId;
salaryOrgNew.rootDnaId = root.rootDnaId??_null;
salaryOrgNew.root = root.root;
salaryOrgNew.revisionId = salaryPeriod.revisionId;
salaryOrgNew.snapshot = snapshot;