From 49fa01e91858158b752a39b577187a65a697ad05 Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Thu, 2 Jul 2026 11:37:44 +0800 Subject: [PATCH] po detail ui add deleted button and ui update --- src/app/api/stockIn/actions.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/app/api/stockIn/actions.ts b/src/app/api/stockIn/actions.ts index 0b152d7..9f74ae8 100644 --- a/src/app/api/stockIn/actions.ts +++ b/src/app/api/stockIn/actions.ts @@ -231,6 +231,18 @@ export const testing = cache(async (queryParams?: Record) => { } }); +export const deleteStockInLine = async (stockInLineId: number) => { + const result = await serverFetchJson>( + `${BASE_API_URL}/stockInLine/delete/${stockInLineId}`, + { + method: "POST", + headers: { "Content-Type": "application/json" }, + }, + ); + revalidateTag("po"); + return result; +}; + export const printQrCodeForSil = cache(async(data: PrintQrCodeForSilRequest) => { const params = convertObjToURLSearchParams(data) return serverFetchWithNoContent(`${BASE_API_URL}/stockInLine/print-label?${params}`,