Commit 4aa4f670 authored by d.arizona's avatar d.arizona

update locf iue

parent 0db3ee75
...@@ -1372,7 +1372,7 @@ export default class ListOfCreditFacilities extends Component { ...@@ -1372,7 +1372,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(dataGabung) // console.log(dataGabung)
console.log(newData) console.log(newData)
// console.log(dataTampungBank) // console.log(dataTampungBank)
console.log(totalLoan); console.log(Number(totalLoan).toFixed(1));
console.log(this.state.perBS) console.log(this.state.perBS)
console.log(this.state.diff) console.log(this.state.diff)
// console.log(bankNameEmpty) // console.log(bankNameEmpty)
...@@ -1385,9 +1385,12 @@ export default class ListOfCreditFacilities extends Component { ...@@ -1385,9 +1385,12 @@ export default class ListOfCreditFacilities extends Component {
} }
} else { } else {
if (this.state.get_for == 'view') { if (this.state.get_for == 'view') {
this.setState({ loading: false, dataTable: newData, diff: this.state.diff == null? "0.0" : Number(totalLoan - this.state.perBS).toFixed(1), perBS: this.state.totalOutStand == null? "0.0" : this.state.totalOutStand }) this.setState({ loading: false, dataTable: newData, diff: this.state.diff == null? "0.0" : Number(Number(totalLoan).toFixed(1) - this.state.perBS).toFixed(1), perBS: this.state.totalOutStand == null? "0.0" : this.state.totalOutStand })
} else { } else {
this.setState({ loading: false, dataTable: newData, diff: Number(totalLoan - this.state.perBS).toFixed(1), saveDraft: false, saveComp: Number(totalLoan - this.state.perBS) == 0? false : true }) this.setState({ loading: false, dataTable: newData, diff: Number(Number(totalLoan).toFixed(1) - this.state.perBS).toFixed(1), saveDraft: false, saveComp: Number(Number(totalLoan).toFixed(1) - this.state.perBS) == 0 || Number(Number(totalLoan).toFixed(1) - this.state.perBS) == "-0.0"? false : true }, () => {
// alert(this.state.saveComp)
// console.log(Number(Number(totalLoan).toFixed(1) - this.state.perBS));
})
} }
} }
......
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