Commit 90b2a18c authored by Dida Adams Arizona's avatar Dida Adams Arizona

Merge branch 'GGMAC' into 'master'

Ggmac

See merge request !1126
parents e45a6202 c5f32115
......@@ -1372,7 +1372,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(dataGabung)
console.log(newData)
// console.log(dataTampungBank)
console.log(totalLoan);
console.log(Number(totalLoan).toFixed(1));
console.log(this.state.perBS)
console.log(this.state.diff)
// console.log(bankNameEmpty)
......@@ -1385,9 +1385,12 @@ export default class ListOfCreditFacilities extends Component {
}
} else {
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 {
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