feat(financial-report): add filters for representation, date range, and improve data fetching
This commit is contained in:
@@ -348,7 +348,7 @@ export default function RepresentationDetailPage() {
|
||||
{repDoctors.map((d) => (
|
||||
<tr key={d.uuid} style={{ cursor: 'pointer' }} onClick={() => navigate(`/admin/doctors/${d.uuid}`)}>
|
||||
<td><b>{d.name}</b></td>
|
||||
<td dir="ltr" style={{ fontFamily: 'monospace' }} className="text-[var(--text-3)]">{d.medical_code ?? '—'}</td>
|
||||
<td style={{ fontFamily: 'monospace' }} className="text-[var(--text-3)]"><span dir="ltr">{d.medical_code ?? '—'}</span></td>
|
||||
<td>{formatNumber(d.past_count)}</td>
|
||||
<td>{d.upcoming_count > 0 ? <span className="badge green">{formatNumber(d.upcoming_count)}</span> : <span className="text-[var(--text-3)]">۰</span>}</td>
|
||||
<td><ActiveBadge active={d.is_active} /></td>
|
||||
@@ -398,7 +398,7 @@ export default function RepresentationDetailPage() {
|
||||
<tr key={a.uuid} style={{ cursor: 'pointer' }} onClick={() => navigate(`/admin/doctors/${a.doctor_uuid}`)}>
|
||||
<td><b>{a.doctor_name}</b></td>
|
||||
<td>{a.patient_name ?? '—'}</td>
|
||||
<td dir="ltr" className="text-right">{formatDateTime(a.slot_start)}</td>
|
||||
<td><span dir="ltr">{formatDateTime(a.slot_start)}</span></td>
|
||||
<td><span className="badge gray">{a.status}</span></td>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user