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:
karthikalakshmi 2026-02-13 18:56:48 +05:30
commit 5ce5e40bc9
1 changed files with 3 additions and 2 deletions

View File

@ -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,