diff --git a/src/Pages/BookingScreen/Components/UtillComponents/SalesDetailsNetAmountModal.jsx b/src/Pages/BookingScreen/Components/UtillComponents/SalesDetailsNetAmountModal.jsx
new file mode 100644
index 0000000..5f98235
--- /dev/null
+++ b/src/Pages/BookingScreen/Components/UtillComponents/SalesDetailsNetAmountModal.jsx
@@ -0,0 +1,427 @@
+import { DefaultModal } from "../../../../Components/Modal/DefaultModal"
+import { extractLastNumberOrderId } from "../../../../Services/Others"
+import '../../../../Styles/BookingScreen/Template/BSLayout2/BSLayout2.scss';
+
+const SalesDetailsModal = ({ isModalOpen = false,
+ setIsModalOpen = () => { },
+ currentData = [],
+ currentPage,
+ totalPages,
+ setCurrentPage = () => { },
+ startIndex
+}) => {
+
+ return (
+ 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')
+ }
+ >
+ |
+ {startIndex + index + 1}
+ |
+
+ {extractLastNumberOrderId(item.OrderId)}
+ |
+
+ {item.CustName || '—'}
+ |
+
+ {item.CustMobile || '—'}
+ |
+ {/*
+ {item.BookedBy || "—"}
+ | */}
+
+ {item.PaymentTypeName || '—'}
+ |
+
+ ₹{item.Amount?.toLocaleString()}
+ |
+
+ ))
+ ) : (
+
+ |
+ No booking data available
+ |
+
+ )}
+
+
+
+ {/* Pagination */}
+ {totalPages > 1 && (
+
+ {currentPage == 1 ? (
+ ''
+ ) : (
+
+ )}
+
+
+ Page {currentPage} of {totalPages}
+
+
+
+
+ )}
+
+
+ )
+}
+
+const SalesNetAmountModal = ({
+ isNetAmtModalOpen = false,
+ setIsNetAmtModalOpen = () => { },
+ orderDetails = []
+}) => {
+ return (
+ setIsNetAmtModalOpen(false)}
+ handleSubmit={() => setIsNetAmtModalOpen(false)}
+ width={800}
+ footer={false}
+ >
+
+
+
+
+ |
+ Cash
+ |
+
+ UPI
+ |
+
+ Card
+ |
+
+ Credit
+ |
+
+ Business UPI
+ |
+
+ Total
+ |
+
+
+ |
+ Count
+ |
+
+ Amt
+ |
+
+ Count
+ |
+
+ Amt
+ |
+
+ Count
+ |
+
+ Amt
+ |
+
+ Count
+ |
+
+ Amt
+ |
+
+ Count
+ |
+
+ Amt
+ |
+
+
+
+
+ {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) =>
+ (e.currentTarget.style.backgroundColor =
+ index % 2 === 0 ? '#f7faff' : '#ffffff')
+ }
+ >
+ |
+ {item.CashCount}
+ |
+
+ {item.CashAmount}
+ |
+
+ {item.UpiCount}
+ |
+
+ {item.UpiAmount}
+ |
+
+ {item.CardCount}
+ |
+
+ {item.CardAmount}
+ |
+
+ {item.CreditCount}
+ |
+
+ {item.CreditAmount}
+ |
+
+ {item.BusinessUpiCount}
+ |
+
+ {item.BusinessUpiAmount}
+ |
+
+ {total}
+ |
+
+ );
+ })}
+
+
+
+
+ )
+}
+
+export { SalesDetailsModal, SalesNetAmountModal };
\ No newline at end of file
diff --git a/src/Pages/BookingScreen/Template/SalesCountComponent.jsx b/src/Pages/BookingScreen/Template/SalesCountComponent.jsx
index 32ed2a8..2230ff8 100644
--- a/src/Pages/BookingScreen/Template/SalesCountComponent.jsx
+++ b/src/Pages/BookingScreen/Template/SalesCountComponent.jsx
@@ -56,6 +56,7 @@ const ShortcutKeyHelper = lazy(
);
// Scss
import './SalesCountComponent.scss';
+import { SalesDetailsModal, SalesNetAmountModal } from '../Components/UtillComponents/SalesDetailsNetAmountModal.jsx';
const SalesCountComponent = React.memo(
({ DineInAccess, GlobalsalesDetailData }) => {
@@ -540,9 +541,9 @@ const SalesCountComponent = React.memo(
{safeRound(
TakeAwayAmount +
- SelfTakeAwayAmount +
- PreOrderAmount -
- OverAllTakeAwayOfferAmount
+ SelfTakeAwayAmount +
+ PreOrderAmount -
+ OverAllTakeAwayOfferAmount
)}
@@ -615,8 +616,8 @@ const SalesCountComponent = React.memo(
{safeRound(
DineInAmount +
- SelfDineInAmount -
- OverAllDineInOfferAmount
+ SelfDineInAmount -
+ OverAllDineInOfferAmount
)}
@@ -628,8 +629,8 @@ const SalesCountComponent = React.memo(
{safeRound(
DineInAmount +
- SelfDineInAmount -
- OverAllDineInOfferAmount
+ SelfDineInAmount -
+ OverAllDineInOfferAmount
)}
@@ -647,7 +648,7 @@ const SalesCountComponent = React.memo(
SelfTakeAwayAmount +
PreOrderAmount -
OverAllTakeAwayOfferAmount || 0) +
- (DineInAmount + SelfDineInAmount - OverAllDineInOfferAmount)
+ (DineInAmount + SelfDineInAmount - OverAllDineInOfferAmount)
) > 0 && setIsNetAmtModalOpen(true)
}
>
@@ -658,428 +659,28 @@ const SalesCountComponent = React.memo(
SelfTakeAwayAmount +
PreOrderAmount -
OverAllTakeAwayOfferAmount || 0) +
- (DineInAmount + SelfDineInAmount - OverAllDineInOfferAmount)
+ (DineInAmount + SelfDineInAmount - OverAllDineInOfferAmount)
)}
{Customisebillno && }
{/* 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')
- }
- >
- |
- {startIndex + index + 1}
- |
-
- {extractLastNumberOrderId(item.OrderId)}
- |
-
- {item.CustName || '—'}
- |
-
- {item.CustMobile || '—'}
- |
- {/*
- {item.BookedBy || "—"}
- | */}
-
- {item.PaymentTypeName || '—'}
- |
-
- ₹{item.Amount?.toLocaleString()}
- |
-
- ))
- ) : (
-
- |
- No booking data available
- |
-
- )}
-
-
-
- {/* Pagination */}
- {totalPages > 1 && (
-
- {currentPage == 1 ? (
- ''
- ) : (
-
- )}
-
-
- Page {currentPage} of {totalPages}
-
-
-
-
- )}
-
-
+
{/* Modal with table for multiple Net Amt */}
- setIsNetAmtModalOpen(false)}
- handleSubmit={() => setIsNetAmtModalOpen(false)}
- width={800}
- footer={false}
- >
-
-
-
-
- |
- Cash
- |
-
- UPI
- |
-
- Card
- |
-
- Credit
- |
-
- Business UPI
- |
-
- Total
- |
-
-
- |
- Count
- |
-
- Amt
- |
-
- Count
- |
-
- Amt
- |
-
- Count
- |
-
- Amt
- |
-
- Count
- |
-
- Amt
- |
-
- Count
- |
-
- Amt
- |
-
-
-
-
- {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) =>
- (e.currentTarget.style.backgroundColor =
- index % 2 === 0 ? '#f7faff' : '#ffffff')
- }
- >
- |
- {item.CashCount}
- |
-
- {item.CashAmount}
- |
-
- {item.UpiCount}
- |
-
- {item.UpiAmount}
- |
-
- {item.CardCount}
- |
-
- {item.CardAmount}
- |
-
- {item.CreditCount}
- |
-
- {item.CreditAmount}
- |
-
- {item.BusinessUpiCount}
- |
-
- {item.BusinessUpiAmount}
- |
-
- {total}
- |
-
- );
- })}
-
-
-
-
+
{TableData?.length > 0 && AutoReceiveStock && (