feat(patient): enhance session management with billing details and service tracking

This commit is contained in:
hamed
2026-07-12 22:09:13 +03:30
parent fdce888e0e
commit f15c57d73c
4 changed files with 148 additions and 3 deletions
+19
View File
@@ -489,10 +489,24 @@ export interface PatientRecord {
profile?: PatientProfile | null;
}
export interface SessionServiceLine {
uuid: string;
service_item_uuid: string;
service_name: string;
staff_uuid: string | null;
staff_name: string | null;
price_rials: number;
quantity: number;
line_total_rials: number;
created_at: number;
}
export interface PatientSession {
uuid: string;
record_uuid: string;
appointment_uuid: string | null;
doctor_uuid?: string | null;
doctor_name?: string | null;
insurance_base_id: number | null;
insurance_supplementary_id: number | null;
visit_price_rials: number;
@@ -501,6 +515,11 @@ export interface PatientSession {
services_total_rials: number;
final_price_rials: number;
payment_method: string;
is_paid?: boolean;
services?: SessionServiceLine[];
invoice_uuid?: string | null;
invoice_status?: string | null;
patient_debt_rials?: number;
notes: string | null;
created_at: number;
updated_at: number;