Commit b8358a3b authored by Dida Adams Arizona's avatar Dida Adams Arizona

Merge branch 'riri' into 'master'

handle total pl

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