This commit is contained in:
AdisakKanthawilang 2024-06-18 17:42:47 +07:00
parent 7871e18130
commit 7ad713116f
2 changed files with 19 additions and 18 deletions

View file

@ -3330,16 +3330,16 @@ export class ProfileController extends Controller {
await new CallAPI().PostData(request, "org/profile/salary", {
profileId: profile.id,
date: requestBody.dateLeave,
amount: profileSalary?.amount,
positionSalaryAmount: profileSalary?.positionSalaryAmount,
mouthSalaryAmount: profileSalary?.mouthSalaryAmount,
posNo: profileSalary?.posNo,
position: profileSalary?.position,
positionLine: profileSalary?.positionLine,
positionPathSide: profileSalary?.positionPathSide,
positionExecutive: profileSalary?.positionExecutive,
positionType: profileSalary?.positionType,
positionLevel: profileSalary?.positionLevel,
amount: profileSalary?.amount ?? null,
positionSalaryAmount: profileSalary?.positionSalaryAmount ?? null,
mouthSalaryAmount: profileSalary?.mouthSalaryAmount?? null,
posNo: profileSalary?.posNo ?? null,
position: profileSalary?.position ?? null,
positionLine: profileSalary?.positionLine ?? null,
positionPathSide: profileSalary?.positionPathSide ?? null,
positionExecutive: profileSalary?.positionExecutive ?? null,
positionType: profileSalary?.positionType ?? null,
positionLevel: profileSalary?.positionLevel ?? null,
refCommandNo: null,
templateDoc: requestBody.leaveReason,
});

View file

@ -59,6 +59,7 @@ import {
} from "../entities/ProfileEmployeeEmployment";
import { ProfileEmployeeEmploymentHistory } from "../entities/ProfileEmployeeEmploymentHistory";
import CallAPI from "../interfaces/call-api";
import e from "cors";
@Route("api/v1/org/profile-employee")
@Tags("ProfileEmployee")
@ -2694,17 +2695,17 @@ export class ProfileEmployeeController extends Controller {
await new CallAPI().PostData(request, "org/profile-employee/salary", {
profileEmployeeId: profile.id,
date: requestBody.dateLeave,
amount: profileSalary?.amount,
positionSalaryAmount: profileSalary?.positionSalaryAmount,
mouthSalaryAmount: profileSalary?.mouthSalaryAmount,
posNo: profileSalary?.posNo,
position: profileSalary?.position,
positionType: profileSalary?.positionType,
positionLevel: profileSalary?.positionLevel,
amount: profileSalary?.amount ?? null,
positionSalaryAmount: profileSalary?.positionSalaryAmount ?? null,
mouthSalaryAmount: profileSalary?.mouthSalaryAmount ?? null,
posNo: profileSalary?.posNo ?? null,
position: profileSalary?.position ?? null,
positionType: profileSalary?.positionType ?? null,
positionLevel: profileSalary?.positionLevel ?? null,
refCommandNo: null,
templateDoc: requestBody.leaveReason,
});
return new HttpSuccess();
}