feat(report page) - export button added

This commit is contained in:
2025-10-24 23:39:39 +05:30
parent 54596be39f
commit 3af71cc5b8
11 changed files with 373 additions and 78 deletions

View File

@@ -12,6 +12,7 @@ import {
SelectValue,
} from "@/components/ui/select";
import { DoctorBalancesAndSummary } from "@repo/db/types";
import ExportReportButton from "./export-button";
type StaffOption = { id: number; name: string };
@@ -259,6 +260,15 @@ export default function CollectionsByDoctorReport({
onNext={handleNext}
hasPrev={cursorIndex > 0}
hasNext={hasMore}
headerRight={
<ExportReportButton
reportType="collections_by_doctor"
from={startDate}
to={endDate}
staffId={Number(staffId)}
className="mr-2"
/>
}
/>
)}
</div>