Kaynağa Gözat

po detail ui add deleted button and ui update

production
CANCERYS\kw093 4 saat önce
ebeveyn
işleme
49fa01e918
1 değiştirilmiş dosya ile 12 ekleme ve 0 silme
  1. +12
    -0
      src/app/api/stockIn/actions.ts

+ 12
- 0
src/app/api/stockIn/actions.ts Dosyayı Görüntüle

@@ -231,6 +231,18 @@ export const testing = cache(async (queryParams?: Record<string, any>) => {
}
});

export const deleteStockInLine = async (stockInLineId: number) => {
const result = await serverFetchJson<PostStockInLineResponse<unknown>>(
`${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}`,


Yükleniyor…
İptal
Kaydet