summaryrefslogtreecommitdiff
path: root/src/app/api/stock-opname/route.tsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-04 15:45:23 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-04 15:45:23 +0700
commit67d283bb61d7167e7c6460293f3c5669eacf3b63 (patch)
treef5e45236e542bccccb0400d7f405c651e117d67b /src/app/api/stock-opname/route.tsx
parenta50bc458c9f9dfff8fa9902afa51769e8a282c0c (diff)
<iman> delete console log
Diffstat (limited to 'src/app/api/stock-opname/route.tsx')
-rw-r--r--src/app/api/stock-opname/route.tsx19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/app/api/stock-opname/route.tsx b/src/app/api/stock-opname/route.tsx
index e0a5ee7..69caca0 100644
--- a/src/app/api/stock-opname/route.tsx
+++ b/src/app/api/stock-opname/route.tsx
@@ -180,14 +180,6 @@ const computeIsDifferent = async ({ companyId, productId }: { companyId: number;
count2EqWithCount3: totalQty["COUNT2"] !== null && totalQty["COUNT3"] !== null && totalQty["COUNT2"] === totalQty["COUNT3"],
};
- // isDifferent = !(
- // conditional.verificationCheckAll ||
- // conditional.anyCountEqWithOnhand ||
- // conditional.anyCountEqWithAllQty ||
- // conditional.count1EqWithCount2 ||
- // conditional.count1EqWithCount3 ||
- // conditional.count2EqWithCount3
- // )
if (conditional.verificationCheckAll || conditional.anyCountEqWithOnhand || conditional.count1EqWithCount2 || conditional.count1EqWithCount3 || conditional.count2EqWithCount3) {
isDifferent = false;
} else {
@@ -212,17 +204,8 @@ const computeIsDifferent = async ({ companyId, productId }: { companyId: number;
isDifferent = true;
break;
}
- console.log("----------------------------------BATAS SUCI ATAS NEW STOCK ------------------------------");
- console.log("Is Different2222:", isDifferent);
- console.log("Conditions:", detailCondition);
- }
- console.log("Total Quantity:", totalQty);
- console.log("Onhand Quantity:", onhandQty);
- console.log("Difference Quantity:", differenceQty);
- console.log("Conditions:", conditional);
- console.log("Is Different tambah data:", isDifferent);
- console.log("----------------------------------BATAS SUCI BAWAH NEW STOCK------------------------------");
+ }
await prisma.product.update({
where: { id: product.id },