diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/app/api/stock-opname/route.tsx | 2 |
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'], |
