import apiClient from "./apiClient";

export async function PostReceipt(data: any) {
  try {
    const response = await apiClient.post("/operations/receipt", data);
    return response.data;
  } catch (error: any) {
    const msg =
      error.response?.data?.message ||
      error.message ||
      "Error desconocido al crear recibo";
    throw new Error(msg);
  }
}
//IO
