rabin 3 년 전
부모
커밋
380a09499d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/factory/assets/pc/html/setGoods.html

+ 2 - 0
app/factory/assets/pc/html/setGoods.html

@@ -381,6 +381,8 @@
             num += goods[i].num;
             num += goods[i].num;
             cash += goods[i].p_price * goods[i].num;
             cash += goods[i].p_price * goods[i].num;
         }
         }
+        num = parseFloat(num).toFixed(2);
+        cash = parseFloat(cash).toFixed(2);
         $(".totalQuantity").html(num);
         $(".totalQuantity").html(num);
         $(".totalMoney").html(cash.toFixed(2)); 
         $(".totalMoney").html(cash.toFixed(2)); 
     }
     }