{(addcustomer || hold) && (
)}
{creditCustomerOpen && (
)}
{TotalAmount == 0 && Success && (
)}
{TotalAmount > 0 &&
qrCode &&
PaymentUpiOptions?.length > 0 &&
SelectedUpiOption && (
)}
{PaymentUpiOptions?.length > 0 && OrderId && (
)}
{tableOptions?.filter(
(item) => item.OptionName === 'AddCustomer'
).length === 1 || navCust === true ? (
{Object.keys(useOptions)?.length > 0 &&
useOptions?.some((flow) =>
flow.OptionDetails.some(
(option) =>
option.OptionName === 'Pay at the counter' &&
option.ModeDetails.some(
(mode) => mode.ModeName === 'Credit'
)
)
) && (
{!OtherServicesglobal && (
{' '}
0 &&
'not-allowed',
color:
OrderCardDetail?.length > 0 ||
(selOption?.value === undefined &&
GlobalAddCustomerDetails1?.length === 0 &&
GetCustId?.CustMobile === undefined)
? 'gray'
: 'rgb(18, 146, 238)',
fontSize: '28px',
}}
/>
)}
)}
) : (
''
)}
{paybtns?.length > 1 && (
0) &&
!unpaidFlow &&
OrderStatus
? 'none'
: 'auto',
opacity:
(BookingType === 'Dine In' ||
BookingTypeBoth ||
CheckOrderType?.length > 0) &&
!unpaidFlow &&
OrderStatus
? 0.5
: 1,
width: '2rem',
}}
>
{/*
*/}
{!OtherServicesglobal && (
{' '}
)}
{OtherServicesglobal && OrderCardDetail.length >= 1 && (
{' '}
)}
{/* */}
)}
{/* Customer Orders */}
{SelCustId && (
{' '}
{
if (
CheckBookingStatus !== 'Close' &&
!addnewAccess &&
!(OrderCardDetail?.length > 0)
) {
setCustomerPreviesOrders(true);
}
}}
style={{
cursor: OrderCardDetail?.length > 0 && 'not-allowed',
color:
OrderCardDetail?.length > 0 ||
(OrderCardDetail?.length > 0 &&
GetCustId?.CustMobile === undefined)
? 'gray'
: 'rgb(18, 146, 238)',
fontSize: '25px',
display: 'flex',
alignItems: 'center',
height: '2.46rem',
width: '1.5rem',
}}
>
)}
{tabledata?.length > 0 && (
{tableOptions
.filter((item) => item.OptionName === 'UnpaidBill')
.map((filteredItem) => (
{!OtherServicesglobal && (
{' '}
{
(setUnpaidOpen(true), getUnpaiddatas());
}}
/>
)}
))}
)}
{dinePreference && (
{(BookingType === 'Dine In' ||
BookingTypeBoth ||
CheckOrderType?.length > 0) &&
!unpaidFlow &&
SelectedTableDetails?.length !== 0 && (
<>
{' '}
FirstPaymentclick === false && !addnewAccess
? changeOrderStatus()
: ''
}
/>
{FirstPaymentclick === false &&
!addnewAccess &&
!OrderStatus &&
}
>
)}
)}
{!OtherServicesglobal && (
{tableOptions?.map((item) => (
<>
{unpaidFlow == false
? item?.OptionName == 'Hold' &&
BookingType !== 'Dine In' &&
!BookingTypeBoth &&
OrderCardDetail?.length != 0 &&
CheckOrderType?.length === 0 &&
OrderType != 'Failed' &&
paybtns?.length > 0 &&
CheckBookingStatus != 'Close' &&
!addnewAccess && (
{' '}
AddBookingDetails('Hold')}
style={{
fontSize: '30px',
cursor: 'pointer',
color: '' ? '#52c41a' : '#1292EE',
}}
/>
)
: ''}
{unpaidFlow == false
? item?.OptionName == 'Hold' &&
BookingType !== 'Dine In' &&
!BookingTypeBoth &&
Holddata?.length > 0 &&
OrderCardDetail?.length == 0 &&
paybtns?.length > 0 &&
CheckBookingStatus != 'Close' &&
!addnewAccess && (
{' '}
HandleholdModelOpen()}
style={{
fontSize: '28px',
cursor: 'pointer',
color: Holddata ? '#52c41a' : 'default',
pointerEvents:
OrderType === 'Failed'
? 'none'
: 'auto',
}}
/>
)
: ''}
>
))}
)}
{filteredSettingNames?.includes('whatsapp') &&
MobileNoWhatsApp?.value && (
)}
{filteredSettingNames?.includes('SMS') && isMobile && (
)}
{/* WhatsAppShare modal/component */}
{showWhatsAppShare && (
closePrintOption(false)}
/>
)}
{showSMSShare && isMobile && (
closePrintOption(false)}
/>
)}