diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/ListofInvoices/ListOfSalesInvoices.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/ListofInvoices/ListOfSalesInvoices.jsx index 78151be..0c687f7 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/ListofInvoices/ListOfSalesInvoices.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/ListofInvoices/ListOfSalesInvoices.jsx @@ -16,6 +16,8 @@ import { TiDelete } from 'react-icons/ti'; import BSBillingEbill from '../BSBillingEwayBill/BSBillingEbill'; import Search from '../../../../../Components/Forms/Search'; import { IoEye } from 'react-icons/io5'; +// src\Styles\BookingScreen\Components\UtillComponents\BSNavBarComponents.scss +import "../../../../../Styles/BookingScreen/Components/UtillComponents/BSNavBarComponents.scss" const { RangePicker } = DatePicker; const ListOfSalesInvoices = (props) => { @@ -422,16 +424,6 @@ const ListOfSalesInvoices = (props) => { /> - {/* */}
(
@@ -232,12 +233,12 @@ const BSExpireProductsList = () => { }, ]; const lowStockIwordCulumn = [ - { - title: 'Stock Date', - dataIndex: 'InwardDate', - key: 'InwardDate', - render: (d) => (d ? ExtractDateFormate(d) : '-'), - }, + { + title: 'Stock Date', + dataIndex: 'InwardDate', + key: 'InwardDate', + render: (d) => (d ? ExtractDateFormate(d) : '-'), + }, { title: 'Balance Qty', align: 'right', @@ -301,10 +302,12 @@ const BSExpireProductsList = () => { ) : ( (expiredList?.length > 0 || lowStockList?.length > 0) && ( - + { @@ -332,7 +335,7 @@ const BSExpireProductsList = () => { ) )} - + { footer={null} // You can enable this if you want default buttons width={700} centered + className="LowStockAlterModal" > {
{ }, + setDrawerOpen = () => {}, }) => { const draggingComponent = useSelector(GlobaldraggingComponent); const GlobalisFavClickedCheck = useSelector(GlobalisFavClicked); @@ -73,27 +73,27 @@ const BSNavBarDragItems = ({ BranchId: BranchId, ...(draggingComponent == 'sub-category' ? { - ProdCat: MapData?.[0]?.ProdCat, - ProductSubCatDtl: MapData.map((item, index) => ({ - ProdSubCat: item?.ProdSubCat, - DisplayProdSubCatNo: index + 1, - })), - } - : draggingComponent == 'category' - ? { - ProductCatDtl: MapData.map((item, index) => ({ - ProdCat: item?.ProdCat, - DisplayProdCatNo: index + 1, + ProdCat: MapData?.[0]?.ProdCat, + ProductSubCatDtl: MapData.map((item, index) => ({ + ProdSubCat: item?.ProdSubCat, + DisplayProdSubCatNo: index + 1, })), } + : draggingComponent == 'category' + ? { + ProductCatDtl: MapData.map((item, index) => ({ + ProdCat: item?.ProdCat, + DisplayProdCatNo: index + 1, + })), + } : { - ProdCat: MapData?.[0]?.ProdCat || null, - ProdSubCat: MapData?.[0]?.ProdSubCat || null, - ProductDtl: MapData.map((item, index) => ({ - ProdId: item?.ProdId, - DisplayProductNo: index + 1, - })), - }), + ProdCat: MapData?.[0]?.ProdCat || null, + ProdSubCat: MapData?.[0]?.ProdSubCat || null, + ProductDtl: MapData.map((item, index) => ({ + ProdId: item?.ProdId, + DisplayProductNo: index + 1, + })), + }), UpdatedBy: UserId, }; @@ -190,7 +190,15 @@ const BSNavBarDragItems = ({ {Isdragging && favopen && (
-
+
{PurProductdata.map((item) => (
diff --git a/src/Pages/BookingScreen/Components/UtillComponents/BSPrinterSetting.jsx b/src/Pages/BookingScreen/Components/UtillComponents/BSPrinterSetting.jsx index e6ef940..3ecf60b 100644 --- a/src/Pages/BookingScreen/Components/UtillComponents/BSPrinterSetting.jsx +++ b/src/Pages/BookingScreen/Components/UtillComponents/BSPrinterSetting.jsx @@ -285,7 +285,7 @@ const BSPrinterSetting = ({ onClick={openPrinter} >
}> -
- -
-
- {showSalesTooltip ? ( - - {takeAwayPreference && ( -
-
Takeaway:
-
{TakeAwayOrderCount + SelfTakeAwayOrderCount}
-
- )} - {dinePreference && ( -
-
Dine-in:
-
{DineInOrderCount + SelfDineInOrderCount}
-
- )} -
- } - onClick={() => - (OverAllOrderCount || 0) > 0 && setIsModalOpen(true) - } - > - -
- {isMobile ? 'Count' : 'Sales Count'} : {OverAllOrderCount} -
- - ) : ( -
- (OverAllOrderCount || 0) > 0 && setIsModalOpen(true) - } - > - -
- {isMobile ? 'Count' : 'Sales Count'} : {OverAllOrderCount} -
-
- )} -
-
- - {/* Rest of your component remains the same */} - {DineInAccess?.SettingValue === 'Y' && - takeAwayPreference && - (TakeAwayOrderCount || SelfTakeAwayOrderCount || PreOrderAmount) > - 0 && ( +
+ +
+
+ {showSalesTooltip ? ( + {takeAwayPreference && ( +
+
Takeaway:
+
{TakeAwayOrderCount + SelfTakeAwayOrderCount}
+
+ )} + {dinePreference && ( +
+
Dine-in:
+
{DineInOrderCount + SelfDineInOrderCount}
+
+ )} +
+ } + onClick={() => + (OverAllOrderCount || 0) > 0 && setIsModalOpen(true) + } > -
-
{isMobile ? 'TA' : 'Take Away'} :
-
{`₹ ${safeRound(totalTakeAway)}`}
+ +
+ {isMobile ? 'Count' : 'Sales Count'} : {OverAllOrderCount}
- )} - - {DineInAccess?.SettingValue === 'Y' && - dinePreference && - (DineInOrderCount || SelfDineInOrderCount) > 0 && ( - -
-
{isMobile ? 'DI' : 'Dine In'} :
-
{`₹ ${safeRound(totalDineIn)}`}
-
-
- )} - -
-
netAmount > 0 && setIsNetAmtModalOpen(true)} - style={{ cursor: 'pointer' }} - > - -
- {isMobile ? 'NA' : 'Net Amount'} : ₹ {safeRound(netAmount)} -
-
-
- {TableData?.length > 0 && !sportsAppPreference && AutoReceiveStock && ( - - )} - {preferenceshortcutkey && ( -
- -
- )} - -
- {Customisebillno && } - {SessionData?.FeatureAddonData?.FeatureDtls?.find( - (item) => item?.FeatureAddonName?.toLowerCase() === 'kiosk sales' - ) && - !sportsAppPreference && ( -
0 ? 'none' : 'auto', - opacity: OrderStatus > 0 ? 0.5 : 1, - }} - > - {!OtherServicesglobal && ( - - - openModalKiosk()} - style={{ cursor: 'pointer', fontSize: '1.5rem' }} - className="iconsize" - /> - - - )} -
- )} - {Kioskopen && ( - - )} - - {!OtherServicesglobal && !sportsAppPreference && ( - - {' '} - - - )} - - {!OtherServicesglobal && ( - <> - {CheckBookingStatus == 'Open' ? ( -
- - {' '} - - -
- ) : ( -
- - BookingOpenFun('Open')} - > - - - - - -
- )} - {!sportsAppPreference && ( -
- - {''} - - -
- )} - - )} - - {BookingModalOpen && ( - - )} - {ListOfInvoices && ( - - )} -
- - {/* Modal with table for multiple bookings */} - - setIsModalOpen(false)} - handleSubmit={() => setIsModalOpen(false)} - width={700} - footer={false} - > -
-
+ (OverAllOrderCount || 0) > 0 && setIsModalOpen(true) + } + > + +
+ {isMobile ? 'Count' : 'Sales Count'} : {OverAllOrderCount} +
+ + )} + + + + {/* Rest of your component remains the same */} + {DineInAccess?.SettingValue === 'Y' && + takeAwayPreference && + (TakeAwayOrderCount || SelfTakeAwayOrderCount || PreOrderAmount) > + 0 && ( + +
-
- - - - - - {/* */} - - - - +
{isMobile ? 'TA' : 'Take Away'} :
+
{`₹ ${safeRound(totalTakeAway)}`}
+ + + )} - - {currentData?.length > 0 ? ( - currentData?.map((item, index) => ( - - (e.currentTarget.style.backgroundColor = '#d6e4ff') - } - onMouseLeave={(e) => + {DineInAccess?.SettingValue === 'Y' && + dinePreference && + (DineInOrderCount || SelfDineInOrderCount) > 0 && ( + +
+
{isMobile ? 'DI' : 'Dine In'} :
+
{`₹ ${safeRound(totalDineIn)}`}
+
+
+ )} + +
+
netAmount > 0 && setIsNetAmtModalOpen(true)} + style={{ cursor: 'pointer' }} + > + +
+ {isMobile ? 'NA' : 'Net Amount'} : ₹ {safeRound(netAmount)} +
+
+
+ {TableData?.length > 0 && !sportsAppPreference && AutoReceiveStock && ( + + )} + {preferenceshortcutkey && ( +
+ +
+ )} + +
+ {Customisebillno && } + {SessionData?.FeatureAddonData?.FeatureDtls?.find( + (item) => item?.FeatureAddonName?.toLowerCase() === 'kiosk sales' + ) && + !sportsAppPreference && ( +
0 ? 'none' : 'auto', + opacity: OrderStatus > 0 ? 0.5 : 1, + }} + > + {!OtherServicesglobal && ( + + + openModalKiosk()} + style={{ cursor: 'pointer', fontSize: '1.5rem' }} + className="iconsize" + /> + + + )} +
+ )} + {Kioskopen && ( + + )} + + {!OtherServicesglobal && !sportsAppPreference && ( + + {' '} + + + )} + + {!OtherServicesglobal && ( + <> + {CheckBookingStatus == 'Open' ? ( +
+ + {' '} + + +
+ ) : ( +
+ + BookingOpenFun('Open')} + > + + + + + +
+ )} + {!sportsAppPreference && ( +
+ + {''} + + +
+ )} + + )} + + {BookingModalOpen && ( + + )} + {ListOfInvoices && ( + + )} +
+ + {/* Modal with table for multiple bookings */} + + setIsModalOpen(false)} + handleSubmit={() => setIsModalOpen(false)} + width={700} + footer={false} + > +
+
- S.No - - Order ID - - Customer - - Mobile - Booked By - Payment Type - - Amount (₹) -
+ + + + + + + {/* */} + + + + + + + {currentData?.length > 0 ? ( + currentData?.map((item, index) => ( + + (e.currentTarget.style.backgroundColor = '#d6e4ff') + } + onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = index % 2 === 0 ? '#f7faff' : '#e9f1ff') - } - > - - - - - {/* + + + + {/* */} - - - - )) - ) : ( - + - )} - -
+ S.No + + Order ID + + Customer + + Mobile + Booked By + Payment Type + + Amount (₹) +
- {startIndex + index + 1} - - {extractLastNumberOrderId(item.OrderId)} - - {item.CustName || '—'} - - {item.CustMobile || '—'} - + } + > + + {startIndex + index + 1} + + {extractLastNumberOrderId(item.OrderId)} + + {item.CustName || '—'} + + {item.CustMobile || '—'} + {item.BookedBy || "—"} - {item.PaymentTypeName || '—'} - - ₹{item.Amount?.toLocaleString()} -
+ {item.PaymentTypeName || '—'} + - No booking data available + ₹{item.Amount?.toLocaleString()}
- - {/* Pagination */} - {totalPages > 1 && ( -
- {currentPage == 1 ? ( - '' - ) : ( - - )} - - - Page {currentPage} of {totalPages} - + No booking data available + + + )} + + + {/* Pagination */} + {totalPages > 1 && ( +
+ {currentPage == 1 ? ( + '' + ) : ( -
- )} -
- + )} - {/* Modal with table for multiple Net Amt */} + + Page {currentPage} of {totalPages} + - setIsNetAmtModalOpen(false)} - handleSubmit={() => setIsNetAmtModalOpen(false)} - width={800} - footer={false} - > -
- - - - - - - - - + + + + + + + + + + + ); + })} + +
- Cash - - UPI - - Card - - Credit - - Business UPI - + setCurrentPage((p) => Math.min(p + 1, totalPages)) + } + disabled={currentPage === totalPages} + style={{ + padding: '5px 10px', + backgroundColor: '#003366', + color: '#fff', + border: 'none', + borderRadius: '4px', + cursor: + currentPage === totalPages ? 'not-allowed' : 'pointer', + opacity: currentPage === totalPages ? 0.5 : 1, + }} + > + Next + + + )} + + + + {/* Modal with table for multiple Net Amt */} + + setIsNetAmtModalOpen(false)} + handleSubmit={() => setIsNetAmtModalOpen(false)} + width={800} + footer={false} + > +
+ + + + + + + + + + + + + + + + + + + + + + + + + + {orderDetails?.map((item, index) => { + const total = + (item.CashAmount || 0) + + (item.UpiAmount || 0) + + (item.CardAmount || 0) + + (item.CreditAmount || 0); + + return ( + - Total - - - - - - - - - - - - - - - - - - {orderDetails?.map((item, index) => { - const total = - (item.CashAmount || 0) + - (item.UpiAmount || 0) + - (item.CardAmount || 0) + - (item.CreditAmount || 0); - - return ( - - (e.currentTarget.style.backgroundColor = '#e6f2ff') - } - onMouseLeave={(e) => + onMouseEnter={(e) => + (e.currentTarget.style.backgroundColor = '#e6f2ff') + } + onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = index % 2 === 0 ? '#f7faff' : '#ffffff') - } + } + > + - - - - - - - - - - - - ); - })} - -
+ Cash + + UPI + + Card + + Credit + + Business UPI + + Total +
+ Count + + Amt + + Count + + Amt + + Count + + Amt + + Count + + Amt + + Count + + Amt +
- Count - - Amt - - Count - - Amt - - Count - - Amt - - Count - - Amt - - Count - - Amt -
- - {item.CashCount} - - {item.CashAmount} - - {item.UpiCount} - - {item.UpiAmount} - - {item.CardCount} - - {item.CardAmount} - - {item.CreditCount} - - {item.CreditAmount} - - {item.BusinessUpiCount} - - {item.BusinessUpiAmount} - - {total} -
-
-
+ {item.CashCount} + +
+ {item.CashAmount} + + {item.UpiCount} + + {item.UpiAmount} + + {item.CardCount} + + {item.CardAmount} + + {item.CreditCount} + + {item.CreditAmount} + + {item.BusinessUpiCount} + + {item.BusinessUpiAmount} + + {total} +
+
+
- { - setIsReceivedModelOpen(false); - }} - columns={columns} - tableData={TableData} - handlePageChange={handlePageChange} - customTable={false} - /> + { + setIsReceivedModelOpen(false); + }} + columns={columns} + tableData={TableData} + handlePageChange={handlePageChange} + customTable={false} + /> - setModalProductDetails(d)} - onSubmit={handleModalSubmit} - /> -
- + setModalProductDetails(d)} + onSubmit={handleModalSubmit} + /> + ); }); diff --git a/src/Pages/CounterCategoryMapping/CounterCategoryMappingForm.jsx b/src/Pages/CounterCategoryMapping/CounterCategoryMappingForm.jsx index cb938f0..1f34fbf 100644 --- a/src/Pages/CounterCategoryMapping/CounterCategoryMappingForm.jsx +++ b/src/Pages/CounterCategoryMapping/CounterCategoryMappingForm.jsx @@ -743,7 +743,7 @@ const CounterCategoryMappingForm = () => { */} {CounterDetail?.length > 0 && ( -
+
div:nth-child(1) { + > div:nth-child(1) { border-radius: 6px 0 0 6px; } - >div:nth-child(2) { + > div:nth-child(2) { border-radius: 0 6px 6px 0; } } .bar-pie-switch { - .ant-switch-inner-checked, .ant-switch-inner-unchecked { - font-family: 'Poppins'; + font-family: "Poppins"; font-weight: 500; } @@ -126,7 +121,6 @@ background-color: #52c41a !important; background: #52c41a !important; } - } .btn-chart-type { @@ -196,7 +190,6 @@ border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); padding: 1rem; - } .stat-card1 { @@ -472,7 +465,6 @@ align-items: center; outline: none !important; - .chart-data-item { display: flex; align-items: center; @@ -497,8 +489,6 @@ // >div:nth-child(2) { // width: 5%; // } - - } } } @@ -525,11 +515,11 @@ .chart-data { width: 60%; - @media (max-width:768px) { + @media (max-width: 768px) { width: 100%; } - @media (max-width:1000px) { + @media (max-width: 1000px) { width: 100%; } } @@ -548,7 +538,7 @@ padding: 0 !important; margin: 0 !important; - >div:nth-child(1) { + > div:nth-child(1) { width: 25%; } @@ -558,7 +548,6 @@ justify-content: space-between; align-items: center; gap: 10px; - } .axis-label-wrapper { @@ -582,7 +571,7 @@ margin-bottom: 4px; } - >div:nth-child(3) { + > div:nth-child(3) { width: 10%; } } @@ -629,7 +618,7 @@ position: relative; &::after { - content: ''; + content: ""; position: absolute; bottom: -4px; left: 50%; @@ -750,17 +739,18 @@ .pie-legend { flex: 1 1 100%; - max-width: 100%; + width: 100%; + justify-content: center; } } -@media (max-width:990px) { +@media (max-width: 990px) { .wrapaanaClass { justify-content: center !important; } } -@media (max-width:932px) { +@media (max-width: 932px) { .date-wrapper-class { width: 100%; justify-content: center !important; @@ -773,4 +763,4 @@ .ant-select-arrow { top: 70%; } -} \ No newline at end of file +} diff --git a/src/Pages/Reports/PurchaseReport/PurchaseOrderReport.scss b/src/Pages/Reports/PurchaseReport/PurchaseOrderReport.scss index 4f47d94..3d3710a 100644 --- a/src/Pages/Reports/PurchaseReport/PurchaseOrderReport.scss +++ b/src/Pages/Reports/PurchaseReport/PurchaseOrderReport.scss @@ -228,16 +228,13 @@ background-color: #e9e8e8 !important; border: none; } - - //dhana - // height: clamp(30vh, 50vh, 95vh); } -// writed by sree .ItemWiseReport-table1 { overflow: auto; height: clamp(40vh, 30vh, 95vh); width: 79vw !important; + scrollbar-width: thin; } .ItemWiseReport-table .ant-table-thead tr .ant-table-cell { diff --git a/src/Styles/BookingScreen/Components/BSNavbar/BSNavbar3.scss b/src/Styles/BookingScreen/Components/BSNavbar/BSNavbar3.scss index 9fadde1..191af8a 100644 --- a/src/Styles/BookingScreen/Components/BSNavbar/BSNavbar3.scss +++ b/src/Styles/BookingScreen/Components/BSNavbar/BSNavbar3.scss @@ -84,6 +84,15 @@ .BsnavbarSearchMain { width: 25vw; position: relative; + .BarCodeScanMaster { + position: absolute; + right: 0; + padding: 0 !important; + top: 30%; + svg { + font-size: 20px !important; + } + } .searchDiv .ant-input { color: #fff !important; diff --git a/src/Styles/BookingScreen/Components/UtillComponents/BSNavBarComponents.scss b/src/Styles/BookingScreen/Components/UtillComponents/BSNavBarComponents.scss index 42d6a69..7b04919 100644 --- a/src/Styles/BookingScreen/Components/UtillComponents/BSNavBarComponents.scss +++ b/src/Styles/BookingScreen/Components/UtillComponents/BSNavBarComponents.scss @@ -296,7 +296,7 @@ } .BSC1Payment-Tablediv .ant-table-wrapper .ant-table-thead > tr > th { - color: black !important; + color: rgb(255, 255, 255) !important; font-weight: 600 !important; font-size: 14px; } @@ -325,9 +325,7 @@ box-shadow: unset !important; } - .ant-select:not(.ant-select-customize-input) - .ant-select-selector - .ant-select-selection-search-input { + .ant-select:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input { bottom: 14px; } diff --git a/src/Styles/BookingScreen/Template/BSLayout2/BSLayout2.scss b/src/Styles/BookingScreen/Template/BSLayout2/BSLayout2.scss index 45d029b..ee7c277 100644 --- a/src/Styles/BookingScreen/Template/BSLayout2/BSLayout2.scss +++ b/src/Styles/BookingScreen/Template/BSLayout2/BSLayout2.scss @@ -373,7 +373,7 @@ body { @media (max-width: 768px) { display: none; } - + div { gap: 4px; display: flex; @@ -469,3 +469,15 @@ body { font-size: 14px; background-color: rgb(240, 240, 240); } +.SCTableInPageSales { + th { + font-weight: 500; + text-transform: uppercase; + font-size: 12px !important; + letter-spacing: 0.1px; + } + td { + font-weight: 500 !important; + font-family: "Poppins" !important; + } +} diff --git a/src/Styles/OverAllStyle/OverAllStyle.scss b/src/Styles/OverAllStyle/OverAllStyle.scss index f28d105..233f5ed 100644 --- a/src/Styles/OverAllStyle/OverAllStyle.scss +++ b/src/Styles/OverAllStyle/OverAllStyle.scss @@ -851,6 +851,9 @@ } .price-change-table { + .ant-table-thead tr { + background-color: #2c88ee !important; + } .ant-form-item { margin-bottom: 0 !important; } @@ -1634,3 +1637,17 @@ table { } } } +.LowStockAlterModal { + .ant-input-affix-wrapper { + width: 300px !important; + } + .ant-input { + padding: 5px 14px 6px 11px !important; + } +} +.LowStockAlterModalTable { + margin-top: 1rem; + .ant-table-thead tr { + background-color: #2c88ee !important; + } +} diff --git a/src/Styles/PrinterSetting/PrinterSetting.scss b/src/Styles/PrinterSetting/PrinterSetting.scss index 7d3b2f8..b30d06c 100644 --- a/src/Styles/PrinterSetting/PrinterSetting.scss +++ b/src/Styles/PrinterSetting/PrinterSetting.scss @@ -204,3 +204,8 @@ .printer-settings-tabs { font-family: "Poppins"; } +.PrinterSettingTab { + .ant-tabs-tab-active { + background-color: #2c5282 !important; + } +} diff --git a/src/Styles/Reports/DateWiseReport/DateWiseReport.scss b/src/Styles/Reports/DateWiseReport/DateWiseReport.scss index 052c64a..ad936a6 100644 --- a/src/Styles/Reports/DateWiseReport/DateWiseReport.scss +++ b/src/Styles/Reports/DateWiseReport/DateWiseReport.scss @@ -8,7 +8,8 @@ flex-grow: 1; width: 100%; height: 40vh; - overflow: scroll; + overflow: auto; + scrollbar-width: thin; } .DateWiseReport-denomination { diff --git a/src/Styles/Reports/ItemWiseReport/ItemWiseReport.scss b/src/Styles/Reports/ItemWiseReport/ItemWiseReport.scss index e680394..3d2ce5a 100644 --- a/src/Styles/Reports/ItemWiseReport/ItemWiseReport.scss +++ b/src/Styles/Reports/ItemWiseReport/ItemWiseReport.scss @@ -228,16 +228,14 @@ background-color: #e9e8e8 !important; border: none; } - - //dhana - // height: clamp(30vh, 50vh, 95vh); + } - -// writed by sree + .ItemWiseReport-table1 { overflow: auto; height: clamp(40vh, 30vh, 95vh); width: 79vw !important; + scrollbar-width: thin; } .ItemWiseReport-table .ant-table-thead tr .ant-table-cell {