Merge pull request 'added direct sale search' (#144) from temp/direct-sales-feature into main
Reviewed-on: Pozomind/pozo-retail-app#144
This commit is contained in:
commit
5ce5e40bc9
|
|
@ -25,6 +25,7 @@ const MultipleSearch = ({ close }) => {
|
|||
{ label: "Category Name", value: "CategoryName" },
|
||||
{ label: "Sub Category Name", value: "SubCategoryName" },
|
||||
{ label: "Brand Name", value: "BrandName" },
|
||||
{ label: "Direct Sale", value: "ProdShortCode" },
|
||||
];
|
||||
|
||||
const [selectedValues, setSelectedValues] = useState([]);
|
||||
|
|
@ -50,7 +51,7 @@ const MultipleSearch = ({ close }) => {
|
|||
const response = await dispatch(PostProductSearch(data)).unwrap();
|
||||
console.log("Search Response:", response);
|
||||
if (response?.data?.statusCode == 1) {
|
||||
GetmultipleSearchData();
|
||||
GetmultipleSearchData();
|
||||
setSelectedValues("");
|
||||
close(false);
|
||||
}
|
||||
|
|
@ -59,7 +60,7 @@ const MultipleSearch = ({ close }) => {
|
|||
}
|
||||
};
|
||||
|
||||
const GetmultipleSearchData = async () => {
|
||||
const GetmultipleSearchData = async () => {
|
||||
const data = {
|
||||
AppId,
|
||||
CompId,
|
||||
|
|
|
|||
Loading…
Reference in New Issue