รายการเลื่อนค่าจ้างลูกจ้างประจำ => เพิ่ม List รายงานเลื่อนคำสั่งลูกจ้างประจำ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-03-22 17:52:13 +07:00
parent 1d736ae0ab
commit 93fc17cea0
2 changed files with 55 additions and 31 deletions

View file

@ -300,15 +300,15 @@ function fetchDataPeriodNew() {
function onClickDownload(data: DataOption) {
showLoader();
if (data.id === "emp-08") {
if (data.id === "emp-08" || data.id === "emp2-08") {
const formData = {
type: "HAFT",
startDate:
props?.roundFilter?.shortCode === "APR"
data.id === "emp-08"
? `${props?.roundFilter?.year - 1}-10-01`
: `${props?.roundFilter?.year}-04-01`,
endDate:
props?.roundFilter?.shortCode === "APR"
data.id === "emp-08"
? `${props?.roundFilter?.year}-03-31`
: `${props?.roundFilter?.year}-09-30`,
};