Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

18 rader
577 B

  1. "use server";
  2. import { serverFetchBlob, serverFetchJson } from "@/app/utils/fetchUtil";
  3. import { EX02ProjectCashFlowReportRequest } from ".";
  4. import { BASE_API_URL } from "@/config/api";
  5. export const fetchEX02ProjectCashFlowReport = async (data: EX02ProjectCashFlowReportRequest) => {
  6. const reportBlob = await serverFetchBlob(
  7. `${BASE_API_URL}/reports/EX02-ProjectCashFlowReport`,
  8. {
  9. method: "POST",
  10. body: JSON.stringify(data),
  11. headers: { "Content-Type": "application/json" },
  12. },
  13. );
  14. return reportBlob
  15. };