This commit is contained in:
@@ -120,7 +120,9 @@ const OrderDetails: FC = () => {
|
||||
const hasPaymentDescription = Boolean(payment?.description)
|
||||
const hasPaymentAttachments = Boolean(payment?.attachments && payment.attachments.length > 0)
|
||||
const showPaymentReceiptBox = isCreditCardPayment && (hasPaymentDescription || hasPaymentAttachments)
|
||||
const showVerifyCashPaymentButton = isCashPayment && isPaymentPending && !isCanceled
|
||||
const showVerifyPaymentButton = (isCashPayment || isCreditCardPayment) && isPaymentPending && !isCanceled
|
||||
const showPaymentVerificationBox = showPaymentReceiptBox || showVerifyCashPaymentButton
|
||||
|
||||
// نمایش دکمه ارسال به آشپزخانه
|
||||
// برای pendingPayment با پرداخت نقدی یا برای paid
|
||||
@@ -277,7 +279,7 @@ const OrderDetails: FC = () => {
|
||||
getPaymentStatusTextColor={getPaymentStatusTextColor}
|
||||
getPaymentStatusText={getPaymentStatusText}
|
||||
/>
|
||||
{showPaymentReceiptBox && (
|
||||
{showPaymentVerificationBox && (
|
||||
<PaymentVerificationBox
|
||||
order={order}
|
||||
isVerifyingPayment={isVerifyingPayment}
|
||||
|
||||
Reference in New Issue
Block a user