overall commit

This commit is contained in:
joshikannan
2026-05-10 08:03:41 +05:30
parent d73c714290
commit f38853bec1
17 changed files with 3061 additions and 829 deletions

View File

@@ -147,9 +147,9 @@ export const fetchOrdersSummary = async ({ queryKey }) => {
// ==============================|| getreportlocationsummary (orders summary)||============================== //
export const getreportlocationsummary = async ({ queryKey }) => {
console.log('queryKey for getreportlocationsummary', queryKey);
const [startdate, enddate, locationId] = queryKey;
const [startdate, enddate, locationId, debouncedSearch] = queryKey;
const response = await axios.get(
`${process.env.REACT_APP_URL}/deliveries/getreportlocationsummary/?tenantid=${tenid}&locationid=${locationId}&fromdate=${startdate}&todate=${enddate}`
`${process.env.REACT_APP_URL}/deliveries/getreportlocationsummary/?tenantid=${tenid}&locationid=${locationId}&fromdate=${startdate}&todate=${enddate}&keyword=${debouncedSearch}`
);
console.log('getreportlocationsummary', response.data.details);
@@ -292,9 +292,16 @@ export const fetchCount = async ({ queryKey }) => {
// ==============================|| fetchRidersLogs (RiderLogs)||============================== //
export const fetchRidersLogs = async ({ queryKey }) => {
const [tenantid, startdate] = queryKey;
const [appId, startdate, riderSearch = ''] = queryKey;
// const riderLogsResponse = await axios.get(
// `${process.env.REACT_APP_URL}/partners/getriderlogs/?applocationid=${appId}&fromdate=${startdate || ''}&todate=${startdate}&keyword=${
// riderSearch || ''
// }`
// );
const riderLogsResponse = await axios.get(
`${process.env.REACT_APP_URL}/partners/getriderlogs/?tenantid=${tenantid}&fromdate=${startdate || ''}`
`https://jupiter.nearle.app/live/api/v2/partners/getriderlogs/?applocationid=${appId}&fromdate=${startdate || ''}&todate=${
startdate || ''
}&keyword=${riderSearch || ''}`
);
console.log('fetchRidersLogs', riderLogsResponse.data.details);
return riderLogsResponse.data.details;