From a39c95d20739bc564f49e115b4fdafc1f6f56b10 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 23 Nov 2023 10:42:22 +0700 Subject: fix compute different on product api --- src/app/api/stock-opname/route.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app/api') 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'], -- cgit v1.2.3