소스 검색

Fix small bug in calculations

Lee Morgan 6 년 전
부모
커밋
e91a428b5f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      views/dashboardPage/Merchant.js

+ 1 - 1
views/dashboardPage/Merchant.js

@@ -344,7 +344,7 @@ class Merchant{
             }
 
             for(let j = 0; j < this.transactions[i].recipes.length; j++){
-                dataList[arrayIndex] += this.transactions[i].recipes[j].recipe.price * this.transactions[i].recipes[j].quantity;
+                dataList[arrayIndex] += (this.transactions[i].recipes[j].recipe.price / 100) * this.transactions[i].recipes[j].quantity;
             }
         }