Added Bulk Upload post funtionalies

This commit is contained in:
Srinath 2026-03-23 19:25:03 +05:30
parent d47a486461
commit 2f24083551
1 changed files with 8 additions and 2 deletions

View File

@ -255,7 +255,6 @@ const StockList = () => {
setpage(1);
}
};
const queryClient = useQueryClient();
const { data, isLoading, error } = useQuery({
queryKey: ['purchaseEntry', dateStrings, page],
queryFn: fetchDataget,
@ -1109,7 +1108,14 @@ const StockList = () => {
if (response?.data?.statusCode == 1) {
setMessageType('success');
setMessageData(response?.data?.response);
queryClient.invalidateQueries({ queryKey: ['purchaseEntry'] });
// dispatch(
// getStockData({
// AppId: AppId,
// BranchId: BranchId,
// CompId: CompId,
// StockAvailable: 'Y',
// })
// );
await Bulkuploadsubdata();
} else {
setMessageType('error');