{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',
}}
/>
)}
)}
) : (
''
)}
{/* Customer Orders */}
{(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch')
.length === 1) && (
{' '}
{
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 && dinePreference && (
{tableOptions
?.filter((item) => item.OptionName === 'UnpaidBill')
.map((filteredItem) => (
{!OtherServicesglobal && (
{' '}
{
(setUnpaidOpen(true), getUnpaiddatas());
}}
/>
)}
))}
)}
{OtherServicesglobal && OrderCardDetail.length >= 1 && (
{' '}
)}
{dinePreference && (
{(BookingType === 'Dine In' ||
BookingTypeBoth ||
CheckOrderType?.length > 0) &&
!unpaidFlow &&
SelectedTableDetails?.length !== 0 && (
<>
{' '}
FirstPaymentclick === false && !addnewAccess
? changeOrderStatus()
: ''
}
/>
{FirstPaymentclick === false &&
!addnewAccess &&
!OrderStatus &&
}
>
)}
)}
{!OtherServicesglobal &&
OrderCardDetail?.length > 0 &&
ParkingDisplay &&
!OtherServicesglobal && (
)}
{!OtherServicesglobal && unpaidFlow == true ? (
{' '}
{
Recipt();
}}
/>
) : (
''
)}