Commit 7a400996 authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'riri' into 'master'

NaN

See merge request !412
parents 63f4c28d 1489e3fc
......@@ -499,9 +499,9 @@ export default class ProfitLoss extends Component {
}
})
if (String(tableMeta.rowData[5]).toLocaleLowerCase() == "sales price") {
dataTable2[tableMeta.rowIndex][20] = Number(dataTable2[tableMeta.rowIndex - 2][20]) / Number(dataTable2[tableMeta.rowIndex - 1][20])
let value = Number(dataTable2[tableMeta.rowIndex - 2][20]) / Number(dataTable2[tableMeta.rowIndex - 1][20])
return value
dataTable2[tableMeta.rowIndex][20] = R.equals(value, NaN) ? "0.0" : value
return R.equals(value, NaN) ? "0.0" : value
} else {
dataTable2[tableMeta.rowIndex][20] = total
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment