summaryrefslogtreecommitdiff
path: root/src/modules/result
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/result')
-rw-r--r--src/modules/result/components/Table.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/result/components/Table.tsx b/src/modules/result/components/Table.tsx
index 082f988..94ed5bf 100644
--- a/src/modules/result/components/Table.tsx
+++ b/src/modules/result/components/Table.tsx
@@ -78,7 +78,9 @@ const Table = () => {
const recompute = async (productId: number, companyId: string) => {
const response = await fetch(`/api/company/${companyId}/product/${productId}/compute-different`, { method: 'POST' })
+ console.log("response",response)
const stockOpname = await response.json()
+ console.log("stockOpname",stockOpname)
toast(`Berhasil menghitung ulang status barang, hasilnya ${stockOpname.data.isDifferent ? 'selisih' : 'aman'}`)
stockOpnames.refetch()
}