Deskripsi:
- laporan divisi grup
- order by divisi

No Issues
This commit is contained in:
amel
2024-09-25 17:36:08 +08:00
parent 021cb74302
commit 79a487e356
2 changed files with 14 additions and 1 deletions

View File

@@ -77,6 +77,9 @@ export async function GET(request: Request) {
idUser: true idUser: true
} }
} }
},
orderBy: {
createdAt: 'desc'
} }
}); });

View File

@@ -66,13 +66,23 @@ export default function CreateReport() {
onReport(val, value) onReport(val, value)
} }
if (val == null || val == "") {
setTampil(false)
toast.error("Error! harus memilih grup")
}
setIsGroup(String(val)) setIsGroup(String(val))
} }
function onChangeDate(val: any) { function onChangeDate(val: any) {
if (val != null && val != "" && isGroup != "" && isGroup != null) { if (val != null && val != "" && isGroup != "" && isGroup != "null") {
onReport(isGroup, val) onReport(isGroup, val)
} }
if (isGroup == null || isGroup == "") {
setTampil(false)
toast.error("Error! harus memilih grup")
}
setValue(val) setValue(val)
} }