浏览代码

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;
             }
         }