change rule auto approve timesheet
This commit is contained in:
@@ -125,7 +125,7 @@
|
|||||||
} else {
|
} else {
|
||||||
form.approved_date = null;
|
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]);
|
const { error } = await supabase.from("vb_timesheet").insert([form]);
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user