summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-11-23 10:42:22 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-11-23 10:42:22 +0700
commita39c95d20739bc564f49e115b4fdafc1f6f56b10 (patch)
treea3acc68a8dd76db188210813360cd537ca517cc8 /src
parent2430eaeca66a6825206b40af904a268b27bc1561 (diff)
fix compute different on product api
Diffstat (limited to 'src')
-rw-r--r--src/app/api/stock-opname/route.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/api/stock-opname/route.tsx b/src/app/api/stock-opname/route.tsx
index ef4e1d5..0515238 100644
--- a/src/app/api/stock-opname/route.tsx
+++ b/src/app/api/stock-opname/route.tsx
@@ -197,7 +197,7 @@ const computeIsDifferent = async ({
if (!isDifferent) {
const conditional = {
- wasVerified: typeof totalQty['VERIFICATION'] === 'number' && totalQty['VERIFICATION'] > 0,
+ wasVerified: typeof totalQty['VERIFICATION'] === 'number',
anyCountEqWithOnhand: [totalQty['COUNT1'], totalQty['COUNT2'], totalQty['COUNT3']].includes(onhandQty),
count1EqWithCount2: totalQty['COUNT1'] !== null && totalQty['COUNT2'] !== null && totalQty['COUNT1'] === totalQty['COUNT2'],
count1EqWithCount3: totalQty['COUNT1'] !== null && totalQty['COUNT3'] !== null && totalQty['COUNT1'] === totalQty['COUNT3'],