diff --git a/assets/admin/components/SessionServiceCard.tsx b/assets/admin/components/SessionServiceCard.tsx index 5a7b2edd..391ef77f 100644 --- a/assets/admin/components/SessionServiceCard.tsx +++ b/assets/admin/components/SessionServiceCard.tsx @@ -7,6 +7,7 @@ export interface SessionPaymentEntry { method: string; amount_rials: number; paid_at?: number; + created_at?: number; created_by_name?: string | null; } diff --git a/assets/admin/components/session/DetailsStep.tsx b/assets/admin/components/session/DetailsStep.tsx index cf278a06..f95a14d4 100644 --- a/assets/admin/components/session/DetailsStep.tsx +++ b/assets/admin/components/session/DetailsStep.tsx @@ -101,12 +101,18 @@ export default function DetailsStep({ session, recordUuid, onBack, onFinish }: P {payments.length === 0 ? ( پرداختی ثبت نشده است ) : payments.map((p) => ( -
- - - {METHOD_LABELS[p.method] ?? p.method} - - مبلغ: {formatRial(p.amount_rials)} +
+
+ + + {METHOD_LABELS[p.method] ?? p.method} + + مبلغ: {formatRial(p.amount_rials)} +
+
+ {(p.paid_at ?? p.created_at) && {formatDateTime(p.paid_at ?? p.created_at!)}} + {p.created_by_name && ثبت: {p.created_by_name}} +
))} diff --git a/assets/admin/components/session/PaymentStep.tsx b/assets/admin/components/session/PaymentStep.tsx index 85136a62..b51b65c7 100644 --- a/assets/admin/components/session/PaymentStep.tsx +++ b/assets/admin/components/session/PaymentStep.tsx @@ -252,12 +252,18 @@ export default function PaymentStep({ recordUuid, session, walletBalance, onCont ) : (
{payments.map((p) => ( -
- - - {METHOD_LABELS[p.method] ?? p.method} - - مبلغ : {formatRial(p.amount_rials)} +
+
+ + + {METHOD_LABELS[p.method] ?? p.method} + + مبلغ : {formatRial(p.amount_rials)} +
+
+ {(p.paid_at ?? p.created_at) && {formatDateTime(p.paid_at ?? p.created_at!)}} + {p.created_by_name && ثبت: {p.created_by_name}} +
))}