Commit a8a9582a authored by d.arizona's avatar d.arizona

create db profitlos olPA

parent 40940c40
......@@ -361,6 +361,8 @@ const create = (type = "") => {
const createPeriodeRevisionOLPA = (body) => api.post('transaction/outlook_pa/create_periode_revision', body)
const getHierarkiCFOLPA = (body) => api.post('transaction/cash_flow/outlook_pa/get_report_hierarki', body)
const createCFOLPA = (body) => api.post ('transaction/cash_flow/outlook_pa/create_outlook_report', body)
const getHierarkiDBPLOLPA = (body) => api.post('transaction/db_profit_loss/outlook_pa/get_report_hierarki', body)
const createDBPLOLPA = (body) => api.post('transaction/db_profit_loss/outlook_pa/create_outlook_report', body)
// Monthly
const getMonthlyReport = (body) => api.post('transaction/monthly_report/get_all_report', body)
......@@ -792,7 +794,9 @@ const create = (type = "") => {
getRollingOutlookCF,
createRollingOutlookCF,
getHierarkiCFOLPA,
createCFOLPA
createCFOLPA,
getHierarkiDBPLOLPA,
createDBPLOLPA
}
}
......
This diff is collapsed.
......@@ -318,7 +318,11 @@ export default class ProfitLossOLPA extends Component {
}
console.log(data);
this.setState({ loading: false })
if (type == 'submitted') {
this.props.saveToOLPA(payload, 'PL')
} else {
this.props.saveToOLPA(payload)
}
this.props.onClickClose()
}
......@@ -474,7 +478,11 @@ export default class ProfitLossOLPA extends Component {
if (response.data) {
if (response.data.status === "success") {
this.props.onClickClose()
if (type == 'submitted') {
this.props.getReport('PL')
} else {
this.props.getReport()
}
} else {
alert(response.data.status)
}
......
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