瀏覽代碼

Fix one small bug in transaction details

Lee Morgan 6 年之前
父節點
當前提交
9aba295b0f
共有 2 個文件被更改,包括 3 次插入63 次删除
  1. 0 62
      views/dashboardPage/bundle.js
  2. 3 1
      views/dashboardPage/js/transactionDetails.js

文件差異過大導致無法顯示
+ 0 - 62
views/dashboardPage/bundle.js


+ 3 - 1
views/dashboardPage/js/transactionDetails.js

@@ -35,7 +35,9 @@ let transactionDetails = {
         document.getElementById("totalRecipes").innerText = `${totalRecipes} recipes`;
         document.getElementById("totalPrice").innerText = `$${(totalPrice / 100).toFixed(2)}`;
 
-        document.getElementById("removeTransBtn").onclick = ()=>{this.remove()};
+        if(merchant.pos === "none"){
+            document.getElementById("removeTransBtn").onclick = ()=>{this.remove()};
+        }
     },
 
     remove: function(){

部分文件因文件數量過多而無法顯示