feat(report page) - collection by doctor - v1 -base

This commit is contained in:
2025-10-22 23:33:03 +05:30
parent 7b9e14b6b4
commit 4bac4f94e0
5 changed files with 759 additions and 305 deletions

View File

@@ -90,7 +90,7 @@ export default function PatientsBalancesList({
</div>
) : (
rows.map((r) => (
<div key={r.id} className="p-4 hover:bg-gray-50">
<div key={String(r.id)} className="p-4 hover:bg-gray-50">
<div className="flex justify-between items-center">
<div>
<h4 className="font-medium text-gray-900">{r.name}</h4>
@@ -98,7 +98,11 @@ export default function PatientsBalancesList({
</div>
<div className="text-right">
<div className="text-lg font-semibold text-red-600">
<div
className={`text-lg font-semibold ${
r.currentBalance > 0 ? "text-red-600" : "text-green-600"
}`}
>
{fmt(r.currentBalance)}
</div>
<div className="text-sm text-gray-500">