validate
This commit is contained in:
parent
07a58bc1c7
commit
9ca08b4640
1 changed files with 11 additions and 11 deletions
|
|
@ -252,17 +252,17 @@ export class SalaryController extends Controller {
|
|||
});
|
||||
|
||||
const formattedData = {
|
||||
name: salary?.name,
|
||||
isSpecial: salary?.isSpecial,
|
||||
posTypeId: salary?.posTypeId,
|
||||
posTypeName: salary?.posType_.posTypeName,
|
||||
posLevelId: salary?.posLevelId,
|
||||
posLevelName: salary?.posLevel_.posLevelName,
|
||||
isActive: salary?.isActive,
|
||||
date: salary?.date,
|
||||
startDate: salary?.startDate,
|
||||
endDate: salary?.endDate,
|
||||
details: salary?.details,
|
||||
name: salary?.name ?? null,
|
||||
isSpecial: salary?.isSpecial ?? null,
|
||||
posTypeId: salary?.posTypeId ?? null,
|
||||
posTypeName: salary?.posType_.posTypeName ?? null,
|
||||
posLevelId: salary?.posLevelId ?? null,
|
||||
posLevelName: salary?.posLevel_.posLevelName ?? null,
|
||||
isActive: salary?.isActive ?? null,
|
||||
date: salary?.date ?? null,
|
||||
startDate: salary?.startDate ?? null,
|
||||
endDate: salary?.endDate ?? null,
|
||||
details: salary?.details ?? null,
|
||||
};
|
||||
if (!salary) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลผังเงินเดือนนี้");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue