File size: 329 Bytes
308a91d
 
454ca1f
 
308a91d
454ca1f
 
1
2
3
4
5
6
7
8
import api from './axios';

export const getDailyReport = (date, branchId) =>
  api.get('/api/reports/daily', { params: { ...(date ? { date } : {}), ...(branchId ? { branch_id: branchId } : {}) } });

export const getSummary = (branchId) =>
  api.get('/api/reports/summary', { params: branchId ? { branch_id: branchId } : {} });