added direct sale search
This commit is contained in:
parent
ba013fc415
commit
7198c4845a
|
|
@ -25,6 +25,7 @@ const MultipleSearch = ({ close }) => {
|
||||||
{ label: "Category Name", value: "CategoryName" },
|
{ label: "Category Name", value: "CategoryName" },
|
||||||
{ label: "Sub Category Name", value: "SubCategoryName" },
|
{ label: "Sub Category Name", value: "SubCategoryName" },
|
||||||
{ label: "Brand Name", value: "BrandName" },
|
{ label: "Brand Name", value: "BrandName" },
|
||||||
|
{ label: "Direct Sale", value: "ProdShortCode" },
|
||||||
];
|
];
|
||||||
|
|
||||||
const [selectedValues, setSelectedValues] = useState([]);
|
const [selectedValues, setSelectedValues] = useState([]);
|
||||||
|
|
@ -50,7 +51,7 @@ const MultipleSearch = ({ close }) => {
|
||||||
const response = await dispatch(PostProductSearch(data)).unwrap();
|
const response = await dispatch(PostProductSearch(data)).unwrap();
|
||||||
console.log("Search Response:", response);
|
console.log("Search Response:", response);
|
||||||
if (response?.data?.statusCode == 1) {
|
if (response?.data?.statusCode == 1) {
|
||||||
GetmultipleSearchData();
|
GetmultipleSearchData();
|
||||||
setSelectedValues("");
|
setSelectedValues("");
|
||||||
close(false);
|
close(false);
|
||||||
}
|
}
|
||||||
|
|
@ -59,7 +60,7 @@ const MultipleSearch = ({ close }) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const GetmultipleSearchData = async () => {
|
const GetmultipleSearchData = async () => {
|
||||||
const data = {
|
const data = {
|
||||||
AppId,
|
AppId,
|
||||||
CompId,
|
CompId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue