Added if one product search input clear if greater then 1 search field is not cleared
This commit is contained in:
parent
38c9c95539
commit
d5e8073b69
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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([]));
|
||||
|
|
|
|||
|
|
@ -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({}));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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([]));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue