From e9108e7590d533459c39fe206c63247bb6889a7d Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Fri, 17 Jul 2026 15:39:58 +0330 Subject: [PATCH] feat(admin): show remaining amount in the payment-methods section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add «مبلغ باقی‌مانده» next to the wallet balance under «انتخاب روش های پرداخت» on the session pay step, so the operator sees what's still owed while choosing a payment method. Co-Authored-By: Claude Fable 5 --- assets/admin/components/session/PaymentStep.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/assets/admin/components/session/PaymentStep.tsx b/assets/admin/components/session/PaymentStep.tsx index 8d97d3e5..bed32628 100644 --- a/assets/admin/components/session/PaymentStep.tsx +++ b/assets/admin/components/session/PaymentStep.tsx @@ -214,12 +214,18 @@ export default function PaymentStep({ recordUuid, session, walletBalance, onCont {/* روش‌های پرداخت */} انتخاب روش های پرداخت: -
-
- - موجودی کیف پول: +
+
+
+ + موجودی کیف پول: +
+ {formatRial(walletBalance)} +
+
+ مبلغ باقی‌مانده: + {formatRial(debt)}
- {formatRial(walletBalance)}
{/* آکاردئون چهار روش — باز شدن هر روش: مبلغ + ثبت پرداخت */}