金額整數

This commit is contained in:
b110212000 2021-09-11 19:52:55 +08:00
parent 33737b7919
commit 8ff0a3f6c7

View File

@ -927,7 +927,7 @@
sta += "<td>" + Number(inverter.irradiance) + "</td>";
sta += "<td>" + Number(inverter.temperature) + "</td>";
if (showmoney == 1) {
sta += "<td>" + Number(inverter.hourmoney) + "</td>";
sta += "<td>" + Math.round(Number(inverter.hourmoney)) + "</td>";
}
sta += "</tr>";
thour = inverter.tothour ? inverter.tothour.toFixed(2) : 0;
@ -955,8 +955,8 @@
stb += "<td>" + tpr + "</td>";
stb += "<td>" + tkwh + "</td>";
if (showmoney == 1) {
stb += "<td>" + ntd + "</td>";
stb += "<td>" + ntdone + "</td>";
stb += "<td>" + Math.round(ntd) + "</td>";
stb += "<td>" + Math.round(ntdone) + "</td>";
}
stb += "</tr>";
@ -991,11 +991,11 @@
sta += "<td>" + inverter.dayKWHp + "</td>";
sta += "<td>" + inverter.tothour + "</td>";
sta += "<td>" + inverter.KWHKWP + "</td>";
sta += "<td>" + inverter.PR + "</td>";
sta += "<td>" + inverter.PR.toFixed(2) + "</td>";
sta += "<td>" + inverter.irradiance + "</td>";
sta += "<td>" + inverter.temperature + "</td>";
if (showmoney == 1) {
sta += "<td>" + inverter.soldmoney + "</td>";
sta += "<td>" + Math.round(inverter.soldmoney) + "</td>";
}
sta += "</tr>";
avghour += inverter.tothour ? inverter.tothour : 0;
@ -1045,7 +1045,7 @@
stb += "<td>" + (avgdayKWH / monthday).toFixed(2) + "</td>";
stb += "<td>" + monthKWH + "</td>";
if (showmoney == 1) {
stb += "<td>" + monthmoney + "</td>";
stb += "<td>" + Math.round(monthmoney) + "</td>";
stb += "<td>" + Math.round(monthmoneyone / monthday) + "</td>";
}
stb += "<td>" + monthday + "</td>";
@ -1111,11 +1111,11 @@
sta += "<td>" + inverter.dayKWHp + "</td>";
sta += "<td>" + inverter.tothour + "</td>";
sta += "<td>" + inverter.KWHKWP + "</td>";
sta += "<td>" + inverter.PR + "</td>";
sta += "<td>" + inverter.PR.toFixed(2) + "</td>";
sta += "<td>" + inverter.irradiance + "</td>";
sta += "<td>" + inverter.temperature + "</td>";
if (showmoney == 1) {
sta += "<td>" + inverter.soldmoney + "</td>";
sta += "<td>" + Math.round(inverter.soldmoney) + "</td>";
}
sta += "</tr>";
avghour += inverter.tothour ? inverter.tothour : 0;
@ -1165,7 +1165,7 @@
stb += "<td>" + (avgdayKWH / monthday).toFixed(2) + "</td>";
stb += "<td>" + monthKWH + "</td>";
if (showmoney == 1) {
stb += "<td>" + monthmoney + "</td>";
stb += "<td>" + Math.round(monthmoney) + "</td>";
stb += "<td>" + Math.round(monthmoneyone / monthday) + "</td>";
}
stb += "<td>" + monthday + "</td>";