Refactor code: Update posko value based on condition, remove console.log, and add setMonth function

This commit is contained in:
Dede Fuji Abdul
2024-03-26 15:58:57 +07:00
parent 01087dc9a2
commit 0890e6422b
19 changed files with 3383 additions and 1150 deletions

View File

@ -550,7 +550,7 @@ const getDetail = () => {
dateTo: dateValue[1]
? dateValue[1].split('-').reverse().join('-')
: new Date().toISOString().slice(0, 10),
posko: ref.id_posko,
posko: ref.posko_in != ref.posko_out ? ref.posko_out : ref.posko_in,
idUid: ref.id_uid,
idUp3: ref.id_up3
}