warungpos-ui / src /api /reports.js
Mhamdans17
feat: owner POS branch switcher, NIB renamed to bank_account_number, branch filter orders/kasir
454ca1f
Raw
History Blame Contribute Delete
329 Bytes
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 } : {} });