DuGuYang %!s(int64=3) %!d(string=hai) anos
pai
achega
fe4fb3f720
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
             chargeAmount = (totalAmount / count).toFixed(2);
             leave = (totalAmount - (chargeAmount * count)).toFixed(2);
             leave = (totalAmount - (chargeAmount * count)).toFixed(2);
             console.log(leave);
             console.log(leave);
-            leaveAmount = chargeAmount + leave;
+            leaveAmount = Number(chargeAmount) + Number(leave);
             console.log(leaveAmount);
             console.log(leaveAmount);
             num = 0;
             num = 0;
             nums = 0;
             nums = 0;