feat(admin): show visit datetime and itemized cost breakdown in session details

DetailsStep now renders the appointment's visit date/time first (from
session_at, falling back to created_at) and an itemized cost table (visit +
each service line with its line total) plus the grand total. Extend
SessionCardData with session_at, services_total_rials, and per-line price
fields already returned by the session API.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-17 11:40:42 +03:30
co-authored by Claude Fable 5
parent 8c39d720b5
commit db7b0aca1a
2 changed files with 41 additions and 3 deletions
@@ -12,8 +12,10 @@ export interface SessionPaymentEntry {
export interface SessionCardData {
uuid: string;
services?: Array<{ service_name?: string; name?: string }>;
services?: Array<{ service_name?: string; name?: string; line_total_rials?: number; price_rials?: number; quantity?: number }>;
visit_price_rials?: number;
services_total_rials?: number;
session_at?: number | null;
doctor_name?: string | null;
final_price_rials?: number;
patient_debt_rials?: number;