Hold Issue Missing files
This commit is contained in:
parent
67d840a88b
commit
79c5d97434
|
|
@ -486,6 +486,7 @@ const BSBilling4Payment = () => {
|
||||||
const [addnewAccess, setaddnewAccess] = useState(true);
|
const [addnewAccess, setaddnewAccess] = useState(true);
|
||||||
const [responsiveBill, setResponsiveBill] = useState(true);
|
const [responsiveBill, setResponsiveBill] = useState(true);
|
||||||
const tableOptions = templateData?.BookingBilling?.[1];
|
const tableOptions = templateData?.BookingBilling?.[1];
|
||||||
|
const NavBarOptions = templateData?.BookingNavbar?.[1];
|
||||||
const [blink, setBlink] = useState(false);
|
const [blink, setBlink] = useState(false);
|
||||||
const BookingStatus = useSelector(GlobalBookingStatus);
|
const BookingStatus = useSelector(GlobalBookingStatus);
|
||||||
const CheckBookingStatus =
|
const CheckBookingStatus =
|
||||||
|
|
@ -1278,7 +1279,7 @@ const BSBilling4Payment = () => {
|
||||||
}, [OrderCardDetail]);
|
}, [OrderCardDetail]);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (CompId && BranchId && AppId) {
|
if (CompId && BranchId && AppId) {
|
||||||
if (holdCheckedSalesSetup) {
|
if (holdCheckedSalesSetup || NavBarOptions?.some((e) => e?.OptionName == 'Hold')) {
|
||||||
getHolddata();
|
getHolddata();
|
||||||
}
|
}
|
||||||
// getUnpaiddatas();
|
// getUnpaiddatas();
|
||||||
|
|
@ -1948,7 +1949,7 @@ const BSBilling4Payment = () => {
|
||||||
setCurrentOrderNetAmount(0);
|
setCurrentOrderNetAmount(0);
|
||||||
setPreviousNetAmount(0);
|
setPreviousNetAmount(0);
|
||||||
setUpinotSelected(false);
|
setUpinotSelected(false);
|
||||||
if (holdCheckedSalesSetup) {
|
if (holdCheckedSalesSetup || NavBarOptions?.some((e) => e?.OptionName == 'Hold')) {
|
||||||
getHolddata();
|
getHolddata();
|
||||||
}
|
}
|
||||||
if (defaultBookingType === 'Both') {
|
if (defaultBookingType === 'Both') {
|
||||||
|
|
|
||||||
|
|
@ -143,8 +143,8 @@ import {
|
||||||
getAddCustomerDetails,
|
getAddCustomerDetails,
|
||||||
getDefaultPaymentOptions,
|
getDefaultPaymentOptions,
|
||||||
GlobalAddCustomerDetails,
|
GlobalAddCustomerDetails,
|
||||||
ReprintDetails,
|
|
||||||
triggerCustomerRefresh,
|
triggerCustomerRefresh,
|
||||||
|
VerifiedPaymentDtl,
|
||||||
} from '../../../../../Features/BookingScreen/Customer/addCustomer';
|
} from '../../../../../Features/BookingScreen/Customer/addCustomer';
|
||||||
import BSCustomerSelect from '../../UtillComponents/BSSelectCustomer.jsx';
|
import BSCustomerSelect from '../../UtillComponents/BSSelectCustomer.jsx';
|
||||||
import PozoHoldIcon from '../../UtillComponents/Pozo retail icons/PozoHoldIcon';
|
import PozoHoldIcon from '../../UtillComponents/Pozo retail icons/PozoHoldIcon';
|
||||||
|
|
@ -302,6 +302,7 @@ const BST6Payment = () => {
|
||||||
const ProdSubCat = useSelector(GlobalProductSubCategorie);
|
const ProdSubCat = useSelector(GlobalProductSubCategorie);
|
||||||
const templateData = useSelector(getTemplateData);
|
const templateData = useSelector(getTemplateData);
|
||||||
const tableOptions = templateData?.BookingBilling?.[1];
|
const tableOptions = templateData?.BookingBilling?.[1];
|
||||||
|
const NavBarOptions = templateData?.BookingNavbar?.[1];
|
||||||
const OfferCheckedInSetup = templateData?.BookingNavbar?.[1].some(
|
const OfferCheckedInSetup = templateData?.BookingNavbar?.[1].some(
|
||||||
(item) => item?.OptionName == 'Offer'
|
(item) => item?.OptionName == 'Offer'
|
||||||
);
|
);
|
||||||
|
|
@ -1050,7 +1051,7 @@ const BST6Payment = () => {
|
||||||
};
|
};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (CompId && BranchId && AppId) {
|
if (CompId && BranchId && AppId) {
|
||||||
if (holdCheckedSalesSetup) {
|
if (holdCheckedSalesSetup || NavBarOptions?.some((e) => e?.OptionName == 'Hold')) {
|
||||||
getHolddata();
|
getHolddata();
|
||||||
}
|
}
|
||||||
// getUnpaiddatas();
|
// getUnpaiddatas();
|
||||||
|
|
@ -1075,7 +1076,7 @@ const BST6Payment = () => {
|
||||||
OrderId: businessUPIOrderId,
|
OrderId: businessUPIOrderId,
|
||||||
};
|
};
|
||||||
|
|
||||||
const res = await dispatch(ReprintDetails(data)).unwrap();
|
const res = await dispatch(VerifiedPaymentDtl(data)).unwrap();
|
||||||
|
|
||||||
if (res?.data?.statusCode === 1 && res?.data?.data?.length > 0) {
|
if (res?.data?.statusCode === 1 && res?.data?.data?.length > 0) {
|
||||||
const orderData = [{ OrderDetails: res.data.data }];
|
const orderData = [{ OrderDetails: res.data.data }];
|
||||||
|
|
@ -1934,7 +1935,7 @@ const BST6Payment = () => {
|
||||||
setUpinotSelected(false);
|
setUpinotSelected(false);
|
||||||
setCurrentOrderNetAmount(0);
|
setCurrentOrderNetAmount(0);
|
||||||
setPreviousNetAmount(0);
|
setPreviousNetAmount(0);
|
||||||
if (holdCheckedSalesSetup) {
|
if (holdCheckedSalesSetup || NavBarOptions?.some((e) => e?.OptionName == 'Hold')) {
|
||||||
getHolddata();
|
getHolddata();
|
||||||
}
|
}
|
||||||
if (defaultBookingType === 'Both') {
|
if (defaultBookingType === 'Both') {
|
||||||
|
|
|
||||||
|
|
@ -170,8 +170,8 @@ import BSCreditCustomer from '../../UtillComponents/BSCreditCustomer';
|
||||||
import {
|
import {
|
||||||
getDefaultPaymentOptions,
|
getDefaultPaymentOptions,
|
||||||
GlobalAddCustomerDetails,
|
GlobalAddCustomerDetails,
|
||||||
ReprintDetails,
|
|
||||||
triggerCustomerRefresh,
|
triggerCustomerRefresh,
|
||||||
|
VerifiedPaymentDtl,
|
||||||
} from '../../../../../Features/BookingScreen/Customer/addCustomer';
|
} from '../../../../../Features/BookingScreen/Customer/addCustomer';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { ApplicationPreferences } from '../../../../../Features/BrachLogin/BranchLogin';
|
import { ApplicationPreferences } from '../../../../../Features/BrachLogin/BranchLogin';
|
||||||
|
|
@ -310,6 +310,11 @@ const StandardTablePayment = () => {
|
||||||
const BookingStatus = useSelector(GlobalBookingStatus);
|
const BookingStatus = useSelector(GlobalBookingStatus);
|
||||||
const tabledata = useSelector(GlobalUnpaidListData);
|
const tabledata = useSelector(GlobalUnpaidListData);
|
||||||
const tableOptions = templateData?.BookingBilling?.[1];
|
const tableOptions = templateData?.BookingBilling?.[1];
|
||||||
|
const NavBarOptions = templateData?.BookingNavbar?.[1];
|
||||||
|
const holdCheckedSalesSetup = tableOptions?.some(
|
||||||
|
(item) => item?.OptionName === 'Hold'
|
||||||
|
);
|
||||||
|
|
||||||
const GlobalAddCustomerDetails1 = useSelector(GlobalAddCustomerDetails);
|
const GlobalAddCustomerDetails1 = useSelector(GlobalAddCustomerDetails);
|
||||||
const AddBookingDetailsTrigger = useSelector(GlobalAddBookingDetailsTrigger);
|
const AddBookingDetailsTrigger = useSelector(GlobalAddBookingDetailsTrigger);
|
||||||
const GetCustId = useSelector(GlobalCustId);
|
const GetCustId = useSelector(GlobalCustId);
|
||||||
|
|
@ -1096,7 +1101,7 @@ const StandardTablePayment = () => {
|
||||||
OrderId: businessUPIOrderId,
|
OrderId: businessUPIOrderId,
|
||||||
};
|
};
|
||||||
|
|
||||||
const res = await dispatch(ReprintDetails(data)).unwrap();
|
const res = await dispatch(VerifiedPaymentDtl(data)).unwrap();
|
||||||
|
|
||||||
if (res?.data?.statusCode === 1 && res?.data?.data?.length > 0) {
|
if (res?.data?.statusCode === 1 && res?.data?.data?.length > 0) {
|
||||||
const orderData = [{ OrderDetails: res.data.data }];
|
const orderData = [{ OrderDetails: res.data.data }];
|
||||||
|
|
@ -2835,7 +2840,7 @@ const StandardTablePayment = () => {
|
||||||
setPaybtnselected(PaymentOptionsModeId);
|
setPaybtnselected(PaymentOptionsModeId);
|
||||||
setQrCode(false);
|
setQrCode(false);
|
||||||
setUpinotSelected(false);
|
setUpinotSelected(false);
|
||||||
if (holdCheckedSalesSetup) {
|
if (holdCheckedSalesSetup || NavBarOptions?.some((e) => e?.OptionName == 'Hold')) {
|
||||||
getHolddata();
|
getHolddata();
|
||||||
}
|
}
|
||||||
setCurrentOrderNetAmount(0);
|
setCurrentOrderNetAmount(0);
|
||||||
|
|
|
||||||
|
|
@ -131,11 +131,11 @@ const BSNavBarHand = ({
|
||||||
{hold && (
|
{hold && (
|
||||||
<FeaturesFunctionalities
|
<FeaturesFunctionalities
|
||||||
handleHoldCancel={(e) => {
|
handleHoldCancel={(e) => {
|
||||||
e.stopPropagation();
|
e?.stopPropagation();
|
||||||
handleHoldCancel();
|
handleHoldCancel();
|
||||||
}}
|
}}
|
||||||
modalOpen={hold}
|
modalOpen={hold}
|
||||||
closeModal={() => setHold(false)}
|
// closeModal={() => setHold(false)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue