DuGuYang пре 3 година
родитељ
комит
fe4fb3f720
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Areas/Admin/Views/MainServer/ToChargeByStage/Add.cshtml

+ 1 - 1
Areas/Admin/Views/MainServer/ToChargeByStage/Add.cshtml

@@ -117,7 +117,7 @@
             chargeAmount = (totalAmount / count).toFixed(2);
             leave = (totalAmount - (chargeAmount * count)).toFixed(2);
             console.log(leave);
-            leaveAmount = chargeAmount + leave;
+            leaveAmount = Number(chargeAmount) + Number(leave);
             console.log(leaveAmount);
             num = 0;
             nums = 0;