แก้ไขเพิ่มเติม kk1
This commit is contained in:
parent
5532d82a43
commit
b1d6888f58
2 changed files with 6 additions and 6 deletions
|
|
@ -323,13 +323,13 @@ export class ProfileEmployeeController extends Controller {
|
|||
BirthDay: profiles?.birthDate ? new Date(profiles.birthDate).getDate() : null,
|
||||
BirthDayText:
|
||||
profiles.birthDate != null
|
||||
? Extension.ToThaiNumber(Extension.ToThaiFullDate(profiles.birthDate))
|
||||
? Extension.ToThaiNumber(Extension.ToThaiShortDate(profiles.birthDate))
|
||||
: "",
|
||||
BirthMonth: profiles?.birthDate ? new Date(profiles.birthDate).getMonth() + 1 : null, // Months are zero-based
|
||||
BirthYear: profiles?.birthDate ? new Date(profiles.birthDate).getFullYear() : null,
|
||||
BirthYearText:
|
||||
profiles.birthDate != null
|
||||
? Extension.ToThaiNumber(Extension.ToThaiFullDate(profiles.birthDate))
|
||||
? Extension.ToThaiNumber(Extension.ToThaiShortDate(profiles.birthDate))
|
||||
: "",
|
||||
Address: "",
|
||||
District: "",
|
||||
|
|
@ -430,7 +430,7 @@ export class ProfileEmployeeController extends Controller {
|
|||
});
|
||||
|
||||
const salary = salarys.map((item) => ({
|
||||
SalaryDate: item.date ?? null,
|
||||
SalaryDate: Extension.ToThaiShortDate(item.date) ?? null,
|
||||
Position: item.position ?? null,
|
||||
PosNo: item.posNo ?? null,
|
||||
Salary: "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue