Эх сурвалжийг харах

feat(financial): endpoint de gerar cobrança no cliente de contas a receber

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ebagabee 1 сар өмнө
parent
commit
6b812bc44f

+ 5 - 0
src/api/unit_receivable.js

@@ -14,3 +14,8 @@ export const reopenReceivableMe = async (id) => {
   const { data } = await api.post(`/unit-receivable/me/${id}/reopen`);
   const { data } = await api.post(`/unit-receivable/me/${id}/reopen`);
   return data.payload;
   return data.payload;
 };
 };
+
+export const chargeReceivableMe = async (id) => {
+  const { data } = await api.post(`/unit-receivable/me/${id}/charge`);
+  return data.payload;
+};