Commit f5eef496 authored by Rifka Kurnia's avatar Rifka Kurnia

Merge branch 'rifka' into 'master'

hapus yg tidak perlu

See merge request !742
parents 24f26ea8 df6f4207
...@@ -55,7 +55,6 @@ export default class TaxPlanningMR extends Component { ...@@ -55,7 +55,6 @@ export default class TaxPlanningMR extends Component {
saveDraft: true saveDraft: true
} }
this.handleValue = this.handleValue.bind(this)
this.fileHandler = this.fileHandler.bind(this); this.fileHandler = this.fileHandler.bind(this);
} }
...@@ -200,19 +199,6 @@ export default class TaxPlanningMR extends Component { ...@@ -200,19 +199,6 @@ export default class TaxPlanningMR extends Component {
}) })
} }
handleValue(data) {
let total = 0
this.state.dataTable.map((item, index) => {
if (data.rowData[4] == item[5]) {
total = item[data.columnIndex] == undefined ? (Number(total) + 0) : (Number(total) + Number(item[data.columnIndex]))
}
})
let indexParent = this.state.dataTable.findIndex((val) => val[4] === this.state.dataTable[data.rowIndex][5])
let a = this.state.dataTable[data.rowIndex][data.columnIndex] = total
// console.log(indexParent);
return a
}
handleChange(value, tableMeta) { handleChange(value, tableMeta) {
let val = String(value).split(",").join("") let val = String(value).split(",").join("")
let data = this.state.dataTable let data = this.state.dataTable
......
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