warungpos-ui / src /api /orders.js
Mhamdans17
feat: owner POS branch switcher, NIB renamed to bank_account_number, branch filter orders/kasir
454ca1f
Raw
History Blame Contribute Delete
307 Bytes
import api from './axios';
export const createOrder = (items, branch_id = null) =>
api.post('/api/orders/', { items, ...(branch_id ? { branch_id } : {}) });
export const getOrders = (params = {}) =>
api.get('/api/orders/', { params });
export const getOrder = (id) =>
api.get(`/api/orders/${id}`);