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,
|
changePreviousOrderPayment,
|
||||||
changePreviousOrderOfferDetail,
|
changePreviousOrderOfferDetail,
|
||||||
GlobalAllBookingType,
|
GlobalAllBookingType,
|
||||||
|
changeSearchedData,
|
||||||
} from '../../../../../Features/BookingScreen/BookingData/BookingData';
|
} from '../../../../../Features/BookingScreen/BookingData/BookingData';
|
||||||
import FeaturesFunctionalities from '../../BookingFunctionality/FeaturesFunctionalities';
|
import FeaturesFunctionalities from '../../BookingFunctionality/FeaturesFunctionalities';
|
||||||
import {
|
import {
|
||||||
|
|
@ -1845,6 +1846,7 @@ export default function BST1Payment() {
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
dispatch(changeBillEditingMode(false));
|
dispatch(changeBillEditingMode(false));
|
||||||
|
dispatch(changeSearchedData(''));
|
||||||
await dispatch(changePreviousOrderPayment([]));
|
await dispatch(changePreviousOrderPayment([]));
|
||||||
await dispatch(changePreviousOrderOfferDetail([]));
|
await dispatch(changePreviousOrderOfferDetail([]));
|
||||||
dispatch(changeTipAmount(0));
|
dispatch(changeTipAmount(0));
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,7 @@ import {
|
||||||
changeBillEditingMode,
|
changeBillEditingMode,
|
||||||
changePreviousOrderPayment,
|
changePreviousOrderPayment,
|
||||||
changePreviousOrderOfferDetail,
|
changePreviousOrderOfferDetail,
|
||||||
|
changeSearchedData,
|
||||||
} from '../../../../../Features/BookingScreen/BookingData/BookingData.js';
|
} from '../../../../../Features/BookingScreen/BookingData/BookingData.js';
|
||||||
import {
|
import {
|
||||||
ChangeFullFreeProductList,
|
ChangeFullFreeProductList,
|
||||||
|
|
@ -1921,6 +1922,7 @@ const BSBillingTable2 = () => {
|
||||||
dispatch(changeOrderCardDetails([]));
|
dispatch(changeOrderCardDetails([]));
|
||||||
}
|
}
|
||||||
dispatch(changeBillEditingMode(false));
|
dispatch(changeBillEditingMode(false));
|
||||||
|
dispatch(changeSearchedData(''));
|
||||||
await dispatch(changePreviousOrderPayment([]));
|
await dispatch(changePreviousOrderPayment([]));
|
||||||
await dispatch(changePreviousOrderOfferDetail([]));
|
await dispatch(changePreviousOrderOfferDetail([]));
|
||||||
dispatch(changeTipAmount(0));
|
dispatch(changeTipAmount(0));
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,7 @@ import {
|
||||||
changePreviousOrderPayment,
|
changePreviousOrderPayment,
|
||||||
changePreviousOrderOfferDetail,
|
changePreviousOrderOfferDetail,
|
||||||
GlobalAllBookingType,
|
GlobalAllBookingType,
|
||||||
|
changeSearchedData,
|
||||||
} from '../../../../../Features/BookingScreen/BookingData/BookingData';
|
} from '../../../../../Features/BookingScreen/BookingData/BookingData';
|
||||||
import { PrintStyleFunction } from '../../../../paymentpdfPage/PrintStyleFunction.js';
|
import { PrintStyleFunction } from '../../../../paymentpdfPage/PrintStyleFunction.js';
|
||||||
import FeaturesFunctionalities from '../../BookingFunctionality/FeaturesFunctionalities';
|
import FeaturesFunctionalities from '../../BookingFunctionality/FeaturesFunctionalities';
|
||||||
|
|
@ -2040,6 +2041,7 @@ const BSBillingTable3Pay = () => {
|
||||||
// } else {
|
// } else {
|
||||||
dispatch(changeOrderCardDetails([]));
|
dispatch(changeOrderCardDetails([]));
|
||||||
// }
|
// }
|
||||||
|
dispatch(changeSearchedData(''));
|
||||||
dispatch(changeBillEditingMode(false));
|
dispatch(changeBillEditingMode(false));
|
||||||
await dispatch(changePreviousOrderPayment([]));
|
await dispatch(changePreviousOrderPayment([]));
|
||||||
await dispatch(changePreviousOrderOfferDetail([]));
|
await dispatch(changePreviousOrderOfferDetail([]));
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,7 @@ import {
|
||||||
changeBillEditingMode,
|
changeBillEditingMode,
|
||||||
changePreviousOrderPayment,
|
changePreviousOrderPayment,
|
||||||
changePreviousOrderOfferDetail,
|
changePreviousOrderOfferDetail,
|
||||||
|
changeSearchedData,
|
||||||
} from '../../../../../Features/BookingScreen/BookingData/BookingData';
|
} from '../../../../../Features/BookingScreen/BookingData/BookingData';
|
||||||
import {
|
import {
|
||||||
globalExtraTotalAmount,
|
globalExtraTotalAmount,
|
||||||
|
|
@ -1947,6 +1948,7 @@ const BSBilling4Payment = () => {
|
||||||
dispatch(changeOrderCardDetails([]));
|
dispatch(changeOrderCardDetails([]));
|
||||||
// }
|
// }
|
||||||
dispatch(changeBillEditingMode(false));
|
dispatch(changeBillEditingMode(false));
|
||||||
|
dispatch(changeSearchedData(''));
|
||||||
await dispatch(changePreviousOrderPayment([]));
|
await dispatch(changePreviousOrderPayment([]));
|
||||||
await dispatch(changePreviousOrderOfferDetail([]));
|
await dispatch(changePreviousOrderOfferDetail([]));
|
||||||
dispatch(changeLoyaltyConsumedQuantities({}));
|
dispatch(changeLoyaltyConsumedQuantities({}));
|
||||||
|
|
|
||||||
|
|
@ -131,6 +131,7 @@ import {
|
||||||
changePreviousOrderPayment,
|
changePreviousOrderPayment,
|
||||||
changePreviousOrderOfferDetail,
|
changePreviousOrderOfferDetail,
|
||||||
GlobalAllBookingType,
|
GlobalAllBookingType,
|
||||||
|
changeSearchedData,
|
||||||
} from '../../../../../Features/BookingScreen/BookingData/BookingData';
|
} from '../../../../../Features/BookingScreen/BookingData/BookingData';
|
||||||
import { ChangeTotalAmount } from '../../../../../Features/ExteraCharges/ExtraCharges.js'; //Shifayth Date:27/12/2023
|
import { ChangeTotalAmount } from '../../../../../Features/ExteraCharges/ExtraCharges.js'; //Shifayth Date:27/12/2023
|
||||||
import {
|
import {
|
||||||
|
|
@ -1945,6 +1946,7 @@ const BSBillingTable5 = () => {
|
||||||
dispatch(changeOrderCardDetails([]));
|
dispatch(changeOrderCardDetails([]));
|
||||||
}
|
}
|
||||||
dispatch(changeBillEditingMode(false));
|
dispatch(changeBillEditingMode(false));
|
||||||
|
dispatch(changeSearchedData(''));
|
||||||
await dispatch(changePreviousOrderPayment([]));
|
await dispatch(changePreviousOrderPayment([]));
|
||||||
await dispatch(changePreviousOrderOfferDetail([]));
|
await dispatch(changePreviousOrderOfferDetail([]));
|
||||||
dispatch(changeTipAmount(0));
|
dispatch(changeTipAmount(0));
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ import {
|
||||||
changePreviousOrderPayment,
|
changePreviousOrderPayment,
|
||||||
changePreviousOrderOfferDetail,
|
changePreviousOrderOfferDetail,
|
||||||
GlobalAllBookingType,
|
GlobalAllBookingType,
|
||||||
|
changeSearchedData,
|
||||||
} from '../../../../../Features/BookingScreen/BookingData/BookingData';
|
} from '../../../../../Features/BookingScreen/BookingData/BookingData';
|
||||||
import FeaturesFunctionalities from '../../BookingFunctionality/FeaturesFunctionalities';
|
import FeaturesFunctionalities from '../../BookingFunctionality/FeaturesFunctionalities';
|
||||||
import {
|
import {
|
||||||
|
|
@ -1933,6 +1934,7 @@ const BST6Payment = () => {
|
||||||
} else {
|
} else {
|
||||||
dispatch(changeOrderCardDetails([]));
|
dispatch(changeOrderCardDetails([]));
|
||||||
}
|
}
|
||||||
|
dispatch(changeSearchedData(''));
|
||||||
dispatch(changeBillEditingMode(false));
|
dispatch(changeBillEditingMode(false));
|
||||||
await dispatch(changePreviousOrderPayment([]));
|
await dispatch(changePreviousOrderPayment([]));
|
||||||
await dispatch(changePreviousOrderOfferDetail([]));
|
await dispatch(changePreviousOrderOfferDetail([]));
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,7 @@ import {
|
||||||
changePreviousOrderPayment,
|
changePreviousOrderPayment,
|
||||||
changePreviousOrderOfferDetail,
|
changePreviousOrderOfferDetail,
|
||||||
GlobalAllBookingType,
|
GlobalAllBookingType,
|
||||||
|
changeSearchedData,
|
||||||
} from '../../../../../Features/BookingScreen/BookingData/BookingData.js';
|
} from '../../../../../Features/BookingScreen/BookingData/BookingData.js';
|
||||||
import {
|
import {
|
||||||
globalExtraTotalAmount,
|
globalExtraTotalAmount,
|
||||||
|
|
@ -1955,6 +1956,7 @@ const BSBilling7Payment = () => {
|
||||||
dispatch(changeOrderCardDetails([]));
|
dispatch(changeOrderCardDetails([]));
|
||||||
}
|
}
|
||||||
dispatch(changeBillEditingMode(false));
|
dispatch(changeBillEditingMode(false));
|
||||||
|
dispatch(changeSearchedData(''));
|
||||||
await dispatch(changePreviousOrderPayment([]));
|
await dispatch(changePreviousOrderPayment([]));
|
||||||
await dispatch(changePreviousOrderOfferDetail([]));
|
await dispatch(changePreviousOrderOfferDetail([]));
|
||||||
dispatch(changeTipAmount(0));
|
dispatch(changeTipAmount(0));
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ import {
|
||||||
changePreviousOrderPayment,
|
changePreviousOrderPayment,
|
||||||
changeReorderHoldDetails,
|
changeReorderHoldDetails,
|
||||||
changeReorderProductDetails,
|
changeReorderProductDetails,
|
||||||
|
changeSearchedData,
|
||||||
changeSelectChair,
|
changeSelectChair,
|
||||||
ChangeSelectedCustDisable,
|
ChangeSelectedCustDisable,
|
||||||
changeSelectedCustId,
|
changeSelectedCustId,
|
||||||
|
|
@ -2849,6 +2850,7 @@ useEffect(() => {
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
dispatch(changeBillEditingMode(false));
|
dispatch(changeBillEditingMode(false));
|
||||||
|
dispatch(changeSearchedData(''));
|
||||||
await dispatch(changePreviousOrderPayment([]));
|
await dispatch(changePreviousOrderPayment([]));
|
||||||
await dispatch(changePreviousOrderOfferDetail([]));
|
await dispatch(changePreviousOrderOfferDetail([]));
|
||||||
dispatch(changeTipAmount(0));
|
dispatch(changeTipAmount(0));
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ import {
|
||||||
changePreviousOrderPayment,
|
changePreviousOrderPayment,
|
||||||
changePreviousOrderOfferDetail,
|
changePreviousOrderOfferDetail,
|
||||||
GlobalPaymentTrigger,
|
GlobalPaymentTrigger,
|
||||||
|
changeSearchedData,
|
||||||
} from '../../../../Features/BookingScreen/BookingData/BookingData';
|
} from '../../../../Features/BookingScreen/BookingData/BookingData';
|
||||||
import { PrintStyleFunction } from '../../../paymentpdfPage/PrintStyleFunction.js';
|
import { PrintStyleFunction } from '../../../paymentpdfPage/PrintStyleFunction.js';
|
||||||
import {
|
import {
|
||||||
|
|
@ -2027,6 +2028,7 @@ const BSC1Payment = (props) => {
|
||||||
dispatch(changeOrderCardDetails([]));
|
dispatch(changeOrderCardDetails([]));
|
||||||
}
|
}
|
||||||
dispatch(changeBillEditingMode(false));
|
dispatch(changeBillEditingMode(false));
|
||||||
|
dispatch(changeSearchedData(''));
|
||||||
await dispatch(changePreviousOrderPayment([]));
|
await dispatch(changePreviousOrderPayment([]));
|
||||||
await dispatch(changePreviousOrderOfferDetail([]));
|
await dispatch(changePreviousOrderOfferDetail([]));
|
||||||
dispatch(changeTipAmount(0));
|
dispatch(changeTipAmount(0));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue