diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-07-03 17:48:31 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-07-03 17:48:31 +0700 |
| commit | a711c3d7f3a41bb5ac20485723a0f629fbfde1b7 (patch) | |
| tree | 319d9741f34e322ce604a609b060005faa4370da /src/modules/result/components/Table.tsx | |
| parent | a2854778bfba99eb1eded911b48964f076e17a27 (diff) | |
<iman> update code logic
Diffstat (limited to 'src/modules/result/components/Table.tsx')
| -rw-r--r-- | src/modules/result/components/Table.tsx | 2 |
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() } |
