From a2d5cec4fe17ffff5525b8ecb8fc9d460d69ebad Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 6 Dec 2024 18:53:56 +0700 Subject: [PATCH] add field amountSpecial --- src/controllers/ProfileSalaryController.ts | 1 + src/controllers/ProfileSalaryEmployeeController.ts | 1 + src/entities/ProfileSalary.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/src/controllers/ProfileSalaryController.ts b/src/controllers/ProfileSalaryController.ts index 970ff8a9..74daa7e0 100644 --- a/src/controllers/ProfileSalaryController.ts +++ b/src/controllers/ProfileSalaryController.ts @@ -178,6 +178,7 @@ export class ProfileSalaryController extends Controller { let null_:any = null; profile.amount = body.amount ?? null_; + profile.amountSpecial = body.amountSpecial ?? null_; profile.positionSalaryAmount = body.positionSalaryAmount ?? null_; profile.mouthSalaryAmount = body.mouthSalaryAmount ?? null_; await this.profileRepo.save(profile); diff --git a/src/controllers/ProfileSalaryEmployeeController.ts b/src/controllers/ProfileSalaryEmployeeController.ts index 1c3c89ce..0fb5bc9e 100644 --- a/src/controllers/ProfileSalaryEmployeeController.ts +++ b/src/controllers/ProfileSalaryEmployeeController.ts @@ -194,6 +194,7 @@ export class ProfileSalaryEmployeeController extends Controller { let null_:any = null; profile.amount = body.amount ?? null_; + profile.amountSpecial = body.amountSpecial ?? null_; profile.positionSalaryAmount = body.positionSalaryAmount ?? null_; profile.mouthSalaryAmount = body.mouthSalaryAmount ?? null_; await this.profileRepo.save(profile); diff --git a/src/entities/ProfileSalary.ts b/src/entities/ProfileSalary.ts index 17428d38..704065f3 100644 --- a/src/entities/ProfileSalary.ts +++ b/src/entities/ProfileSalary.ts @@ -213,6 +213,7 @@ export class CreateProfileSalaryEmployee { profileEmployeeId: string | null; date?: Date | null; amount?: Double | null; + amountSpecial?: Double | null; commandId?: string | null; positionSalaryAmount?: Double | null; mouthSalaryAmount?: Double | null;