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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user