From 2af2659018d08cd8685a6e727994ab76f0735189 Mon Sep 17 00:00:00 2001 From: Mqdd Date: Sun, 15 Feb 2026 11:18:35 +0700 Subject: Locator --- src/modules/result/components/ImportModal.tsx | 11 +++++++++++ src/modules/result/components/ProductModal.tsx | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src/modules/result/components') diff --git a/src/modules/result/components/ImportModal.tsx b/src/modules/result/components/ImportModal.tsx index 1bb7b26..daacb55 100644 --- a/src/modules/result/components/ImportModal.tsx +++ b/src/modules/result/components/ImportModal.tsx @@ -62,6 +62,17 @@ const ImportModal = ({ modal }: Props) => {
+ +
+
ℹ️
+
+

Format File Excel:

+

Kolom 1-7: Nama, Barcode, Item Code, Qty On-hand, Qty Gudang Selisih, companyId, ID / External ID, value (per Unit)

+

Kolom 8 (opsional): Location

+
+
+ + { }) const response = await fetch(`/api/product?${searchParams}`) const data: { - products: (Product & { company: { id: number, name: string } })[], + products: (Product & { company: { id: number, name: string }, location?: { id: number, name: string } | null })[], page: number, totalPage: number } = await response.json() @@ -89,6 +89,7 @@ const ProductModal = ({ modal }: Props) => { BARCODE ON-HAND QTY DIFFERENCE QTY + LOCATION COMPANY @@ -99,6 +100,7 @@ const ProductModal = ({ modal }: Props) => { {product.barcode} {product.onhandQty} {product.differenceQty} + {(product as any).location?.name || '-'} {product.company.name} )} -- cgit v1.2.3