Navbar component Reduce the code using 1 code to show Differences
This commit is contained in:
parent
75a23de065
commit
050ea48e1b
Binary file not shown.
|
|
@ -154,7 +154,7 @@ import {
|
||||||
getDefaultPaymentOptions,
|
getDefaultPaymentOptions,
|
||||||
GlobalAddCustomerDetails,
|
GlobalAddCustomerDetails,
|
||||||
triggerCustomerRefresh,
|
triggerCustomerRefresh,
|
||||||
VerifiedPaymentDtl
|
VerifiedPaymentDtl,
|
||||||
} from '../../../../Features/BookingScreen/Customer/addCustomer';
|
} from '../../../../Features/BookingScreen/Customer/addCustomer';
|
||||||
import PozoHoldIcon from '../UtillComponents/Pozo retail icons/PozoHoldIcon';
|
import PozoHoldIcon from '../UtillComponents/Pozo retail icons/PozoHoldIcon';
|
||||||
import PozoDineInIcon from '../UtillComponents/Pozo retail icons/PozoDineIn.jsx';
|
import PozoDineInIcon from '../UtillComponents/Pozo retail icons/PozoDineIn.jsx';
|
||||||
|
|
@ -840,7 +840,7 @@ const BSC1Payment = (props) => {
|
||||||
? (Number(withdiscTotal) + Number(globalTipAmount)).toFixed(2)
|
? (Number(withdiscTotal) + Number(globalTipAmount)).toFixed(2)
|
||||||
: (Number(Total) + Number(globalTipAmount)).toFixed(2)
|
: (Number(Total) + Number(globalTipAmount)).toFixed(2)
|
||||||
);
|
);
|
||||||
console.log(currentOrderNetAmount,totalSum,"currentOrderNetAmount")
|
console.log(currentOrderNetAmount, totalSum, 'currentOrderNetAmount');
|
||||||
setTotalAmount(
|
setTotalAmount(
|
||||||
salesBillEdit
|
salesBillEdit
|
||||||
? currentOrderNetAmount > previousNetAmount
|
? currentOrderNetAmount > previousNetAmount
|
||||||
|
|
@ -876,7 +876,6 @@ console.log(currentOrderNetAmount,totalSum,"currentOrderNetAmount")
|
||||||
Discount,
|
Discount,
|
||||||
]);
|
]);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
const fetchPrinterMapping = async () => {
|
const fetchPrinterMapping = async () => {
|
||||||
try {
|
try {
|
||||||
if (UserType !== 'Super Admin' && isMobile && MobileA4Print) {
|
if (UserType !== 'Super Admin' && isMobile && MobileA4Print) {
|
||||||
|
|
@ -887,14 +886,16 @@ console.log(currentOrderNetAmount,totalSum,"currentOrderNetAmount")
|
||||||
UserId: UserId,
|
UserId: UserId,
|
||||||
};
|
};
|
||||||
// && isMobile && MobileA4Print
|
// && isMobile && MobileA4Print
|
||||||
const response = await dispatch(getPrinterMappingDetails(data)).unwrap();
|
const response = await dispatch(
|
||||||
|
getPrinterMappingDetails(data)
|
||||||
|
).unwrap();
|
||||||
if (response?.data?.statusCode === 0) {
|
if (response?.data?.statusCode === 0) {
|
||||||
handlePrintMappingClick()
|
handlePrintMappingClick();
|
||||||
}
|
}
|
||||||
console.log(response, "printer mapping response");
|
console.log(response, 'printer mapping response');
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error fetching printer mapping:", error);
|
console.error('Error fetching printer mapping:', error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -2241,7 +2242,7 @@ console.log(currentOrderNetAmount,totalSum,"currentOrderNetAmount")
|
||||||
PackageDtl: a.PackageDtl,
|
PackageDtl: a.PackageDtl,
|
||||||
...(a?.DiscountValue && { DiscountValue: a.DiscountValue }),
|
...(a?.DiscountValue && { DiscountValue: a.DiscountValue }),
|
||||||
...(a?.DiscountType && { DiscountType: a.DiscountType }),
|
...(a?.DiscountType && { DiscountType: a.DiscountType }),
|
||||||
...(a?.DiscountAmt && { DiscountAmt: a.DiscountAmt })
|
...(a?.DiscountAmt && { DiscountAmt: a.DiscountAmt }),
|
||||||
}));
|
}));
|
||||||
const NotSlectedTypeFind = temporderdetail?.find(
|
const NotSlectedTypeFind = temporderdetail?.find(
|
||||||
(a) => a?.BookingType != SelectedBookingType
|
(a) => a?.BookingType != SelectedBookingType
|
||||||
|
|
@ -3961,8 +3962,6 @@ console.log(currentOrderNetAmount,totalSum,"currentOrderNetAmount")
|
||||||
: handlePaymentMode(payment.ModeId, payment.ModeName)
|
: handlePaymentMode(payment.ModeId, payment.ModeName)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{/* {UpiOption === "" && payment?.ModeName?.toLowerCase() === "upi" && <p> UPI</p>} */}
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
|
@ -4426,8 +4425,10 @@ console.log(currentOrderNetAmount,totalSum,"currentOrderNetAmount")
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{/* Customer Orders */}
|
{/* Customer Orders */}
|
||||||
{(SelCustId && BSComboData?.BookingBilling?.[1]?.filter((item) => item.OptionName === 'PreviousBillFetch')
|
{SelCustId &&
|
||||||
.length === 1) && (
|
BSComboData?.BookingBilling?.[1]?.filter(
|
||||||
|
(item) => item.OptionName === 'PreviousBillFetch'
|
||||||
|
).length === 1 && (
|
||||||
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
||||||
{' '}
|
{' '}
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,8 @@ export function SortableCard({ id, children, item }) {
|
||||||
|
|
||||||
const BSItemCard = (props) => {
|
const BSItemCard = (props) => {
|
||||||
const cardFunction = props?.cardFunctionality;
|
const cardFunction = props?.cardFunctionality;
|
||||||
|
const { connectingState = null, setConnectingState = () => {} } = props;
|
||||||
|
console.log(connectingState?.positionChange, 'positionChange');
|
||||||
// const applyOffer = useApplyOfferto_CardDetail();
|
// const applyOffer = useApplyOfferto_CardDetail();
|
||||||
const preferenceDatas = useSelector(PreferenceData, shallowEqual);
|
const preferenceDatas = useSelector(PreferenceData, shallowEqual);
|
||||||
const { selectedDate } = useDateStore();
|
const { selectedDate } = useDateStore();
|
||||||
|
|
@ -6106,7 +6108,8 @@ const BSItemCard = (props) => {
|
||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
zIndex: '12',
|
// zIndex: '12',
|
||||||
|
zIndex: connectingState?.positionChange ? '0' : '20',
|
||||||
top:
|
top:
|
||||||
templateData?.BookingNavbar?.[0] === 'Navbar3' &&
|
templateData?.BookingNavbar?.[0] === 'Navbar3' &&
|
||||||
templateData?.BookingLayout?.[0] === 'Layout3'
|
templateData?.BookingLayout?.[0] === 'Layout3'
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,6 @@ import PozoAddCustomerIcon from '../UtillComponents/Pozo retail icons/PozoAddCus
|
||||||
import CustomerDisplayicon from '../UtillComponents/Pozo retail icons/PozoCustomerDisplayicon.jsx';
|
import CustomerDisplayicon from '../UtillComponents/Pozo retail icons/PozoCustomerDisplayicon.jsx';
|
||||||
import PozoPaymentFailesIcon from '../UtillComponents/Pozo retail icons/PozoFailedPaymentsIcon.jsx';
|
import PozoPaymentFailesIcon from '../UtillComponents/Pozo retail icons/PozoFailedPaymentsIcon.jsx';
|
||||||
import PozoMenuIcon from '../UtillComponents/Pozo retail icons/PozoMenuIcon.jsx';
|
import PozoMenuIcon from '../UtillComponents/Pozo retail icons/PozoMenuIcon.jsx';
|
||||||
|
|
||||||
import TooltipWrapper from '../../../../Components/Tooltip/Tooltip';
|
import TooltipWrapper from '../../../../Components/Tooltip/Tooltip';
|
||||||
import { IoMdClose } from 'react-icons/io';
|
import { IoMdClose } from 'react-icons/io';
|
||||||
import { TbSettingsSearch } from 'react-icons/tb';
|
import { TbSettingsSearch } from 'react-icons/tb';
|
||||||
|
|
@ -157,21 +156,20 @@ import { isMobile } from 'react-device-detect';
|
||||||
import { DefaultModal } from '../../../../Components/Modal/DefaultModal.jsx';
|
import { DefaultModal } from '../../../../Components/Modal/DefaultModal.jsx';
|
||||||
import '../../../../Styles/BookingScreen/Components/BSNavbar/BSNavbar1.scss';
|
import '../../../../Styles/BookingScreen/Components/BSNavbar/BSNavbar1.scss';
|
||||||
import { RiFullscreenExitFill, RiFullscreenFill } from 'react-icons/ri';
|
import { RiFullscreenExitFill, RiFullscreenFill } from 'react-icons/ri';
|
||||||
import { useNavbarCommon } from './BSNavBarCommon.js';
|
import { LuSearch } from 'react-icons/lu';
|
||||||
|
|
||||||
const subDirectory = import.meta.env.ENV_BASE_URL;
|
const subDirectory = import.meta.env.ENV_BASE_URL;
|
||||||
const commonUrl = import.meta.env.ENV_COMMON_BASE_URL;
|
const commonUrl = import.meta.env.ENV_COMMON_BASE_URL;
|
||||||
|
|
||||||
const BSNavbar1 = (props) => {
|
const BSNavbar1 = (props, BookingNavbar) => {
|
||||||
|
const { connectingState = null, setConnectingState = () => {} } = props;
|
||||||
console.log(props?.BookingNavbar,"propspropspropspropspropspropspropsprops")
|
console.log(props?.BookingNavbar, 'propsopsprops');
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const [Navmenu, setNavmenu] = useState(false);
|
const [Navmenu, setNavmenu] = useState(false);
|
||||||
const [isAccOpen, setAccIsOpen] = useState(false);
|
const [isAccOpen, setAccIsOpen] = useState(false);
|
||||||
const [formattedDate, setFormattedDate] = useState('');
|
const [formattedDate, setFormattedDate] = useState('');
|
||||||
|
|
||||||
// const [FeatureAddonData, setFeatureAddonData] = useState([]);
|
|
||||||
const [paymentfeataddon, setpaymentfeataddon] = useState(false);
|
const [paymentfeataddon, setpaymentfeataddon] = useState(false);
|
||||||
const [addcustomer, setAddCustomer] = useState(false);
|
const [addcustomer, setAddCustomer] = useState(false);
|
||||||
const [hold, setHold] = useState(false);
|
const [hold, setHold] = useState(false);
|
||||||
|
|
@ -260,6 +258,27 @@ const BSNavbar1 = (props) => {
|
||||||
GlobalComboRedirectionToDefaultLayoutForParking
|
GlobalComboRedirectionToDefaultLayoutForParking
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const [isFullscreen, setIsFullscreen] = useState(false);
|
||||||
|
const handleFullscreen = useCallback(async () => {
|
||||||
|
if (!isFullscreen) {
|
||||||
|
try {
|
||||||
|
await document.documentElement.requestFullscreen();
|
||||||
|
setIsFullscreen(true);
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Fullscreen error:', error);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
if (document.fullscreenElement) {
|
||||||
|
await document.exitFullscreen();
|
||||||
|
}
|
||||||
|
setIsFullscreen(false);
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Exit fullscreen error:', error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, [isFullscreen]);
|
||||||
|
|
||||||
const divRef = useRef(null);
|
const divRef = useRef(null);
|
||||||
const handleClickOutside = (event) => {
|
const handleClickOutside = (event) => {
|
||||||
if (divRef.current && !divRef.current.contains(event.target)) {
|
if (divRef.current && !divRef.current.contains(event.target)) {
|
||||||
|
|
@ -267,13 +286,6 @@ const BSNavbar1 = (props) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const {
|
|
||||||
handleFullscreen,
|
|
||||||
isFullscreen,
|
|
||||||
} = useNavbarCommon();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!FeatureAddonData?.FeatureDtls?.length) return;
|
if (!FeatureAddonData?.FeatureDtls?.length) return;
|
||||||
|
|
||||||
|
|
@ -289,9 +301,6 @@ const BSNavbar1 = (props) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
handleOtherData();
|
handleOtherData();
|
||||||
|
|
||||||
// if (UserType === "Employee") {
|
|
||||||
// fetchApi()
|
|
||||||
// }
|
|
||||||
document.addEventListener('click', handleClickOutside, true);
|
document.addEventListener('click', handleClickOutside, true);
|
||||||
return () => {
|
return () => {
|
||||||
document.removeEventListener('click', handleClickOutside, true);
|
document.removeEventListener('click', handleClickOutside, true);
|
||||||
|
|
@ -386,20 +395,12 @@ const BSNavbar1 = (props) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const getFeatureAddonData = async () => {
|
const getFeatureAddonData = async () => {
|
||||||
// let featureAddon = await dispatch(
|
|
||||||
// FeatureAddon({ AppId: AppId, UserId: UserId })
|
|
||||||
// ).unwrap();
|
|
||||||
// if (featureAddon?.data?.statusCode === 1) {
|
|
||||||
// setFeatureAddonData(featureAddon?.data?.data?.[0]?.FeatAddonHdr?.[0]);
|
|
||||||
const hasPaymentFeatures = FeatureAddonData?.FeatureDtls.some(
|
const hasPaymentFeatures = FeatureAddonData?.FeatureDtls.some(
|
||||||
(item) =>
|
(item) =>
|
||||||
item.FeatureAddonName === 'Payment Gateway' ||
|
item.FeatureAddonName === 'Payment Gateway' ||
|
||||||
item.FeatureAddonName === 'Payment Device'
|
item.FeatureAddonName === 'Payment Device'
|
||||||
);
|
);
|
||||||
setpaymentfeataddon(hasPaymentFeatures);
|
setpaymentfeataddon(hasPaymentFeatures);
|
||||||
// } else {
|
|
||||||
// setFeatureAddonData([]);
|
|
||||||
// }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleOtherData = async (e) => {
|
const handleOtherData = async (e) => {
|
||||||
|
|
@ -418,6 +419,10 @@ const BSNavbar1 = (props) => {
|
||||||
|
|
||||||
const NavmenuOpenClose = () => {
|
const NavmenuOpenClose = () => {
|
||||||
setNavmenu(!Navmenu);
|
setNavmenu(!Navmenu);
|
||||||
|
setConnectingState((prev) => ({
|
||||||
|
...prev,
|
||||||
|
positionChange: !prev?.positionChange,
|
||||||
|
}));
|
||||||
};
|
};
|
||||||
const UserAcc = useCallback(() => {
|
const UserAcc = useCallback(() => {
|
||||||
setAccIsOpen((prev) => !prev);
|
setAccIsOpen((prev) => !prev);
|
||||||
|
|
@ -482,7 +487,6 @@ const BSNavbar1 = (props) => {
|
||||||
|
|
||||||
customerDisplayWindow.onload = () => {
|
customerDisplayWindow.onload = () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// Ensure it moves & resizes correctly
|
|
||||||
customerDisplayWindow.moveTo(
|
customerDisplayWindow.moveTo(
|
||||||
targetScreen.left || 0,
|
targetScreen.left || 0,
|
||||||
targetScreen.top || 0
|
targetScreen.top || 0
|
||||||
|
|
@ -492,14 +496,12 @@ const BSNavbar1 = (props) => {
|
||||||
targetScreen.height
|
targetScreen.height
|
||||||
);
|
);
|
||||||
|
|
||||||
// Try fullscreen (Needs user interaction)
|
|
||||||
try {
|
try {
|
||||||
customerDisplayWindow.document.documentElement.requestFullscreen();
|
customerDisplayWindow.document.documentElement.requestFullscreen();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn('Fullscreen request failed:', err);
|
console.warn('Fullscreen request failed:', err);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send initial data
|
|
||||||
customerDisplayWindow.postMessage(initialData, '*');
|
customerDisplayWindow.postMessage(initialData, '*');
|
||||||
}, 500);
|
}, 500);
|
||||||
};
|
};
|
||||||
|
|
@ -508,19 +510,6 @@ const BSNavbar1 = (props) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// const Combodata = async () => {
|
|
||||||
// let data = {
|
|
||||||
// AppId: AppId,
|
|
||||||
// CompId: CompId,
|
|
||||||
// BranchId: BranchId,
|
|
||||||
// };
|
|
||||||
|
|
||||||
// let Response = await dispatch(Comboget(data)).unwrap();
|
|
||||||
// if (Response?.data?.statusCode == 1) {
|
|
||||||
// setComboDropDown(Response?.data?.data);
|
|
||||||
// }
|
|
||||||
// };
|
|
||||||
|
|
||||||
const openPreOrder = async (e) => {
|
const openPreOrder = async (e) => {
|
||||||
if (e == 'small-screen') {
|
if (e == 'small-screen') {
|
||||||
setPreOrderOpen(true);
|
setPreOrderOpen(true);
|
||||||
|
|
@ -529,8 +518,6 @@ const BSNavbar1 = (props) => {
|
||||||
} else {
|
} else {
|
||||||
setpreOrderhiseandShow(false);
|
setpreOrderhiseandShow(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// setpreOrderhiseandShow(!preOrderhiseandShow)
|
|
||||||
} else {
|
} else {
|
||||||
setPreOrderOpen((prevState) => !prevState);
|
setPreOrderOpen((prevState) => !prevState);
|
||||||
if (preOrderOpen) {
|
if (preOrderOpen) {
|
||||||
|
|
@ -616,14 +603,13 @@ const BSNavbar1 = (props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="BSBillingNavBar1"
|
className={
|
||||||
style={{
|
props?.BookingNavbar === 'Navbar1'
|
||||||
backgroundColor: background,
|
? 'BSBillingNavBar1'
|
||||||
color:
|
: props?.BookingNavbar === 'Navbar2'
|
||||||
background == 'white' && '#fff' && '#ffff' && 'rgb(1, 1, 1)'
|
? 'BSBillingNavBar2'
|
||||||
? 'white'
|
: 'BSBillingNavBar3'
|
||||||
: 'black',
|
}
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title="Are you sure you want to go home?"
|
title="Are you sure you want to go home?"
|
||||||
|
|
@ -637,17 +623,11 @@ const BSNavbar1 = (props) => {
|
||||||
placement="right"
|
placement="right"
|
||||||
isMobile={isMobile}
|
isMobile={isMobile}
|
||||||
>
|
>
|
||||||
<PozoHomeIcon
|
<PozoHomeIcon className={'BSNavbarHomeIcon'} />
|
||||||
style={{
|
|
||||||
color: '#1292EE',
|
|
||||||
fontSize: '28px',
|
|
||||||
cursor: 'pointer',
|
|
||||||
}}
|
|
||||||
className="BSBillingNav2-toggle-icon"
|
|
||||||
/>
|
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
</div>
|
</div>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
|
|
||||||
{(addcustomer || hold) && (
|
{(addcustomer || hold) && (
|
||||||
<FeaturesFunctionalities
|
<FeaturesFunctionalities
|
||||||
handleAddCustomerCancel={handleAddCustomerCancel}
|
handleAddCustomerCancel={handleAddCustomerCancel}
|
||||||
|
|
@ -656,34 +636,39 @@ const BSNavbar1 = (props) => {
|
||||||
modalOpen={hold}
|
modalOpen={hold}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div className="BSBillingNav1div2">
|
{/* Store name */}
|
||||||
<div style={{ display: 'flex', alignItems: 'center', gap: '4px' }}>
|
|
||||||
<div className="salesStoreName">
|
<div className="salesStoreName">
|
||||||
<BranchName />
|
<BranchName />
|
||||||
</div>
|
</div>
|
||||||
|
{/* Parking Other Service */}
|
||||||
|
<div className="OtherServiceParking">
|
||||||
{OtherServiceStatus && (
|
{OtherServiceStatus && (
|
||||||
<div style={{ fontSize: '1.5rem', color: 'rgb(18, 146, 238)' }}>
|
|
||||||
<TooltipWrapper title="Other Services" isMobile={isMobile}>
|
<TooltipWrapper title="Other Services" isMobile={isMobile}>
|
||||||
<div
|
<div
|
||||||
onClick={handleotherservices}
|
onClick={handleotherservices}
|
||||||
className="BSBillingNavBar1-AllIcons"
|
|
||||||
style={{
|
style={{
|
||||||
width: '1.49rem',
|
width: '1.49rem',
|
||||||
margin: '0',
|
margin: '0',
|
||||||
pointerEvents: OrderType === 'Failed' ? 'none' : 'auto',
|
pointerEvents: OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
|
display: 'flex',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FaParking
|
<FaParking
|
||||||
fill={OtherServicesglobal === true ? '#52C41A' : '#1292EE'}
|
size={24}
|
||||||
|
display={'flex'}
|
||||||
|
className={
|
||||||
|
OtherServicesglobal === true
|
||||||
|
? 'ParkingIconActive'
|
||||||
|
: 'ParkingIconDea'
|
||||||
|
}
|
||||||
|
// fill={OtherServicesglobal === true ? '#52C41A' : '#1292EE'}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
</div>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="BSBillingNav1div2">
|
||||||
<div className="NavbarDivForSearch">
|
<div className="NavbarDivForSearch">
|
||||||
{/* Multiple search */}
|
{/* Multiple search */}
|
||||||
<Tooltip title={'Multiple Search'}>
|
<Tooltip title={'Multiple Search'}>
|
||||||
|
|
@ -700,12 +685,13 @@ const BSNavbar1 = (props) => {
|
||||||
Comboglobal === false &&
|
Comboglobal === false &&
|
||||||
!sportsAppPreference && (
|
!sportsAppPreference && (
|
||||||
<div
|
<div
|
||||||
className="BSBillingNavBar1-Inputsearch-container"
|
className="BSBillingNavBar1-Inputsearch-container NavbarSearchModified"
|
||||||
style={{
|
style={{
|
||||||
pointerEvents:
|
pointerEvents:
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<LuSearch className="bothnbavbarIcon" />
|
||||||
<BSNavBarSearch nosearch={true} OrderType={OrderType} />
|
<BSNavBarSearch nosearch={true} OrderType={OrderType} />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
@ -730,9 +716,10 @@ const BSNavbar1 = (props) => {
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<div className="BSBillingNavBar1-AllIcons">
|
<div className="BsNavbar-IconSections">
|
||||||
{navbarOptions?.map((item) => (
|
{navbarOptions?.map((item) => (
|
||||||
<>
|
<>
|
||||||
|
{/* Reprint */}
|
||||||
<>
|
<>
|
||||||
{item?.OptionName == 'RePrint' && !OtherServicesglobal && (
|
{item?.OptionName == 'RePrint' && !OtherServicesglobal && (
|
||||||
<TooltipWrapper title="Reprint (Alt+R)" isMobile={isMobile}>
|
<TooltipWrapper title="Reprint (Alt+R)" isMobile={isMobile}>
|
||||||
|
|
@ -746,8 +733,18 @@ const BSNavbar1 = (props) => {
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|
||||||
{!OtherServicesglobal && (
|
{!OtherServicesglobal && (
|
||||||
<>
|
<>
|
||||||
|
{item?.OptionName == 'QuickAdd' && (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
pointerEvents: OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<BSNavBarQuickAdd />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{item?.OptionName == 'Hold' &&
|
{item?.OptionName == 'Hold' &&
|
||||||
OrderType != 'Failed' &&
|
OrderType != 'Failed' &&
|
||||||
OrderType != 'Reorder' &&
|
OrderType != 'Reorder' &&
|
||||||
|
|
@ -758,15 +755,7 @@ const BSNavbar1 = (props) => {
|
||||||
<BSNavBarHand />
|
<BSNavBarHand />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{item?.OptionName == 'QuickAdd' && (
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
pointerEvents: OrderType === 'Failed' ? 'none' : 'auto',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<BSNavBarQuickAdd />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{item?.OptionName == 'DineIn' &&
|
{item?.OptionName == 'DineIn' &&
|
||||||
dinePreference &&
|
dinePreference &&
|
||||||
PreferenceDatas?.[0]?.['SettingDtlDetails']?.find(
|
PreferenceDatas?.[0]?.['SettingDtlDetails']?.find(
|
||||||
|
|
@ -820,10 +809,10 @@ const BSNavbar1 = (props) => {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{item?.OptionName == 'AddCustomer' && !preOrderOpen && (
|
{item?.OptionName == 'AddCustomer' && !preOrderOpen && (
|
||||||
<>
|
<div className="NavbarCus-Add">
|
||||||
<BSCustomerSelect TopName={'navbar-top'} />
|
<BSCustomerSelect TopName={'navbar-top'} />
|
||||||
<BSNavBarAddUser />
|
<BSNavBarAddUser />
|
||||||
</>
|
</div>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
@ -957,19 +946,17 @@ const BSNavbar1 = (props) => {
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
{!isMobile && (
|
||||||
{isMobile && (
|
<div className="PrinterSettingMB">
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
color: 'rgb(33, 150, 243)',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<BSMobilePrintSettings />
|
<BSMobilePrintSettings />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
{!OtherServicesglobal && (
|
{!OtherServicesglobal && (
|
||||||
<>
|
<>
|
||||||
<div className="BSNavbar1-time-user">
|
<div className="BSNavbar1-time-user">
|
||||||
|
{props?.BookingNavbar !== 'Navbar2' && (
|
||||||
<div
|
<div
|
||||||
className="BSBillingNavBar1-SearchBar"
|
className="BSBillingNavBar1-SearchBar"
|
||||||
style={{ color: '#212529', flexDirection: 'column' }}
|
style={{ color: '#212529', flexDirection: 'column' }}
|
||||||
|
|
@ -977,9 +964,10 @@ const BSNavbar1 = (props) => {
|
||||||
<TimerClock />
|
<TimerClock />
|
||||||
{formattedDate}
|
{formattedDate}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
|
<Tooltip
|
||||||
<Tooltip title={isFullscreen ? 'Exit Full Screen' : 'Full Screen'}>
|
title={isFullscreen ? 'Exit Full Screen' : 'Full Screen'}
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
isFullscreen
|
isFullscreen
|
||||||
|
|
@ -988,7 +976,11 @@ const BSNavbar1 = (props) => {
|
||||||
}
|
}
|
||||||
onClick={handleFullscreen}
|
onClick={handleFullscreen}
|
||||||
>
|
>
|
||||||
{isFullscreen ? <RiFullscreenExitFill /> : <RiFullscreenFill />}
|
{isFullscreen ? (
|
||||||
|
<RiFullscreenExitFill />
|
||||||
|
) : (
|
||||||
|
<RiFullscreenFill />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
|
|
@ -998,13 +990,6 @@ const BSNavbar1 = (props) => {
|
||||||
</div>
|
</div>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
|
|
||||||
{/* {isMobile && ( */}
|
|
||||||
{/* <div>
|
|
||||||
<BSPrinterSetting />
|
|
||||||
</div> */}
|
|
||||||
{/* )} */}
|
|
||||||
|
|
||||||
{/* Use BSNavBarUserInfo for the account menu */}
|
|
||||||
<BSNavBarUserInfo
|
<BSNavBarUserInfo
|
||||||
isOpen={isAccOpen}
|
isOpen={isAccOpen}
|
||||||
divRef={divRef}
|
divRef={divRef}
|
||||||
|
|
@ -1015,121 +1000,80 @@ const BSNavbar1 = (props) => {
|
||||||
UserRelieveManager={<UserRelieveManager />}
|
UserRelieveManager={<UserRelieveManager />}
|
||||||
Logout={Logout}
|
Logout={Logout}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
|
<div className="BSBillingnav1-threedots" onClick={NavmenuOpenClose}>
|
||||||
|
<PozoMenuIcon size={20} />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* */}
|
||||||
|
{/* */}
|
||||||
|
{/* */}
|
||||||
{/* small screen nav bar */}
|
{/* small screen nav bar */}
|
||||||
{Navmenu && (
|
{/* */}
|
||||||
<div>
|
{/* */}
|
||||||
<div
|
{/* */}
|
||||||
className="BSBillingnav1-Smallscreen"
|
|
||||||
style={{ backgroundColor: background }}
|
|
||||||
>
|
|
||||||
<div className="BSBillingNavBar1-AllIcons-column">
|
|
||||||
{OtherServiceStatus && (
|
|
||||||
<div
|
|
||||||
style={{ fontSize: '1.5rem', color: 'rgb(18, 146, 238)' }}
|
|
||||||
>
|
|
||||||
<TooltipWrapper title="Other Services" isMobile={isMobile}>
|
|
||||||
<div onClick={handleotherservices}>
|
|
||||||
<FaParking
|
|
||||||
fill={
|
|
||||||
OtherServicesglobal === true ? '#52C41A' : '#1292EE'
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</TooltipWrapper>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{!OtherServicesglobal &&
|
|
||||||
ScanLayoutScreen?.SettingValue === 'Y' && <BSScanTemplate />}
|
|
||||||
|
|
||||||
{!OtherServicesglobal && (
|
{Navmenu && (
|
||||||
<>
|
<div className="resNavbarMain">
|
||||||
{OpenFailData && (
|
<div className="ResBsNavbar-IconSections">
|
||||||
<PaymentFailedSales
|
<div className="resnavbarClose">
|
||||||
paymentFailedStatusFun={paymentFailedStatusFun}
|
<IoMdClose onClick={NavmenuOpenClose} />
|
||||||
OpenFailData={OpenFailData}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
{/* {ComboDropDown?.length >= 1 && (
|
|
||||||
<div
|
|
||||||
style={{ fontSize: '1.5rem', color: 'rgb(18, 146, 238)' }}
|
|
||||||
>
|
|
||||||
<TooltipWrapper title="Combo Product" isMobile={isMobile}>
|
|
||||||
<div
|
|
||||||
onClick={handleClick}
|
|
||||||
style={{
|
|
||||||
width: '1.49rem',
|
|
||||||
pointerEvents:
|
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
|
||||||
cursor: 'pointer',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<PozoComboProductIcon
|
|
||||||
fill={Comboglobal === true ? '#52C41A' : '#1292EE'}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</TooltipWrapper>
|
|
||||||
</div>
|
|
||||||
)} */}
|
|
||||||
{navbarOptions?.map((item) => (
|
{navbarOptions?.map((item) => (
|
||||||
<>
|
<>
|
||||||
{item?.OptionName == 'RePrint' &&
|
{/* Reprint */}
|
||||||
!OtherServicesglobal && (
|
<>
|
||||||
|
{item?.OptionName == 'RePrint' && !OtherServicesglobal && (
|
||||||
|
<TooltipWrapper title="Reprint (Alt+R)" isMobile={isMobile}>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
pointerEvents:
|
pointerEvents:
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
}}
|
}}
|
||||||
|
className="ReprintIconRes ResNavbarIcons"
|
||||||
>
|
>
|
||||||
<BSPrinterSetting />
|
<BSPrinterSetting />
|
||||||
</div>
|
</div>
|
||||||
|
</TooltipWrapper>
|
||||||
)}
|
)}
|
||||||
{item?.OptionName == 'Hold' &&
|
</>
|
||||||
OrderType != 'Failed' &&
|
|
||||||
OrderType != 'Reorder' &&
|
{!OtherServicesglobal && (
|
||||||
CheckBookingStatus != 'Close' &&
|
<>
|
||||||
isHoldEnable &&
|
{/* Quick Add */}
|
||||||
!addnewAccess && (
|
|
||||||
<div>
|
|
||||||
<BSNavBarHand className="BSBillingNavBar1-hand" />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{item?.OptionName == 'QuickAdd' && (
|
{item?.OptionName == 'QuickAdd' && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
pointerEvents:
|
pointerEvents:
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
}}
|
}}
|
||||||
|
className="QuicAddIconRes ResNavbarIcons"
|
||||||
>
|
>
|
||||||
<BSNavBarQuickAdd />
|
<BSNavBarQuickAdd />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{/* {item?.OptionName == 'Quick Transfer' && (
|
{/* Hold */}
|
||||||
<div
|
{item?.OptionName == 'Hold' &&
|
||||||
style={{
|
OrderType != 'Failed' &&
|
||||||
pointerEvents:
|
OrderType != 'Reorder' &&
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
CheckBookingStatus != 'Close' &&
|
||||||
}}
|
isHoldEnable &&
|
||||||
>
|
!addnewAccess && (
|
||||||
<Tooltip title="Quick Transfer" placement="top">
|
<div className="BSBillingNavBar1-hand ResNavbarIcons">
|
||||||
<Button
|
<BSNavBarHand />
|
||||||
type="primary"
|
|
||||||
shape="circle"
|
|
||||||
icon={<SwapIcon />}
|
|
||||||
size="small"
|
|
||||||
onClick={showModal}
|
|
||||||
/>
|
|
||||||
</Tooltip>
|
|
||||||
</div>
|
</div>
|
||||||
)} */}
|
)}
|
||||||
|
|
||||||
{item?.OptionName == 'DineIn' &&
|
{item?.OptionName == 'DineIn' &&
|
||||||
dinePreference &&
|
dinePreference &&
|
||||||
PreferenceDatas?.[0]?.['SettingDtlDetails']?.find(
|
PreferenceDatas?.[0]?.['SettingDtlDetails']?.find(
|
||||||
(item) => item.SettingIdName === 'DineIn'
|
(item) => item.SettingIdName === 'DineIn'
|
||||||
)?.SettingValue === 'Y' && (
|
)?.SettingValue === 'Y' && (
|
||||||
<div
|
<div
|
||||||
|
className="ResNavbarIcons"
|
||||||
style={{
|
style={{
|
||||||
pointerEvents:
|
pointerEvents:
|
||||||
OrderType === 'Failed' || addnewAccess
|
OrderType === 'Failed' || addnewAccess
|
||||||
|
|
@ -1140,8 +1084,9 @@ const BSNavbar1 = (props) => {
|
||||||
<BSNavBarTable />
|
<BSNavBarTable />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{item?.OptionName == 'TakeAway' && (
|
{item?.OptionName == 'TakeAway' && takeAwayPreference && (
|
||||||
<div
|
<div
|
||||||
|
className="ResNavbarIcons"
|
||||||
style={{
|
style={{
|
||||||
pointerEvents:
|
pointerEvents:
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
|
|
@ -1163,13 +1108,14 @@ const BSNavbar1 = (props) => {
|
||||||
pointerEvents:
|
pointerEvents:
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
}}
|
}}
|
||||||
|
className="ResNavbarIcons"
|
||||||
>
|
>
|
||||||
<BSNavBarOffer />
|
<BSNavBarOffer />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{item?.OptionName == 'ExtraCharge' && (
|
{item?.OptionName == 'ExtraCharge' && (
|
||||||
// CartOrderDetails?.length > 0 &&
|
|
||||||
<div
|
<div
|
||||||
|
className="ResNavbarIcons"
|
||||||
style={{
|
style={{
|
||||||
pointerEvents:
|
pointerEvents:
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
|
|
@ -1178,60 +1124,47 @@ const BSNavbar1 = (props) => {
|
||||||
<BSNavBarAddons />
|
<BSNavBarAddons />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{item?.OptionName == 'AddCustomer' && (
|
{/* Customer Add Select */}
|
||||||
<Popover
|
{item?.OptionName == 'AddCustomer' && !preOrderOpen && (
|
||||||
content={
|
<div className="NavbarCus-Add">
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
columnGap: '0.5rem',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<BSCustomerSelect TopName={'navbar-top'} />
|
<BSCustomerSelect TopName={'navbar-top'} />
|
||||||
<BSNavBarAddUser />
|
<BSNavBarAddUser />
|
||||||
</div>
|
</div>
|
||||||
}
|
)}
|
||||||
trigger="click"
|
</>
|
||||||
placement="left"
|
|
||||||
open={open}
|
|
||||||
onOpenChange={handleOpenChange}
|
|
||||||
>
|
|
||||||
<PozoAddCustomerIcon className="BSBillingNav-icon" />
|
|
||||||
</Popover>
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
|
{!OtherServicesglobal && (
|
||||||
|
<>
|
||||||
|
{/* Weight Scale */}
|
||||||
{FeatureAddonData?.FeatureDtls?.find(
|
{FeatureAddonData?.FeatureDtls?.find(
|
||||||
(item) =>
|
(item) =>
|
||||||
item?.FeatureAddonName?.toLowerCase() === 'Weight Scale'
|
item?.FeatureAddonName?.toLowerCase() === 'weight scale'
|
||||||
) && (
|
) && (
|
||||||
<div
|
<div
|
||||||
|
className="ResNavbarIcons"
|
||||||
style={{
|
style={{
|
||||||
pointerEvents:
|
pointerEvents: OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BSNavBarWeightScale />
|
<BSNavBarWeightScale />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{/* PreOrder */}
|
||||||
{FeatureAddonData?.FeatureDtls?.find(
|
{FeatureAddonData?.FeatureDtls?.find(
|
||||||
(item) =>
|
(item) => item?.FeatureAddonName?.toLowerCase() === 'preorder'
|
||||||
item?.FeatureAddonName?.toLowerCase() === 'preorder'
|
|
||||||
) && (
|
) && (
|
||||||
<div
|
<div
|
||||||
|
className="ResNavbarIcons"
|
||||||
style={{
|
style={{
|
||||||
pointerEvents:
|
pointerEvents:
|
||||||
tableData || OrderType === 'Failed'
|
tableData || OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
? 'none'
|
|
||||||
: 'auto',
|
|
||||||
opacity: tableData ? 0.5 : 1,
|
opacity: tableData ? 0.5 : 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TooltipWrapper
|
<TooltipWrapper title={'Pre Booking'} isMobile={isMobile}>
|
||||||
title={'Pre Booking'}
|
|
||||||
isMobile={isMobile}
|
|
||||||
>
|
|
||||||
<Badge
|
<Badge
|
||||||
count={preOrderPendingCount}
|
count={preOrderPendingCount}
|
||||||
offset={[-5, 10]}
|
offset={[-5, 10]}
|
||||||
|
|
@ -1241,108 +1174,120 @@ const BSNavbar1 = (props) => {
|
||||||
className="BSBillingNav-icon"
|
className="BSBillingNav-icon"
|
||||||
fill={preOrderOpen ? '#52C41A' : '#1292EE'}
|
fill={preOrderOpen ? '#52C41A' : '#1292EE'}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
openPreOrder('small-screen');
|
openPreOrder();
|
||||||
}}
|
}}
|
||||||
|
HandleClose={preOrderHandleclose}
|
||||||
/>
|
/>
|
||||||
</Badge>
|
</Badge>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{preOrderOpen && (
|
{preOrderOpen && (
|
||||||
<BSNavBarPreOrder
|
<BSNavBarPreOrder HandleClose={preOrderHandleclose} />
|
||||||
preOrderhiseandShow={handlepreOrderhiseandShow}
|
|
||||||
preOrderhideshow={preOrderhiseandShow}
|
|
||||||
HandleClose={preOrderHandleclose}
|
|
||||||
/>
|
|
||||||
)}
|
)}
|
||||||
{sportsAppPreference && <BSMembership />}
|
{sportsAppPreference && <BSMembership />}
|
||||||
{Estimation?.SettingValue == 'Y' &&
|
{Estimation?.SettingValue === 'Y' &&
|
||||||
!OrderOfferStatus &&
|
|
||||||
BookingType !== 'Dine In' &&
|
BookingType !== 'Dine In' &&
|
||||||
!BookingTypeBoth && (
|
!BookingTypeBoth &&
|
||||||
<div
|
!OrderOfferStatus && (
|
||||||
style={{
|
|
||||||
pointerEvents:
|
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<BSNavBarEstimate />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{SalesMode?.SettingValue === 'Y' &&
|
|
||||||
!OtherServicesglobal && <BSNavBarWholeSale />}
|
|
||||||
|
|
||||||
{!sportsAppPreference && (
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
pointerEvents:
|
|
||||||
OrderType === 'Failed' ? 'none' : 'auto',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<BSNavBarFavItems type="small-screen" />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
pointerEvents: OrderType === 'Failed' ? 'none' : 'auto',
|
pointerEvents: OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BSNavBarDragItems type="small-screen" />
|
<BSNavBarEstimate />
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
{/* mohan */}
|
||||||
|
{SalesMode?.SettingValue === 'Y' && !OtherServicesglobal && (
|
||||||
|
<div className="ResNavbarIcons">
|
||||||
|
<BSNavBarWholeSale />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{!OtherServicesglobal &&
|
||||||
|
ScanLayoutScreen?.SettingValue === 'Y' && <BSScanTemplate />}
|
||||||
|
{/* favourites */}
|
||||||
|
{!sportsAppPreference && (
|
||||||
|
<div
|
||||||
|
className="ResNavbarIcons"
|
||||||
|
style={{
|
||||||
|
pointerEvents: OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<BSNavBarFavItems />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{/* DragItem */}
|
||||||
|
<div
|
||||||
|
className="favIcon ResNavbarIcons"
|
||||||
|
style={{
|
||||||
|
pointerEvents: OrderType === 'Failed' ? 'none' : 'auto',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<BSNavBarDragItems />
|
||||||
|
</div>
|
||||||
|
{/* Customer Display */}
|
||||||
{FeatureAddonData?.FeatureDtls?.find(
|
{FeatureAddonData?.FeatureDtls?.find(
|
||||||
(item) =>
|
(item) =>
|
||||||
item?.FeatureAddonName?.toLowerCase() ===
|
item?.FeatureAddonName?.toLowerCase() === 'customer display'
|
||||||
'customer display'
|
|
||||||
) && (
|
) && (
|
||||||
<TooltipWrapper
|
<TooltipWrapper title="Customer Display" isMobile={isMobile}>
|
||||||
title="Customer Display"
|
|
||||||
isMobile={isMobile}
|
|
||||||
>
|
|
||||||
{/* <div onClick={openNewTab} style={{ display: "flex", alignItems: "center", cursor: "pointer" }}>
|
|
||||||
<FaDisplay />
|
|
||||||
</div> */}
|
|
||||||
<div
|
<div
|
||||||
onClick={openNewTab}
|
onClick={openNewTab}
|
||||||
style={{ width: '1.3rem', cursor: 'pointer' }}
|
className="BSBillingNavBar1-AllIcons ResNavbarIcons"
|
||||||
|
style={{
|
||||||
|
width: '1.3rem',
|
||||||
|
margin: '10px',
|
||||||
|
cursor: 'pointer',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<CustomerDisplayicon />
|
<CustomerDisplayicon />
|
||||||
</div>
|
</div>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
)}
|
)}
|
||||||
|
{/* Pay,ent Failed */}
|
||||||
{VerifyTheProducts && <VerfiedProducts />}
|
|
||||||
|
|
||||||
{paymentfeataddon && (
|
{paymentfeataddon && (
|
||||||
<TooltipWrapper
|
<TooltipWrapper title="Failed Payment" isMobile={isMobile}>
|
||||||
title="Failed Payment"
|
|
||||||
isMobile={isMobile}
|
|
||||||
>
|
|
||||||
{/* PozoPaymentFailesIcon */}
|
|
||||||
<div
|
<div
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
paymentFailedStatusFun();
|
paymentFailedStatusFun();
|
||||||
}}
|
}}
|
||||||
|
className="BSBillingNavBar1-AllIcons ResNavbarIcons"
|
||||||
style={{ width: '1.4rem', cursor: 'pointer' }}
|
style={{ width: '1.4rem', cursor: 'pointer' }}
|
||||||
>
|
>
|
||||||
<PozoPaymentFailesIcon />
|
<PozoPaymentFailesIcon />
|
||||||
</div>
|
</div>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
)}
|
)}
|
||||||
|
{/* VerifyTheProducts */}
|
||||||
|
{VerifyTheProducts && (
|
||||||
|
<TooltipWrapper
|
||||||
|
title={'Verfied Products'}
|
||||||
|
isMobile={isMobile}
|
||||||
|
>
|
||||||
|
<div className="ResNavbarIcons">
|
||||||
|
<VerfiedProducts />
|
||||||
|
</div>
|
||||||
|
</TooltipWrapper>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
{!isMobile && (
|
||||||
</div>
|
<div className="PrinterSettingMB">
|
||||||
|
<BSMobilePrintSettings />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="BSBillingnav1-threedots" onClick={NavmenuOpenClose}>
|
|
||||||
{Navmenu ? (
|
|
||||||
<IoMdClose size={24} color="#ff0000" />
|
|
||||||
) : (
|
|
||||||
<PozoMenuIcon size={20} />
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* */}
|
||||||
|
{/* */}
|
||||||
|
{/* */}
|
||||||
|
{/* small screen nav bar End*/}
|
||||||
|
{/* */}
|
||||||
|
{/* */}
|
||||||
|
{/* */}
|
||||||
|
|
||||||
<DefaultModal
|
<DefaultModal
|
||||||
open={multiple}
|
open={multiple}
|
||||||
|
|
|
||||||
|
|
@ -1652,6 +1652,10 @@ const FeaturesFunctionalities = (props) => {
|
||||||
}
|
}
|
||||||
formRef.current?.setFieldsValue(response?.data?.data?.[0]);
|
formRef.current?.setFieldsValue(response?.data?.data?.[0]);
|
||||||
|
|
||||||
|
if (response?.data?.data?.[0]?.Gender) {
|
||||||
|
setGender(response?.data?.data?.[0]?.Gender);
|
||||||
|
}
|
||||||
|
|
||||||
if (response?.data?.data?.[0]?.InitialOutStanding) {
|
if (response?.data?.data?.[0]?.InitialOutStanding) {
|
||||||
setInitialOutStandingType(
|
setInitialOutStandingType(
|
||||||
response?.data?.data?.[0]?.InitialOutStanding
|
response?.data?.data?.[0]?.InitialOutStanding
|
||||||
|
|
@ -2978,7 +2982,7 @@ const FeaturesFunctionalities = (props) => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
validator: async (_, value) => {
|
validator: async (_, value) => {
|
||||||
await validateSafeInput(value); // To block HTML tags & SQL keywords
|
await validateSafeInput(value);
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -3021,6 +3025,7 @@ const FeaturesFunctionalities = (props) => {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item name={'Gender'}>
|
<Form.Item name={'Gender'}>
|
||||||
<RadioGrpButton
|
<RadioGrpButton
|
||||||
Header={'Gender'}
|
Header={'Gender'}
|
||||||
|
|
@ -3028,7 +3033,6 @@ const FeaturesFunctionalities = (props) => {
|
||||||
{ label: 'Male', value: 'M' },
|
{ label: 'Male', value: 'M' },
|
||||||
{ label: 'Female', value: 'F' },
|
{ label: 'Female', value: 'F' },
|
||||||
]}
|
]}
|
||||||
// value={formRef.current?.getFieldsValue()?.Gender}
|
|
||||||
defaultSelect={gender}
|
defaultSelect={gender}
|
||||||
onSelectFuntion={(e) => {
|
onSelectFuntion={(e) => {
|
||||||
setGender(e);
|
setGender(e);
|
||||||
|
|
@ -3036,6 +3040,7 @@ const FeaturesFunctionalities = (props) => {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item name={'AadhaarNo'}>
|
<Form.Item name={'AadhaarNo'}>
|
||||||
<InputField
|
<InputField
|
||||||
label={'Aadhaar No'}
|
label={'Aadhaar No'}
|
||||||
|
|
@ -3075,22 +3080,7 @@ const FeaturesFunctionalities = (props) => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* <p
|
|
||||||
onClick={handleToggle}
|
|
||||||
style={{
|
|
||||||
fontSize: '13px',
|
|
||||||
cursor: 'pointer',
|
|
||||||
padding: '1rem 0.3rem',
|
|
||||||
display: 'flex',
|
|
||||||
// alignItems: "center",
|
|
||||||
flexDirection: 'row',
|
|
||||||
columnGap: '0.3rem',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{' '}
|
|
||||||
{isOpen ? 'More info close' : 'More info open'}{' '}
|
|
||||||
<AiOutlineDownCircle />
|
|
||||||
</p> */}
|
|
||||||
<p
|
<p
|
||||||
style={{
|
style={{
|
||||||
fontSize: '13px',
|
fontSize: '13px',
|
||||||
|
|
@ -3516,7 +3506,9 @@ const FeaturesFunctionalities = (props) => {
|
||||||
borderRadius: '6px',
|
borderRadius: '6px',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
marginTop: '8px',
|
marginTop: '8px',
|
||||||
fontWeight: '500',
|
fontWeight: '400',
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontSize: '12px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{editingIndex !== null
|
{editingIndex !== null
|
||||||
|
|
@ -3984,10 +3976,6 @@ const FeaturesFunctionalities = (props) => {
|
||||||
option?.BookingTypeName +
|
option?.BookingTypeName +
|
||||||
' ' +
|
' ' +
|
||||||
option?.SinglePc,
|
option?.SinglePc,
|
||||||
// label: option.Type === 'P' ? option.ProdVariantName !== 'Variant 1'
|
|
||||||
// ? `${option?.ProdName} (${option.Size} ${option.UomName}) (${option.ProdVariantName}${BookingTypeBoth ? ` (${option?.BookingTypeName})` : ''})`
|
|
||||||
// : `${option?.ProdName} (${option.Size} ${option.UomName}) ${BookingTypeBoth ? ` (${option?.BookingTypeName})` : ''}`
|
|
||||||
// : `${option?.ProdName} (1 Combo)`
|
|
||||||
label:
|
label:
|
||||||
option.Type === 'P'
|
option.Type === 'P'
|
||||||
? option.ProdVariantName !== 'Variant 1'
|
? option.ProdVariantName !== 'Variant 1'
|
||||||
|
|
|
||||||
|
|
@ -392,7 +392,7 @@ const BSNavBarSearch = (props) => {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="BSNavBarSearchMaster">
|
||||||
<Messages
|
<Messages
|
||||||
messageData={messageData}
|
messageData={messageData}
|
||||||
messageType={messageType}
|
messageType={messageType}
|
||||||
|
|
@ -416,16 +416,16 @@ const BSNavBarSearch = (props) => {
|
||||||
value={searchDataFocus}
|
value={searchDataFocus}
|
||||||
ref={searchInputRef}
|
ref={searchInputRef}
|
||||||
className="custom-input"
|
className="custom-input"
|
||||||
placeholder="Search (SHIFT + S)"
|
placeholder={
|
||||||
|
isMobile && screenWidth <= 768
|
||||||
|
? 'SHIFT + S'
|
||||||
|
: 'Search (SHIFT + S)'
|
||||||
|
}
|
||||||
onChange={(e) => searchdata(e?.target?.value)}
|
onChange={(e) => searchdata(e?.target?.value)}
|
||||||
onBlur={handleBlur}
|
onBlur={handleBlur}
|
||||||
disabled={props.OrderType === 'Failed' ? true : false}
|
disabled={props.OrderType === 'Failed' ? true : false}
|
||||||
/>
|
/>
|
||||||
{isMobile && screenWidth <= 768 ? (
|
{isMobile && screenWidth <= 768 ? (
|
||||||
// <BiBarcodeReader
|
|
||||||
// className="search-icon"
|
|
||||||
// onClick={() => handleQrcode()}
|
|
||||||
// />
|
|
||||||
<BarCodeScan
|
<BarCodeScan
|
||||||
onScan={(value) => {
|
onScan={(value) => {
|
||||||
searchdata(value);
|
searchdata(value);
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,16 @@
|
||||||
import { useDispatch, useSelector } from 'react-redux';
|
import { useDispatch, useSelector } from 'react-redux';
|
||||||
import { GlobalRetailWSSalesType, changeRetailWSSalesType } from '../../../../Features/BookingScreen/BookingData/BookingData';
|
import {
|
||||||
import { MdAddShoppingCart } from "react-icons/md";
|
GlobalRetailWSSalesType,
|
||||||
import { FaBoxes } from "react-icons/fa";
|
changeRetailWSSalesType,
|
||||||
|
} from '../../../../Features/BookingScreen/BookingData/BookingData';
|
||||||
|
import { MdAddShoppingCart } from 'react-icons/md';
|
||||||
|
import { FaBoxes } from 'react-icons/fa';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
|
|
||||||
|
const BSNavBarWholeSale = ({
|
||||||
|
drawerOpen = false,
|
||||||
const BSNavBarWholeSale = ({ drawerOpen = false, setDrawerOpen = () => { } }) => {
|
setDrawerOpen = () => {},
|
||||||
|
}) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const SaleType = useSelector(GlobalRetailWSSalesType);
|
const SaleType = useSelector(GlobalRetailWSSalesType);
|
||||||
const isWholesale = SaleType === 'W';
|
const isWholesale = SaleType === 'W';
|
||||||
|
|
@ -16,10 +20,10 @@ const BSNavBarWholeSale = ({ drawerOpen = false, setDrawerOpen = () => { } }) =>
|
||||||
};
|
};
|
||||||
|
|
||||||
const btnStyle = {
|
const btnStyle = {
|
||||||
width: '33px',
|
width: '30px',
|
||||||
height: '33px',
|
height: '30px',
|
||||||
borderRadius: '8px',
|
borderRadius: '6px',
|
||||||
backgroundColor: isWholesale ? '#22c55e' : '#3b82f6',
|
backgroundColor: isWholesale ? '#45ca00' : '#1292ee',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
|
@ -27,11 +31,12 @@ const BSNavBarWholeSale = ({ drawerOpen = false, setDrawerOpen = () => { } }) =>
|
||||||
border: 'none',
|
border: 'none',
|
||||||
outline: 'none',
|
outline: 'none',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
padding:"10px",
|
padding: '10px',
|
||||||
|
color: '#fff',
|
||||||
};
|
};
|
||||||
|
|
||||||
const iconStyle = {
|
const iconStyle = {
|
||||||
fontSize: '16px',
|
fontSize: '17px',
|
||||||
color: 'white',
|
color: 'white',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
};
|
};
|
||||||
|
|
@ -40,27 +45,33 @@ const BSNavBarWholeSale = ({ drawerOpen = false, setDrawerOpen = () => { } }) =>
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: '-2px',
|
top: '-2px',
|
||||||
right: '-10px',
|
right: '-10px',
|
||||||
backgroundColor: isWholesale ? '#15803d' : '#1e40af',
|
backgroundColor: isWholesale ? '#3bb100' : '#0078ce',
|
||||||
color: 'white',
|
color: 'white',
|
||||||
fontSize: '12px',
|
fontSize: '11px',
|
||||||
fontWeight: 'bold',
|
fontWeight: '500',
|
||||||
borderRadius: '9999px',
|
borderRadius: '9999px',
|
||||||
width: '20px',
|
width: '20px',
|
||||||
height: '20px',
|
height: '20px',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
color: '#fff',
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (drawerOpen?.wholesale) {
|
if (drawerOpen?.wholesale) {
|
||||||
toggleSaleType();
|
toggleSaleType();
|
||||||
setDrawerOpen(prev => ({ ...prev, wholesale: false }));
|
setDrawerOpen((prev) => ({ ...prev, wholesale: false }));
|
||||||
}
|
}
|
||||||
}, [drawerOpen?.wholesale])
|
}, [drawerOpen?.wholesale]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button className='WholesaleretialChangeIcon' onClick={toggleSaleType} style={btnStyle}>
|
<button
|
||||||
|
className="WholesaleretialChangeIcon"
|
||||||
|
onClick={toggleSaleType}
|
||||||
|
style={btnStyle}
|
||||||
|
>
|
||||||
<span style={iconStyle}>
|
<span style={iconStyle}>
|
||||||
{isWholesale ? <FaBoxes /> : <MdAddShoppingCart />}
|
{isWholesale ? <FaBoxes /> : <MdAddShoppingCart />}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,7 @@ const BSLayout1 = () => {
|
||||||
const BookingBilling = BSLayout1Data?.BookingBilling?.[0];
|
const BookingBilling = BSLayout1Data?.BookingBilling?.[0];
|
||||||
const [messageType, setMessageType] = useState(null);
|
const [messageType, setMessageType] = useState(null);
|
||||||
const [messageData, setMessageData] = useState(null);
|
const [messageData, setMessageData] = useState(null);
|
||||||
|
const [connectingState, setConnectingState] = useState({});
|
||||||
// const [AppExpDate, setAppExpDate] = useState(0);
|
// const [AppExpDate, setAppExpDate] = useState(0);
|
||||||
const [screenHeight, setScreenHeight] = useState(window.innerHeight);
|
const [screenHeight, setScreenHeight] = useState(window.innerHeight);
|
||||||
const [Kioskopen, setKioskopen] = useState(false);
|
const [Kioskopen, setKioskopen] = useState(false);
|
||||||
|
|
@ -338,8 +339,11 @@ const BSLayout1 = () => {
|
||||||
style={{ height: containerHeight, overflow: 'hidden' }}
|
style={{ height: containerHeight, overflow: 'hidden' }}
|
||||||
>
|
>
|
||||||
<div className="BSLayout1-NavBar">
|
<div className="BSLayout1-NavBar">
|
||||||
<BSNavbar1 BookingNavbar={BookingNavbar}/>
|
<BSNavbar1
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
|
|
@ -349,7 +353,6 @@ const BSLayout1 = () => {
|
||||||
backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor,
|
backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{BookingNavbar != 'Navbar3' ? (
|
|
||||||
<div
|
<div
|
||||||
className="Layout-bill-container"
|
className="Layout-bill-container"
|
||||||
style={{ marginTop: '12px' }}
|
style={{ marginTop: '12px' }}
|
||||||
|
|
@ -385,6 +388,7 @@ const BSLayout1 = () => {
|
||||||
<SalesCountComponent
|
<SalesCountComponent
|
||||||
DineInAccess={DineInAccess}
|
DineInAccess={DineInAccess}
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
GlobalsalesDetailData={GlobalsalesDetailData}
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{SessionData?.FeatureAddonData?.FeatureDtls?.find(
|
{SessionData?.FeatureAddonData?.FeatureDtls?.find(
|
||||||
|
|
@ -497,10 +501,7 @@ const BSLayout1 = () => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div style={{ marginLeft: '10px' }}>
|
<div style={{ marginLeft: '10px' }}>
|
||||||
<TooltipWrapper
|
<TooltipWrapper title={'E-way Bill'} isMobile={isMobile}>
|
||||||
title={'E-way Bill'}
|
|
||||||
isMobile={isMobile}
|
|
||||||
>
|
|
||||||
{''}
|
{''}
|
||||||
<BSEwayBillicon
|
<BSEwayBillicon
|
||||||
style={{ cursor: 'pointer', marginTop: '5px' }}
|
style={{ cursor: 'pointer', marginTop: '5px' }}
|
||||||
|
|
@ -512,13 +513,7 @@ const BSLayout1 = () => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
<SalesCountForStandard
|
|
||||||
PricingAppPricingName={PricingAppPricingName}
|
|
||||||
DineInAccess={DineInAccess}
|
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<div className="BSLayout1-ContentDiv">
|
<div className="BSLayout1-ContentDiv">
|
||||||
<div className="BSCategory1-Contentcont">
|
<div className="BSCategory1-Contentcont">
|
||||||
<div
|
<div
|
||||||
|
|
@ -587,6 +582,8 @@ const BSLayout1 = () => {
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<BSItemCard
|
<BSItemCard
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
screenHeight={screenHeight}
|
screenHeight={screenHeight}
|
||||||
cardFunctionality={dynamicComponentProps(
|
cardFunctionality={dynamicComponentProps(
|
||||||
'Card',
|
'Card',
|
||||||
|
|
|
||||||
|
|
@ -168,6 +168,7 @@ const BSLayout2 = () => {
|
||||||
const [messageType, setMessageType] = useState(null);
|
const [messageType, setMessageType] = useState(null);
|
||||||
const [messageData, setMessageData] = useState(null);
|
const [messageData, setMessageData] = useState(null);
|
||||||
const [popOverOpen, setPopOverOpen] = useState(false);
|
const [popOverOpen, setPopOverOpen] = useState(false);
|
||||||
|
const [connectingState, setConnectingState] = useState({});
|
||||||
const BookingStatus = useSelector(GlobalBookingStatus);
|
const BookingStatus = useSelector(GlobalBookingStatus);
|
||||||
const CheckBookingStatus =
|
const CheckBookingStatus =
|
||||||
BookingStatus?.find((item) => item.ScreenType === 'Booking')
|
BookingStatus?.find((item) => item.ScreenType === 'Booking')
|
||||||
|
|
@ -348,7 +349,11 @@ const BSLayout2 = () => {
|
||||||
style={{ height: containerHeight, overflow: 'hidden' }}
|
style={{ height: containerHeight, overflow: 'hidden' }}
|
||||||
>
|
>
|
||||||
<div className="BSLayout2-NavBar">
|
<div className="BSLayout2-NavBar">
|
||||||
<BSNavbar1 BookingNavbar={BookingNavbar}/>
|
<BSNavbar1
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|
@ -357,7 +362,6 @@ const BSLayout2 = () => {
|
||||||
BookingNavbar != 'Navbar3' ? 'BSLayout2Standard' : 'BSLayout2'
|
BookingNavbar != 'Navbar3' ? 'BSLayout2Standard' : 'BSLayout2'
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{BookingNavbar != 'Navbar3' ? (
|
|
||||||
<div
|
<div
|
||||||
className="Layout-bill-container"
|
className="Layout-bill-container"
|
||||||
style={{ marginTop: '9px' }}
|
style={{ marginTop: '9px' }}
|
||||||
|
|
@ -378,6 +382,7 @@ const BSLayout2 = () => {
|
||||||
<SalesCountComponent
|
<SalesCountComponent
|
||||||
DineInAccess={DineInAccess}
|
DineInAccess={DineInAccess}
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
GlobalsalesDetailData={GlobalsalesDetailData}
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
/>
|
/>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
)}
|
)}
|
||||||
|
|
@ -511,15 +516,6 @@ const BSLayout2 = () => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
<Suspense fallback={null}>
|
|
||||||
<SalesCountForStandard
|
|
||||||
PricingAppPricingName={PricingAppPricingName}
|
|
||||||
DineInAccess={DineInAccess}
|
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
|
||||||
/>
|
|
||||||
</Suspense>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="BsLayout2-ContentDiv"
|
className="BsLayout2-ContentDiv"
|
||||||
|
|
@ -582,6 +578,8 @@ const BSLayout2 = () => {
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<BSItemCard
|
<BSItemCard
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
cardFunctionality={dynamicComponentProps(
|
cardFunctionality={dynamicComponentProps(
|
||||||
'Card',
|
'Card',
|
||||||
BSLayout2Data?.BookingCard?.[1],
|
BSLayout2Data?.BookingCard?.[1],
|
||||||
|
|
|
||||||
|
|
@ -112,8 +112,6 @@ const BSNavbar2 = lazy(() => import('../../Components/BSNavbar/BSNavbar2'));
|
||||||
import '../../../../Styles/BookingScreen/Template/BSLayout3/BSLayout3.scss';
|
import '../../../../Styles/BookingScreen/Template/BSLayout3/BSLayout3.scss';
|
||||||
import CardSkeleton from '../../../../Components/Skeleton/CardSkeleton.jsx';
|
import CardSkeleton from '../../../../Components/Skeleton/CardSkeleton.jsx';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const BSLayout3 = () => {
|
const BSLayout3 = () => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const { action, selectedProducts } = useSelector(
|
const { action, selectedProducts } = useSelector(
|
||||||
|
|
@ -168,6 +166,7 @@ const BSLayout3 = () => {
|
||||||
(i) => i.SettingIdName === 'DineIn'
|
(i) => i.SettingIdName === 'DineIn'
|
||||||
)?.[0];
|
)?.[0];
|
||||||
}, [SettingDataSelector]);
|
}, [SettingDataSelector]);
|
||||||
|
const [connectingState, setConnectingState] = useState({});
|
||||||
const [ListOfInvoices, setListOfInvoices] = useState(false);
|
const [ListOfInvoices, setListOfInvoices] = useState(false);
|
||||||
const AppId = SessionData?.AppId;
|
const AppId = SessionData?.AppId;
|
||||||
const CompId = SessionData?.CompId;
|
const CompId = SessionData?.CompId;
|
||||||
|
|
@ -321,7 +320,11 @@ const BSLayout3 = () => {
|
||||||
style={{ height: containerHeight, overflow: 'hidden' }}
|
style={{ height: containerHeight, overflow: 'hidden' }}
|
||||||
>
|
>
|
||||||
<div className="BSLayout3-NavBar">
|
<div className="BSLayout3-NavBar">
|
||||||
<BSNavbar1 BookingNavbar={BookingNavbar}/>
|
<BSNavbar1
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
|
|
@ -331,11 +334,7 @@ const BSLayout3 = () => {
|
||||||
backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor,
|
backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{BookingNavbar != 'Navbar3' ? (
|
<div className="Layout-bill-container" style={{ marginTop: '9px' }}>
|
||||||
<div
|
|
||||||
className="Layout-bill-container"
|
|
||||||
style={{ marginTop: '9px' }}
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
className="Layout-bill-Subcontainer"
|
className="Layout-bill-Subcontainer"
|
||||||
style={{ width: OtherServicesglobal ? '10%' : '100%' }}
|
style={{ width: OtherServicesglobal ? '10%' : '100%' }}
|
||||||
|
|
@ -351,6 +350,7 @@ const BSLayout3 = () => {
|
||||||
<SalesCountComponent
|
<SalesCountComponent
|
||||||
DineInAccess={DineInAccess}
|
DineInAccess={DineInAccess}
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
GlobalsalesDetailData={GlobalsalesDetailData}
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!OtherServicesglobal &&
|
{!OtherServicesglobal &&
|
||||||
|
|
@ -476,11 +476,7 @@ const BSLayout3 = () => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
<>
|
|
||||||
<SalesCountForStandard />
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
<div
|
<div
|
||||||
className="BsLayout3-ContentDiv"
|
className="BsLayout3-ContentDiv"
|
||||||
style={{
|
style={{
|
||||||
|
|
@ -542,6 +538,8 @@ const BSLayout3 = () => {
|
||||||
>
|
>
|
||||||
{!OtherServicesglobal && Comboglobal === false && (
|
{!OtherServicesglobal && Comboglobal === false && (
|
||||||
<BSItemCard
|
<BSItemCard
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
cardFunctionality={dynamicComponentProps(
|
cardFunctionality={dynamicComponentProps(
|
||||||
'Card',
|
'Card',
|
||||||
BookingCard?.[1],
|
BookingCard?.[1],
|
||||||
|
|
|
||||||
|
|
@ -170,6 +170,7 @@ const BSLayout4 = () => {
|
||||||
);
|
);
|
||||||
// const [AppExpDate, setAppExpDate] = useState(0);
|
// const [AppExpDate, setAppExpDate] = useState(0);
|
||||||
const [Kioskopen, setKioskopen] = useState(false);
|
const [Kioskopen, setKioskopen] = useState(false);
|
||||||
|
const [connectingState, setConnectingState] = useState({});
|
||||||
const BookingStatus = useSelector(GlobalBookingStatus);
|
const BookingStatus = useSelector(GlobalBookingStatus);
|
||||||
const CheckBookingStatus =
|
const CheckBookingStatus =
|
||||||
BookingStatus?.find((item) => item.ScreenType === 'Booking')
|
BookingStatus?.find((item) => item.ScreenType === 'Booking')
|
||||||
|
|
@ -337,9 +338,13 @@ const BSLayout4 = () => {
|
||||||
style={{ height: containerHeight, overflow: 'hidden' }}
|
style={{ height: containerHeight, overflow: 'hidden' }}
|
||||||
>
|
>
|
||||||
<div className="Bslayout4_navbar">
|
<div className="Bslayout4_navbar">
|
||||||
<BSNavbar1 BookingNavbar={BookingNavbar}/>
|
<BSNavbar1
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{BookingNavbar != 'Navbar3' ? (
|
|
||||||
<div className="Layout-bill-container" style={{ margin: '0' }}>
|
<div className="Layout-bill-container" style={{ margin: '0' }}>
|
||||||
<div
|
<div
|
||||||
className="Layout-bill-Subcontainer"
|
className="Layout-bill-Subcontainer"
|
||||||
|
|
@ -356,6 +361,7 @@ const BSLayout4 = () => {
|
||||||
<SalesCountComponent
|
<SalesCountComponent
|
||||||
DineInAccess={DineInAccess}
|
DineInAccess={DineInAccess}
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
GlobalsalesDetailData={GlobalsalesDetailData}
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!OtherServicesglobal &&
|
{!OtherServicesglobal &&
|
||||||
|
|
@ -371,11 +377,7 @@ const BSLayout4 = () => {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Tooltip title={'Kiosk Sales'}>
|
<Tooltip title={'Kiosk Sales'}>
|
||||||
<Badge
|
<Badge count={badgeCount} offset={[-10, 3]} size="small">
|
||||||
count={badgeCount}
|
|
||||||
offset={[-10, 3]}
|
|
||||||
size="small"
|
|
||||||
>
|
|
||||||
<PozoKioskIcon
|
<PozoKioskIcon
|
||||||
onClick={() => openModalKiosk()}
|
onClick={() => openModalKiosk()}
|
||||||
style={{ cursor: 'pointer', fontSize: '1.5rem' }}
|
style={{ cursor: 'pointer', fontSize: '1.5rem' }}
|
||||||
|
|
@ -386,10 +388,7 @@ const BSLayout4 = () => {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!OtherServicesglobal && (
|
{!OtherServicesglobal && (
|
||||||
<TooltipWrapper
|
<TooltipWrapper title={'Low Stock Alerts'} isMobile={isMobile}>
|
||||||
title={'Low Stock Alerts'}
|
|
||||||
isMobile={isMobile}
|
|
||||||
>
|
|
||||||
{' '}
|
{' '}
|
||||||
<BSExpireProductsList />
|
<BSExpireProductsList />
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
|
|
@ -400,8 +399,7 @@ const BSLayout4 = () => {
|
||||||
closeKioskModal={closeModalKiosk}
|
closeKioskModal={closeModalKiosk}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{SAdminuserPin?.length > 0 &&
|
{SAdminuserPin?.length > 0 && UserType != 'Super Admin User' && (
|
||||||
UserType != 'Super Admin User' && (
|
|
||||||
<div>
|
<div>
|
||||||
<SAdminUserNotification
|
<SAdminUserNotification
|
||||||
SAdminuserPin={SAdminuserPin}
|
SAdminuserPin={SAdminuserPin}
|
||||||
|
|
@ -414,10 +412,7 @@ const BSLayout4 = () => {
|
||||||
{CheckBookingStatus == 'Open' ? (
|
{CheckBookingStatus == 'Open' ? (
|
||||||
!OtherServicesglobal && (
|
!OtherServicesglobal && (
|
||||||
<div style={{ marginLeft: '10px' }}>
|
<div style={{ marginLeft: '10px' }}>
|
||||||
<TooltipWrapper
|
<TooltipWrapper title={'Booking Close'} isMobile={isMobile}>
|
||||||
title={'Booking Close'}
|
|
||||||
isMobile={isMobile}
|
|
||||||
>
|
|
||||||
{' '}
|
{' '}
|
||||||
<BookingCloseIcon
|
<BookingCloseIcon
|
||||||
onClick={OpenBookingModal}
|
onClick={OpenBookingModal}
|
||||||
|
|
@ -473,13 +468,7 @@ const BSLayout4 = () => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
<SalesCountForStandard
|
|
||||||
PricingAppPricingName={PricingAppPricingName}
|
|
||||||
DineInAccess={DineInAccess}
|
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<div
|
<div
|
||||||
className="Bslayout4_overall"
|
className="Bslayout4_overall"
|
||||||
style={{
|
style={{
|
||||||
|
|
@ -524,6 +513,8 @@ const BSLayout4 = () => {
|
||||||
>
|
>
|
||||||
{!OtherServicesglobal && Comboglobal === false && (
|
{!OtherServicesglobal && Comboglobal === false && (
|
||||||
<BSItemCard
|
<BSItemCard
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
cardFunctionality={dynamicComponentProps(
|
cardFunctionality={dynamicComponentProps(
|
||||||
'Card',
|
'Card',
|
||||||
BookingCard?.[1],
|
BookingCard?.[1],
|
||||||
|
|
|
||||||
|
|
@ -136,6 +136,7 @@ const BSLayout5 = () => {
|
||||||
// const [AppExpDate, setAppExpDate] = useState(0);
|
// const [AppExpDate, setAppExpDate] = useState(0);
|
||||||
const [screenHeight, setScreenHeight] = useState(window.innerHeight);
|
const [screenHeight, setScreenHeight] = useState(window.innerHeight);
|
||||||
const [Kioskopen, setKioskopen] = useState(false);
|
const [Kioskopen, setKioskopen] = useState(false);
|
||||||
|
const [connectingState, setConnectingState] = useState({});
|
||||||
const PricingAppPricingName = useSelector(GlobalPricingAppPricingName);
|
const PricingAppPricingName = useSelector(GlobalPricingAppPricingName);
|
||||||
const SAdminuserPin = useSelector(GLobalSadminUserPin);
|
const SAdminuserPin = useSelector(GLobalSadminUserPin);
|
||||||
const BookingNavbar = BSLayout5Data?.BookingNavbar?.[0];
|
const BookingNavbar = BSLayout5Data?.BookingNavbar?.[0];
|
||||||
|
|
@ -325,7 +326,11 @@ const BSLayout5 = () => {
|
||||||
style={{ height: containerHeight, overflow: 'hidden' }}
|
style={{ height: containerHeight, overflow: 'hidden' }}
|
||||||
>
|
>
|
||||||
<div className="BSLayout5-NavBar">
|
<div className="BSLayout5-NavBar">
|
||||||
<BSNavbar1 BookingNavbar={BookingNavbar}/>
|
<BSNavbar1
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|
@ -334,7 +339,6 @@ const BSLayout5 = () => {
|
||||||
backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor,
|
backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{BookingNavbar != 'Navbar3' ? (
|
|
||||||
<div className="Layout-bill-container">
|
<div className="Layout-bill-container">
|
||||||
<div
|
<div
|
||||||
className="Layout-bill-Subcontainer"
|
className="Layout-bill-Subcontainer"
|
||||||
|
|
@ -351,6 +355,7 @@ const BSLayout5 = () => {
|
||||||
<SalesCountComponent
|
<SalesCountComponent
|
||||||
DineInAccess={DineInAccess}
|
DineInAccess={DineInAccess}
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
GlobalsalesDetailData={GlobalsalesDetailData}
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
@ -476,13 +481,6 @@ const BSLayout5 = () => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
<SalesCountForStandard
|
|
||||||
PricingAppPricingName={PricingAppPricingName}
|
|
||||||
DineInAccess={DineInAccess}
|
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="BsLayout5-ContentDiv">
|
<div className="BsLayout5-ContentDiv">
|
||||||
<div className="BSCategory5-tablecont">
|
<div className="BSCategory5-tablecont">
|
||||||
|
|
@ -557,6 +555,8 @@ const BSLayout5 = () => {
|
||||||
>
|
>
|
||||||
{!OtherServicesglobal && Comboglobal === false && (
|
{!OtherServicesglobal && Comboglobal === false && (
|
||||||
<BSItemCard
|
<BSItemCard
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
cardFunctionality={dynamicComponentProps(
|
cardFunctionality={dynamicComponentProps(
|
||||||
'Card',
|
'Card',
|
||||||
BookingCard?.[1],
|
BookingCard?.[1],
|
||||||
|
|
|
||||||
|
|
@ -148,6 +148,7 @@ const BSLayout6 = () => {
|
||||||
BookingStatus?.find((item) => item.ScreenType === 'Booking')
|
BookingStatus?.find((item) => item.ScreenType === 'Booking')
|
||||||
?.ScreenStatus ?? 'Open';
|
?.ScreenStatus ?? 'Open';
|
||||||
const [BookingModalOpen, setBookingModalOpen] = useState(false);
|
const [BookingModalOpen, setBookingModalOpen] = useState(false);
|
||||||
|
const [connectingState, setConnectingState] = useState({});
|
||||||
const [Kioskopen, setKioskopen] = useState(false);
|
const [Kioskopen, setKioskopen] = useState(false);
|
||||||
const AppExpDate = useSelector(GlobalAppExpDateData);
|
const AppExpDate = useSelector(GlobalAppExpDateData);
|
||||||
const [screenHeight, setScreenHeight] = useState(window?.innerHeight);
|
const [screenHeight, setScreenHeight] = useState(window?.innerHeight);
|
||||||
|
|
@ -336,9 +337,13 @@ const BSLayout6 = () => {
|
||||||
>
|
>
|
||||||
<div className="BSLayout6-fullnav">
|
<div className="BSLayout6-fullnav">
|
||||||
<div className="BSLayout6-Navbar">
|
<div className="BSLayout6-Navbar">
|
||||||
<BSNavbar1 BookingNavbar={BookingNavbar}/>
|
<BSNavbar1
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{BookingNavbar != 'Navbar3' ? (
|
|
||||||
<div className="Layout-bill-container">
|
<div className="Layout-bill-container">
|
||||||
<div
|
<div
|
||||||
className="Layout-bill-Subcontainer"
|
className="Layout-bill-Subcontainer"
|
||||||
|
|
@ -355,6 +360,7 @@ const BSLayout6 = () => {
|
||||||
<SalesCountComponent
|
<SalesCountComponent
|
||||||
DineInAccess={DineInAccess}
|
DineInAccess={DineInAccess}
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
GlobalsalesDetailData={GlobalsalesDetailData}
|
||||||
|
BookingNavbar={BookingNavbar}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!OtherServicesglobal &&
|
{!OtherServicesglobal &&
|
||||||
|
|
@ -479,13 +485,7 @@ const BSLayout6 = () => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
<SalesCountForStandard
|
|
||||||
PricingAppPricingName={PricingAppPricingName}
|
|
||||||
DineInAccess={DineInAccess}
|
|
||||||
GlobalsalesDetailData={GlobalsalesDetailData}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<div
|
<div
|
||||||
className="BSLayout6-category-div"
|
className="BSLayout6-category-div"
|
||||||
style={{
|
style={{
|
||||||
|
|
@ -529,6 +529,8 @@ const BSLayout6 = () => {
|
||||||
>
|
>
|
||||||
{!OtherServicesglobal && Comboglobal === false && (
|
{!OtherServicesglobal && Comboglobal === false && (
|
||||||
<BSItemCard
|
<BSItemCard
|
||||||
|
connectingState={connectingState}
|
||||||
|
setConnectingState={setConnectingState}
|
||||||
// screenHeight={screenHeight}
|
// screenHeight={screenHeight}
|
||||||
cardFunctionality={dynamicComponentProps(
|
cardFunctionality={dynamicComponentProps(
|
||||||
'Card',
|
'Card',
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ import { MdOutlineCallReceived } from 'react-icons/md';
|
||||||
import { GoPackageDependencies } from 'react-icons/go';
|
import { GoPackageDependencies } from 'react-icons/go';
|
||||||
import { Messages } from '../../../Components/Notifications/Messages';
|
import { Messages } from '../../../Components/Notifications/Messages';
|
||||||
import { useSelector } from 'react-redux';
|
import { useSelector } from 'react-redux';
|
||||||
import { DefaultModal } from '../../../Components/Modal/DefaultModal';
|
|
||||||
import {
|
import {
|
||||||
getCardDataWithoutSub,
|
getCardDataWithoutSub,
|
||||||
getCardDataWithoutSubmodule,
|
getCardDataWithoutSubmodule,
|
||||||
|
|
@ -56,11 +55,19 @@ const ShortcutKeyHelper = lazy(
|
||||||
);
|
);
|
||||||
// Scss
|
// Scss
|
||||||
import './SalesCountComponent.scss';
|
import './SalesCountComponent.scss';
|
||||||
import { SalesDetailsModal, SalesNetAmountModal } from '../Components/UtillComponents/SalesDetailsNetAmountModal.jsx';
|
import {
|
||||||
|
SalesDetailsModal,
|
||||||
|
SalesNetAmountModal,
|
||||||
|
} from '../Components/UtillComponents/SalesDetailsNetAmountModal.jsx';
|
||||||
|
|
||||||
const SalesCountComponent = React.memo(
|
const SalesCountComponent = React.memo(
|
||||||
({ DineInAccess, GlobalsalesDetailData }) => {
|
({ DineInAccess, GlobalsalesDetailData, BookingNavbar }) => {
|
||||||
// Destructure to simplify access to required values
|
// Destructure to simplify access to required values
|
||||||
|
console.log(
|
||||||
|
BookingNavbar,
|
||||||
|
'BookingNavbarBookingNavbar'
|
||||||
|
);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
DineInOrderCount,
|
DineInOrderCount,
|
||||||
TakeAwayOrderCount,
|
TakeAwayOrderCount,
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,55 @@
|
||||||
.BSBillingNavBar1 {
|
.BSBillingNavBar1,
|
||||||
|
.BSBillingNavBar2 {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 40px;
|
height: 42px;
|
||||||
background-color: #ffffff;
|
|
||||||
box-shadow: var(--BOX_SHADOW_LEVEL2);
|
box-shadow: var(--BOX_SHADOW_LEVEL2);
|
||||||
padding: 0 6px;
|
padding: 1px 6px;
|
||||||
|
gap: 12px;
|
||||||
|
background-color: #fff;
|
||||||
|
.NavbarSearchModified {
|
||||||
|
background-color: #e5e5e5;
|
||||||
|
}
|
||||||
|
.custom-input {
|
||||||
|
background-color: #e5e5e5;
|
||||||
|
border: none;
|
||||||
|
font-family: "Poppins";
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.search-input {
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.nameofBracnchmain {
|
||||||
|
width: 100px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.ParkingIconDea {
|
||||||
|
background-color: #fff !important;
|
||||||
|
fill: #1292ee;
|
||||||
|
}
|
||||||
|
.ParkingIconActive {
|
||||||
|
background-color: #fff !important;
|
||||||
|
fill: #52c41a;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.BSBillingNavBar3 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
width: 100vw;
|
||||||
|
height: 42px;
|
||||||
|
box-shadow: var(--BOX_SHADOW_LEVEL2);
|
||||||
|
padding: 1px 6px;
|
||||||
|
gap: 12px;
|
||||||
|
background: linear-gradient(to bottom right, #1e2536, #2a3447);
|
||||||
|
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.nameofBracnchmain {
|
||||||
|
width: 100px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.BSBillingNav1div2 {
|
.BSBillingNav1div2 {
|
||||||
|
|
@ -15,13 +59,14 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
color: var(--DEFAULT_SELECTED_COLOR);
|
color: var(--DEFAULT_SELECTED_COLOR);
|
||||||
|
|
||||||
.BSBillingNavBar1-SearchBar {
|
.BSBillingNavBar1-SearchBar {
|
||||||
font-size: 12px !important;
|
font-size: 12px !important;
|
||||||
font-family: "Poppins" !important;
|
font-family: "Poppins" !important;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
background-color: #f4f4f4;
|
background-color: #e5e5e5;
|
||||||
padding: 1px 6px;
|
padding: 1px 6px;
|
||||||
div {
|
div {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
@ -90,6 +135,10 @@
|
||||||
width: 1.7rem;
|
width: 1.7rem;
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
color: var(--DEFAULT_SELECTED_COLOR);
|
color: var(--DEFAULT_SELECTED_COLOR);
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
display: flex;
|
||||||
|
margin-right: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.BSBillingNavBar1-smallscreen-Inputsearch-container {
|
.BSBillingNavBar1-smallscreen-Inputsearch-container {
|
||||||
|
|
@ -121,11 +170,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1000px) {
|
@media (max-width: 1000px) {
|
||||||
.BSBillingnav1-threedots {
|
|
||||||
display: flex;
|
|
||||||
margin-right: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.BSBillingNavBar1-AllIcons {
|
.BSBillingNavBar1-AllIcons {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
@ -147,9 +191,8 @@
|
||||||
.BSBillingNav1div2 {
|
.BSBillingNav1div2 {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-around;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 0rem !important;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
.ant-select-selector {
|
.ant-select-selector {
|
||||||
height: max-content !important;
|
height: max-content !important;
|
||||||
|
|
@ -164,23 +207,6 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.BSBillingnav1-Smallscreen {
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 40px;
|
|
||||||
display: flex !important;
|
|
||||||
border-right: 1px solid rgb(204, 198, 198);
|
|
||||||
background-color: rgb(255, 255, 255);
|
|
||||||
z-index: 3 !important;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 10px;
|
|
||||||
box-shadow:
|
|
||||||
rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
|
|
||||||
rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
|
|
||||||
height: 100vh;
|
|
||||||
width: 100px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (max-width: 499px) {
|
@media all and (max-width: 499px) {
|
||||||
|
|
@ -252,10 +278,8 @@
|
||||||
.BSNavbar1-time-user {
|
.BSNavbar1-time-user {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 1rem;
|
gap: 12px;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-right: 1rem;
|
|
||||||
margin-left: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.UserProfile {
|
.UserProfile {
|
||||||
|
|
@ -334,6 +358,22 @@
|
||||||
|
|
||||||
.BSBillingnav1-Smallscreen {
|
.BSBillingnav1-Smallscreen {
|
||||||
display: none;
|
display: none;
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 40px;
|
||||||
|
display: flex !important;
|
||||||
|
border-right: 1px solid rgb(204, 198, 198);
|
||||||
|
background-color: rgb(255, 255, 255);
|
||||||
|
z-index: 3 !important;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 10px;
|
||||||
|
box-shadow:
|
||||||
|
rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
|
||||||
|
rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
|
||||||
|
height: 100vh;
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.BSNavbar1-timer .mytimer-width-container {
|
.BSNavbar1-timer .mytimer-width-container {
|
||||||
|
|
@ -492,9 +532,11 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 4px;
|
column-gap: 4px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 300px;
|
||||||
.BarCodeScanMaster {
|
.BarCodeScanMaster {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10px;
|
right: 15px;
|
||||||
top: 20%;
|
top: 20%;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
svg {
|
svg {
|
||||||
|
|
@ -504,7 +546,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.MultiSearchIconDiv {
|
.MultiSearchIconDiv {
|
||||||
color: #1292ee !important;
|
color: #333 !important;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
@ -513,7 +555,7 @@
|
||||||
height: 27px;
|
height: 27px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
left: 6px;
|
right: 6px;
|
||||||
background-color: unset !important;
|
background-color: unset !important;
|
||||||
}
|
}
|
||||||
.custom-input {
|
.custom-input {
|
||||||
|
|
@ -525,8 +567,8 @@
|
||||||
}
|
}
|
||||||
.BsNavbar1FullScreen {
|
.BsNavbar1FullScreen {
|
||||||
background-color: #1292ee;
|
background-color: #1292ee;
|
||||||
height: 28px;
|
height: max-content;
|
||||||
width: 28px;
|
width: max-content;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
@ -534,17 +576,248 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
padding: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.BsNavbar1FullScreenExit {
|
.BsNavbar1FullScreenExit {
|
||||||
background-color: #ef4444;
|
background-color: #ef4444;
|
||||||
height: 28px;
|
height: max-content;
|
||||||
width: 28px;
|
width: max-content;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: #fff;
|
|
||||||
font-size: 18px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
font-size: 19px;
|
||||||
|
color: #fff;
|
||||||
|
padding: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.BSNavbarHomeIcon {
|
||||||
|
color: #1292ee;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 30px !important;
|
||||||
|
height: 30px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.NavbarCus-Add {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.PrinterSettingMB {
|
||||||
|
color: #1292ee;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.BsNavbar-IconSections {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.BSBillingNav1div2 .EstimateButton {
|
||||||
|
flex-direction: row !important;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Responsive navbar code
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
.resNavbarMain {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
background-color: #00000056;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 99999;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: flex-end;
|
||||||
|
overflow: visible;
|
||||||
|
backdrop-filter: blur(6px);
|
||||||
|
animation: fadeInRes 0.3s ease;
|
||||||
|
|
||||||
|
&.closing {
|
||||||
|
animation: fadeOutRes 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ResBsNavbar-IconSections {
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
|
width: max-content;
|
||||||
|
padding: 0 16px;
|
||||||
|
gap: 10px;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
animation: slideInRightRes 0.3s ease;
|
||||||
|
.BSBillingNav-icon {
|
||||||
|
color: #1292ee;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.closing .ResBsNavbar-IconSections {
|
||||||
|
animation: slideOutRightRes 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.EstimateButton {
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: #52c41a;
|
||||||
|
background-color: #1292ee;
|
||||||
|
height: 30px;
|
||||||
|
width: max-content;
|
||||||
|
justify-content: space-around;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 0 5px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.resnavbarClose {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
padding: 12px 0px 0 12px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #ff0000;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ReprintIconRes {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
.ParkingIconDea {
|
||||||
|
background-color: #1292ee !important;
|
||||||
|
}
|
||||||
|
.ParkingIconActive {
|
||||||
|
background-color: #52c41a !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.NavbarSearchModified {
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 2px 6px;
|
||||||
|
gap: 10px;
|
||||||
|
border-radius: 6px;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 300px;
|
||||||
|
|
||||||
|
.BSNavBarSearchMaster {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
.custom-input {
|
||||||
|
padding: 6px 0 !important;
|
||||||
|
height: unset;
|
||||||
|
border: none !important;
|
||||||
|
color: #333 !important;
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
.search-icon {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.Prdinput-container {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bothnbavbarIcon {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeInRes {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeOutRes {
|
||||||
|
from {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideInRightRes {
|
||||||
|
from {
|
||||||
|
transform: translateX(100%);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideOutRightRes {
|
||||||
|
from {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: translateX(100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.BSBillingNavBar3 {
|
||||||
|
.BSNavbarHomeIcon,
|
||||||
|
.nameofBracnchmain,
|
||||||
|
.BSBillingNav-icon,
|
||||||
|
.favIcon,
|
||||||
|
.PrinterSettingMB,
|
||||||
|
.UserProfile {
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
.OtherServiceParking,
|
||||||
|
.EstimateButton,
|
||||||
|
.WholesaleretialChangeIcon,
|
||||||
|
.BsNavbar1FullScreen,
|
||||||
|
.BSBillingNavBar1-SearchBar {
|
||||||
|
background-color: #fff !important;
|
||||||
|
}
|
||||||
|
.ParkingIconDea {
|
||||||
|
background-color: #000000 !important;
|
||||||
|
fill: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ParkingIconActive {
|
||||||
|
background-color: #ffffff !important;
|
||||||
|
fill: #52c41a;
|
||||||
|
}
|
||||||
|
.WholesaleretialChangeIcon svg {
|
||||||
|
color: #1292ee !important;
|
||||||
|
}
|
||||||
|
.favIcon svg {
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
.BsNavbar1FullScreen {
|
||||||
|
color: #1292ee !important;
|
||||||
|
}
|
||||||
|
.BSBillingNavBar1-SearchBar {
|
||||||
|
font-size: 11px !important;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.BSBillingNavBar3 {
|
||||||
|
.ResBsNavbar-IconSections {
|
||||||
|
background: linear-gradient(to bottom right, #1e2536, #2a3447);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -347,8 +347,6 @@
|
||||||
|
|
||||||
@media only screen and (max-width: 1000px) {
|
@media only screen and (max-width: 1000px) {
|
||||||
.BSBillingNav1div2 .EstimateButton {
|
.BSBillingNav1div2 .EstimateButton {
|
||||||
flex-direction: column !important;
|
|
||||||
height: max-content !important;
|
|
||||||
padding: 5px 2px;
|
padding: 5px 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ body {
|
||||||
.BSLayout2Standard {
|
.BSLayout2Standard {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 2rem;
|
top: 2.1rem;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|
@ -359,12 +359,12 @@ body {
|
||||||
|
|
||||||
.salesStoreName {
|
.salesStoreName {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
padding: 0.1rem 0.5rem;
|
padding: 0;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: "Poppins";
|
font-family: "Poppins";
|
||||||
margin: 3px 3px 1px 3px;
|
margin: 0;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -1473,7 +1473,6 @@ table {
|
||||||
height: 70vh;
|
height: 70vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
/* Firefox */
|
|
||||||
scroll-behavior: auto;
|
scroll-behavior: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1490,8 +1489,8 @@ table {
|
||||||
.bulkChangePriceTable {
|
.bulkChangePriceTable {
|
||||||
width: 83vw;
|
width: 83vw;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
height: 60vh;
|
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
|
height: 60vh;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.ant-table-cell {
|
.ant-table-cell {
|
||||||
|
|
@ -1580,7 +1579,7 @@ table {
|
||||||
height: max-content;
|
height: max-content;
|
||||||
max-height: 300px;
|
max-height: 300px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: auto;
|
||||||
& .ant-table-wrapper table {
|
& .ant-table-wrapper table {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
|
|
@ -1592,7 +1591,7 @@ table {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: auto;
|
||||||
& .ant-table-wrapper table {
|
& .ant-table-wrapper table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
@ -1688,3 +1687,16 @@ table {
|
||||||
padding: 10px 0 !important;
|
padding: 10px 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.CusAddressAddBtn {
|
||||||
|
background-color: #1677ff;
|
||||||
|
color: #fff;
|
||||||
|
padding: 6px 10px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 12px;
|
||||||
|
margin-top: 8px;
|
||||||
|
font-weight: 400;
|
||||||
|
font-family: "Poppins";
|
||||||
|
}
|
||||||
|
|
|
||||||
2202
src/check.scss
2202
src/check.scss
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue