Commit 2144e144 authored by Riri Novita's avatar Riri Novita

Merge branch 'dev/staging-riri' into 'ENV-STAGING'

locf

See merge request !1944
parents 648fa4f7 1fc4e482
......@@ -1004,22 +1004,22 @@ export default class ListOfCreditFacilities extends Component {
}
this.setState({ loading: true, dataTable: [] })
console.log(body)
// api.create().uploadSimulasiMRLOCF(body).then(response => {
// console.log(response)
// if (response.data) {
// if (response.ok) {
// if (response.data.status === "success") {
// this.props.saveToMonthlyReport('LOCF', "simulasiLOCF")
// } else {
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error', loading: false })
// }
// } else {
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error', loading: false })
// }
// } else {
// this.setState({ alert: true, messageAlert: 'Error saving data. Please try again', tipeAlert: 'error', loading: false })
// }
// })
api.create().uploadSimulasiMRLOCF(body).then(response => {
console.log(response)
if (response.data) {
if (response.ok) {
if (response.data.status === "success") {
this.props.saveToMonthlyReport('LOCF', "simulasiLOCF")
} else {
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error', loading: false })
}
} else {
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error', loading: false })
}
} else {
this.setState({ alert: true, messageAlert: 'Error saving data. Please try again', tipeAlert: 'error', loading: false })
}
})
}
uploadLOCF(type) {
......
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