Commit 1e077ccc authored by r.kurnia's avatar r.kurnia

Merge branch 'master' of http://103.44.149.204/d.arizona/tia-dev into rifka

parents a3d4ffa9 c76e83f7
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -851,8 +851,14 @@ export default class ProfitLossMR extends Component { ...@@ -851,8 +851,14 @@ export default class ProfitLossMR extends Component {
} }
}) })
dataTable2[tableMeta.rowIndex][11] = Number(total).toFixed(1) if (String(tableMeta.rowData[5]).toLocaleLowerCase() == "sales price") {
return total let value = Number(dataTable2[tableMeta.rowIndex - 2][11]) / Number(dataTable2[tableMeta.rowIndex - 1][11])
dataTable2[tableMeta.rowIndex][11] = R.equals(value, NaN) ? "0.0" : (R.equals(value, Infinity) ? "0.0" : (value == "-Infinity" ? "0.0" : value))
return R.equals(value, NaN) ? "0.0" : (R.equals(value, Infinity) ? "0.0" : (value == "-Infinity" ? "0.0" : value))
} else {
dataTable2[tableMeta.rowIndex][11] = Number(total).toFixed(1)
return total
}
} }
let columns = [ let columns = [
......
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