|
@@ -0,0 +1,16 @@
|
|
|
|
|
+import api from "src/api";
|
|
|
|
|
+
|
|
|
|
|
+export const getReceivablesMe = async (params = {}) => {
|
|
|
|
|
+ const { data } = await api.get("/unit-receivable/me", { params });
|
|
|
|
|
+ return data.payload;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+export const settleReceivableMe = async (id, payload = {}) => {
|
|
|
|
|
+ const { data } = await api.post(`/unit-receivable/me/${id}/settle`, payload);
|
|
|
|
|
+ return data.payload;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+export const reopenReceivableMe = async (id) => {
|
|
|
|
|
+ const { data } = await api.post(`/unit-receivable/me/${id}/reopen`);
|
|
|
|
|
+ return data.payload;
|
|
|
|
|
+};
|