Added Bulk Upload post funtionalies
This commit is contained in:
parent
d47a486461
commit
2f24083551
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue