mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
finilize gl flow for export
This commit is contained in:
@@ -318,4 +318,19 @@ export const contractsService = {
|
||||
});
|
||||
return data.data ?? data;
|
||||
},
|
||||
|
||||
/** Customer attaches the payment slip for the GL final invoice (export). */
|
||||
uploadFinalInvoiceSlip: async (
|
||||
bookingId: string,
|
||||
file: File,
|
||||
): Promise<{ uploaded: boolean }> => {
|
||||
const form = new FormData();
|
||||
form.append("file", file);
|
||||
const { data } = await client.post(
|
||||
C.BOOKING_FINAL_INVOICE_SLIP(bookingId),
|
||||
form,
|
||||
{ headers: { "Content-Type": "multipart/form-data" } },
|
||||
);
|
||||
return data.data ?? data;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user