diff --git a/src/components/cases/collections-tab.tsx b/src/components/cases/collections-tab.tsx index 099d2f8..c4c9d18 100644 --- a/src/components/cases/collections-tab.tsx +++ b/src/components/cases/collections-tab.tsx @@ -35,13 +35,23 @@ import { ArrowLeft, Calculator, ChevronRight, + Download, Loader2, Plus, + RefreshCw, Trash2, + Upload, UserPlus, Users, } from "lucide-react"; import { toast } from "sonner"; +import { + BUCKETS, + BUCKET_LABEL, + computeBucketBalances, + num, + withRunningBalance, +} from "@/lib/ledger"; const TXN_TYPES = [ { value: "assessment", label: "Assessment" }, @@ -375,7 +385,7 @@ export function CollectionDetail({ // Save header fields (debounced manual save) const saveHeader = async (patch: Record) => { - const { error } = await supabase.from("collections").update(patch).eq("id", collection.id); + const { error } = await (supabase.from("collections") as any).update(patch).eq("id", collection.id); if (error) toast.error("Could not save", { description: error.message }); else onChange(); };