category report
This commit is contained in:
@@ -235,6 +235,11 @@ const API = {
|
||||
if (anonymize) params.set('anonymize', 'true');
|
||||
if (groupByMonth) params.set('groupByMonth', 'true');
|
||||
return fetch('/api/reports/revenue?' + params.toString()).then(r => r.json());
|
||||
},
|
||||
getCategoryRevenue: (from, to, groupByMonth = false) => {
|
||||
const params = new URLSearchParams({ from, to });
|
||||
if (groupByMonth) params.set('groupByMonth', 'true');
|
||||
return fetch('/api/reports/category-revenue?' + params.toString()).then(r => r.json());
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user