real_value_total

dev_SaaS
hjm 6 years ago
parent 280d1c8d24
commit c174191336

@ -236,10 +236,15 @@ function getTableData(data_args) {
targetValueRowData[`c${courseIndex + 1}`] = course.target_value && course.target_value.toFixed targetValueRowData[`c${courseIndex + 1}`] = course.target_value && course.target_value.toFixed
? course.target_value.toFixed(3) : course.target_value ; ? course.target_value.toFixed(3) : course.target_value ;
target_value_total = target_value_total + targetValueRowData[`c${courseIndex + 1}`] if (course.target_value) {
target_value_total = target_value_total + course.target_value
}
realValueRowData[`c${courseIndex + 1}`] = course.real_value && course.real_value.toFixed realValueRowData[`c${courseIndex + 1}`] = course.real_value && course.real_value.toFixed
? course.real_value.toFixed(3) : course.real_value ; ? course.real_value.toFixed(3) : course.real_value ;
real_value_total = real_value_total + realValueRowData[`c${courseIndex + 1}`] if (course.real_value) {
real_value_total = real_value_total + course.real_value
}
}) })
if (real_value_total >= target_value_total && real_value_total != 0) { if (real_value_total >= target_value_total && real_value_total != 0) {
nameRowData.status = true nameRowData.status = true

Loading…
Cancel
Save