Commit 206f5f5a authored by Riri Novita's avatar Riri Novita

check upload monthly pl

parent 71684786
...@@ -281,47 +281,41 @@ export default class ProfitLossMR extends Component { ...@@ -281,47 +281,41 @@ export default class ProfitLossMR extends Component {
api.create().checkUploadMonthlyReportPL(this.state.payload).then(response => { api.create().checkUploadMonthlyReportPL(this.state.payload).then(response => {
// console.log(JSON.stringify(this.state.payload)); // console.log(JSON.stringify(this.state.payload));
console.log(response) console.log(response)
// if (response.data) { if (response.data) {
// if (response.data.status === 'success') { if (response.data.status === 'success') {
// this.setState({ visibleUpload: false, visibleProfitLoss: false, loading: true }) this.setState({ visibleUpload: false, visibleProfitLoss: false, loading: true })
// let dataTable = response.data.data.map((item, index) => { let dataTable = response.data.data.map((item, index) => {
// return [ return [
// item.item_report_id, item.item_report_id,
// item.type_report_id, item.item_report,
// item.item_report, item.type_report_id,
// item.parent, item.formula,
// item.formula, item.level,
// item.level, item.parent,
// item.notes, item.notes,
// item.rolling_outlook, item.rolling_outlook,
// item.master_budget, item.master_budget,
// item.rolling_budget, item.rolling_budget,
// item.actual, item.actual,
// item.ytd_actual, item.ytd_actual,
// item.actual_previous_month, item.actual_previous_month,
// item.amount_act_vs_previous_month, item.mtd_vs_mb,
// item.percent_act_vs_previous_month, item.mtd_vs_rb,
// item.amount_act_vs_mb, item.orders,
// item.percent_act_vs_mb, item.error
// item.amount_act_vs_rb, ]
// item.percent_act_vs_rb, })
// item.mtd_vs_previous_month, this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true }, () => {
// item.mtd_vs_mb, this.state.dataTable.map(item => {
// item.mtd_vs_rb, if (item[16].length > 0) {
// item.orders // console.log('masuk')
// ] this.setState({ buttonError: true, errorPreview: true, editable: true })
// }) }
// this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true }, () => { })
// this.state.dataTable.map(item => { // console.log(this.state.buttonError)
// if (item[24].length > 0) { })
// // console.log('masuk') }
// this.setState({ buttonError: true, errorPreview: true, editable: true }) }
// }
// })
// // console.log(this.state.buttonError)
// })
// }
// }
}) })
} }
......
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