Commit 92eabcd1 authored by EKSAD's avatar EKSAD

handle total pl

parent 3ec76a6a
......@@ -459,12 +459,12 @@ export default class ProfitLoss extends Component {
const handleTotal = (tableMeta) => {
let total = 0
dataTable2[tableMeta.rowIndex].map((item, index) => {
if (index >= 7 && index <= 18) {
if (index >= 8 && index <= 19) {
let valItem = item == undefined || item == "" ? 0 : item
total += Number(valItem)
}
})
dataTable2[tableMeta.rowIndex][19] = total
dataTable2[tableMeta.rowIndex][20] = total
return total
// console.log(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