Files
front-AT/app/lib/postReceipt.ts
T

16 lines
374 B
TypeScript
Raw Normal View History

2025-09-19 17:20:05 -06:00
import apiClient from "./apiClient";
export async function PostReceipt(data: any) {
try {
2025-09-19 18:54:47 -06:00
const response = await apiClient.post("/operations/receipt", data);
2025-09-19 17:20:05 -06:00
return response.data;
} catch (error: any) {
const msg =
error.response?.data?.message ||
error.message ||
"Error desconocido al crear recibo";
2025-10-06 17:26:14 -06:00
throw new Error(msg);
2025-09-19 17:20:05 -06:00
}
}
2025-09-22 14:53:19 -06:00
//IO