penambahan menu approval per po per proses

This commit is contained in:
Aji Setiaji
2025-05-30 21:59:22 +07:00
parent ec9d47846e
commit 4126f378f5
6 changed files with 239 additions and 195 deletions

View File

@@ -504,6 +504,21 @@
};
currentEditingId = row.id;
await addToPo(project);
} else {
// uncheck
const { data, error } =
await supabase
.from("projects")
.update({
add_to_po: false,
})
.eq("id", row.id);
if (error) {
console.error(
"Error updating project:",
error,
);
}
}
}}
/>