From 38c9c955397727e1b0961b99902f4fc146b13e41 Mon Sep 17 00:00:00 2001 From: Srinath Date: Wed, 11 Mar 2026 18:07:36 +0530 Subject: [PATCH 1/2] Added if one product search input clear if greater then 1 search field is not cleared --- src/Pages/BookingScreen/Components/BSItemCards/BSItemCard.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Pages/BookingScreen/Components/BSItemCards/BSItemCard.jsx b/src/Pages/BookingScreen/Components/BSItemCards/BSItemCard.jsx index 3d32c3c..61ae9bd 100644 --- a/src/Pages/BookingScreen/Components/BSItemCards/BSItemCard.jsx +++ b/src/Pages/BookingScreen/Components/BSItemCards/BSItemCard.jsx @@ -4963,8 +4963,10 @@ const BSItemCard = (props) => { setVarItem(0); setItem(); setStockItem(); - dispatch(changeSearchedData('')); setOnePeiceFlow(false); + if (cardData?.length <= 1) { + dispatch(changeSearchedData('')); + } }; const dataTransfer = async ( From d5e8073b690d75f164640b51d95a7a6738cb01c6 Mon Sep 17 00:00:00 2001 From: Srinath Date: Wed, 11 Mar 2026 18:35:43 +0530 Subject: [PATCH 2/2] Added if one product search input clear if greater then 1 search field is not cleared --- .../Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx | 2 ++ .../BSBillingTables/BSBillingTable2/BSBillingTable2.jsx | 2 ++ .../BSBillingTables/BSBillingTable3/BSBillingTable3pay.jsx | 2 ++ .../BSBillingTables/BSBillingTable4/BSBilling4Payment.jsx | 2 ++ .../BSBillingTables/BSBillingTable5/BSBillingTable5.jsx | 2 ++ .../Components/BSBillingTables/BSBillingTable6/BST6Payment.jsx | 2 ++ .../BSBillingTables/BSBillingTable7/BSBilling7Payment.jsx | 2 ++ .../BSBillingTables/StandardTable/StandardTablePayment.jsx | 2 ++ src/Pages/BookingScreen/Components/BSCombo/BSC1Payment.jsx | 2 ++ 9 files changed, 18 insertions(+) diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx index fbd7340..f0664fb 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx @@ -124,6 +124,7 @@ import { changePreviousOrderPayment, changePreviousOrderOfferDetail, GlobalAllBookingType, + changeSearchedData, } from '../../../../../Features/BookingScreen/BookingData/BookingData'; import FeaturesFunctionalities from '../../BookingFunctionality/FeaturesFunctionalities'; import { @@ -1845,6 +1846,7 @@ export default function BST1Payment() { }) ); dispatch(changeBillEditingMode(false)); + dispatch(changeSearchedData('')); await dispatch(changePreviousOrderPayment([])); await dispatch(changePreviousOrderOfferDetail([])); dispatch(changeTipAmount(0)); diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable2/BSBillingTable2.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable2/BSBillingTable2.jsx index 846c415..11b3965 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable2/BSBillingTable2.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable2/BSBillingTable2.jsx @@ -130,6 +130,7 @@ import { changeBillEditingMode, changePreviousOrderPayment, changePreviousOrderOfferDetail, + changeSearchedData, } from '../../../../../Features/BookingScreen/BookingData/BookingData.js'; import { ChangeFullFreeProductList, @@ -1921,6 +1922,7 @@ const BSBillingTable2 = () => { dispatch(changeOrderCardDetails([])); } dispatch(changeBillEditingMode(false)); + dispatch(changeSearchedData('')); await dispatch(changePreviousOrderPayment([])); await dispatch(changePreviousOrderOfferDetail([])); dispatch(changeTipAmount(0)); diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3pay.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3pay.jsx index 7633b7c..9ab0850 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3pay.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3pay.jsx @@ -146,6 +146,7 @@ import { changePreviousOrderPayment, changePreviousOrderOfferDetail, GlobalAllBookingType, + changeSearchedData, } from '../../../../../Features/BookingScreen/BookingData/BookingData'; import { PrintStyleFunction } from '../../../../paymentpdfPage/PrintStyleFunction.js'; import FeaturesFunctionalities from '../../BookingFunctionality/FeaturesFunctionalities'; @@ -2040,6 +2041,7 @@ const BSBillingTable3Pay = () => { // } else { dispatch(changeOrderCardDetails([])); // } + dispatch(changeSearchedData('')); dispatch(changeBillEditingMode(false)); await dispatch(changePreviousOrderPayment([])); await dispatch(changePreviousOrderOfferDetail([])); diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable4/BSBilling4Payment.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable4/BSBilling4Payment.jsx index a7f4b57..6816ef7 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable4/BSBilling4Payment.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable4/BSBilling4Payment.jsx @@ -141,6 +141,7 @@ import { changeBillEditingMode, changePreviousOrderPayment, changePreviousOrderOfferDetail, + changeSearchedData, } from '../../../../../Features/BookingScreen/BookingData/BookingData'; import { globalExtraTotalAmount, @@ -1947,6 +1948,7 @@ const BSBilling4Payment = () => { dispatch(changeOrderCardDetails([])); // } dispatch(changeBillEditingMode(false)); + dispatch(changeSearchedData('')); await dispatch(changePreviousOrderPayment([])); await dispatch(changePreviousOrderOfferDetail([])); dispatch(changeLoyaltyConsumedQuantities({})); diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable5/BSBillingTable5.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable5/BSBillingTable5.jsx index 132dd92..67122c6 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable5/BSBillingTable5.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable5/BSBillingTable5.jsx @@ -131,6 +131,7 @@ import { changePreviousOrderPayment, changePreviousOrderOfferDetail, GlobalAllBookingType, + changeSearchedData, } from '../../../../../Features/BookingScreen/BookingData/BookingData'; import { ChangeTotalAmount } from '../../../../../Features/ExteraCharges/ExtraCharges.js'; //Shifayth Date:27/12/2023 import { @@ -1945,6 +1946,7 @@ const BSBillingTable5 = () => { dispatch(changeOrderCardDetails([])); } dispatch(changeBillEditingMode(false)); + dispatch(changeSearchedData('')); await dispatch(changePreviousOrderPayment([])); await dispatch(changePreviousOrderOfferDetail([])); dispatch(changeTipAmount(0)); diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable6/BST6Payment.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable6/BST6Payment.jsx index d473333..1420f4c 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable6/BST6Payment.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable6/BST6Payment.jsx @@ -127,6 +127,7 @@ import { changePreviousOrderPayment, changePreviousOrderOfferDetail, GlobalAllBookingType, + changeSearchedData, } from '../../../../../Features/BookingScreen/BookingData/BookingData'; import FeaturesFunctionalities from '../../BookingFunctionality/FeaturesFunctionalities'; import { @@ -1933,6 +1934,7 @@ const BST6Payment = () => { } else { dispatch(changeOrderCardDetails([])); } + dispatch(changeSearchedData('')); dispatch(changeBillEditingMode(false)); await dispatch(changePreviousOrderPayment([])); await dispatch(changePreviousOrderOfferDetail([])); diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable7/BSBilling7Payment.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable7/BSBilling7Payment.jsx index 6d43dbf..732b8e9 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable7/BSBilling7Payment.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable7/BSBilling7Payment.jsx @@ -119,6 +119,7 @@ import { changePreviousOrderPayment, changePreviousOrderOfferDetail, GlobalAllBookingType, + changeSearchedData, } from '../../../../../Features/BookingScreen/BookingData/BookingData.js'; import { globalExtraTotalAmount, @@ -1955,6 +1956,7 @@ const BSBilling7Payment = () => { dispatch(changeOrderCardDetails([])); } dispatch(changeBillEditingMode(false)); + dispatch(changeSearchedData('')); await dispatch(changePreviousOrderPayment([])); await dispatch(changePreviousOrderOfferDetail([])); dispatch(changeTipAmount(0)); diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/StandardTable/StandardTablePayment.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/StandardTable/StandardTablePayment.jsx index 089846f..af36731 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/StandardTable/StandardTablePayment.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/StandardTable/StandardTablePayment.jsx @@ -42,6 +42,7 @@ import { changePreviousOrderPayment, changeReorderHoldDetails, changeReorderProductDetails, + changeSearchedData, changeSelectChair, ChangeSelectedCustDisable, changeSelectedCustId, @@ -2849,6 +2850,7 @@ useEffect(() => { }) ); dispatch(changeBillEditingMode(false)); + dispatch(changeSearchedData('')); await dispatch(changePreviousOrderPayment([])); await dispatch(changePreviousOrderOfferDetail([])); dispatch(changeTipAmount(0)); diff --git a/src/Pages/BookingScreen/Components/BSCombo/BSC1Payment.jsx b/src/Pages/BookingScreen/Components/BSCombo/BSC1Payment.jsx index a39f4ef..cdb8a01 100644 --- a/src/Pages/BookingScreen/Components/BSCombo/BSC1Payment.jsx +++ b/src/Pages/BookingScreen/Components/BSCombo/BSC1Payment.jsx @@ -127,6 +127,7 @@ import { changePreviousOrderPayment, changePreviousOrderOfferDetail, GlobalPaymentTrigger, + changeSearchedData, } from '../../../../Features/BookingScreen/BookingData/BookingData'; import { PrintStyleFunction } from '../../../paymentpdfPage/PrintStyleFunction.js'; import { @@ -2027,6 +2028,7 @@ const BSC1Payment = (props) => { dispatch(changeOrderCardDetails([])); } dispatch(changeBillEditingMode(false)); + dispatch(changeSearchedData('')); await dispatch(changePreviousOrderPayment([])); await dispatch(changePreviousOrderOfferDetail([])); dispatch(changeTipAmount(0));