change rule auto approve timesheet

This commit is contained in:
2025-07-21 11:09:32 +08:00
parent f0dbf419f3
commit 63a5ebe1b5

View File

@@ -125,7 +125,7 @@
} else {
form.approved_date = null;
}
form.approval = form.total_work_hour <= 1;
form.approval = form.total_work_hour <= 1 ? true : null;
const { error } = await supabase.from("vb_timesheet").insert([form]);
if (error) {