From 790e36ebb2e4a669f7c95f431cfaadf9b18654a3 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 9 Dec 2023 12:50:39 +0700 Subject: Fix compute different product stock opname --- .../[companyId]/product/[productId]/compute-different/route.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/app/api/company') diff --git a/src/app/api/company/[companyId]/product/[productId]/compute-different/route.tsx b/src/app/api/company/[companyId]/product/[productId]/compute-different/route.tsx index 33cd55d..ff9cd74 100644 --- a/src/app/api/company/[companyId]/product/[productId]/compute-different/route.tsx +++ b/src/app/api/company/[companyId]/product/[productId]/compute-different/route.tsx @@ -73,9 +73,9 @@ export async function POST(request: NextRequest, { params }: PostParams) { const detailCondition = { verificationCheckAll: _.isNumber(VERIFICATION.quantity), - count1EqWithCount2: COUNT1.quantity !== null && COUNT2.quantity !== null && COUNT1.quantity === COUNT2.quantity, - count1EqWithCount3: COUNT1.quantity !== null && COUNT3.quantity !== null && COUNT1.quantity === COUNT3.quantity, - count2EqWithCount3: COUNT2.quantity !== null && COUNT3.quantity !== null && COUNT2.quantity === COUNT3.quantity, + count1EqWithCount2: COUNT1.quantity === COUNT2.quantity, + count1EqWithCount3: COUNT1.quantity === COUNT3.quantity, + count2EqWithCount3: COUNT2.quantity === COUNT3.quantity, } isDifferent = !( -- cgit v1.2.3