Commit 98369b2d authored by d.arizona's avatar d.arizona

update trigger historical ratio from locf MR

parent d5c9c667
...@@ -448,6 +448,7 @@ const create = (type = "") => { ...@@ -448,6 +448,7 @@ const create = (type = "") => {
const triggerRatioMB = (body) => api.get(`/transaction/cronjob/create_master_budget_company/${body.report}/${body.submissionId}/${body.companyId}/${body.periode}`) const triggerRatioMB = (body) => api.get(`/transaction/cronjob/create_master_budget_company/${body.report}/${body.submissionId}/${body.companyId}/${body.periode}`)
const triggerRatioRO = (body) => api.get(`/transaction/cronjob/create_rolling_outlook_company/${body.report}/${body.rollingOutlookId}/${body.companyId}/${body.quartal}/${body.periode}`) const triggerRatioRO = (body) => api.get(`/transaction/cronjob/create_rolling_outlook_company/${body.report}/${body.rollingOutlookId}/${body.companyId}/${body.quartal}/${body.periode}`)
const triggerRatioOLPA = (body) => api.get(`/transaction/cronjob/create_outlook_pa_company/${body.report}/${body.outlookPaId}/${body.companyId}/${body.periode}`) const triggerRatioOLPA = (body) => api.get(`/transaction/cronjob/create_outlook_pa_company/${body.report}/${body.outlookPaId}/${body.companyId}/${body.periode}`)
const triggerHistoricalRatio = (body) => api.get(`/transaction/cronjob/create_historical_company/${body.report}/${body.companyId}/${body.periode}`)
// MonthlyPL // MonthlyPL
// const getHierarkiMontlyReportPL = (body) => api.post('transaction/monthly_report_pl/get_report_hierarki', body) // const getHierarkiMontlyReportPL = (body) => api.post('transaction/monthly_report_pl/get_report_hierarki', body)
...@@ -835,7 +836,8 @@ const create = (type = "") => { ...@@ -835,7 +836,8 @@ const create = (type = "") => {
getMonitoringRO, getMonitoringRO,
getMonitoringOLPA, getMonitoringOLPA,
getListApprover, getListApprover,
getIdToken getIdToken,
triggerHistoricalRatio
} }
} }
......
...@@ -657,7 +657,7 @@ export default class MonthlyReport extends Component { ...@@ -657,7 +657,7 @@ export default class MonthlyReport extends Component {
"companyId": this.state.company.company_id, "companyId": this.state.company.company_id,
"months": this.state.month.month_id "months": this.state.month.month_id
} }
api.create().triggerRatioFromLOCF(bodyRatioLocf).then((res) => { api.create().triggerHistoricalRatio(bodyRatioLocf).then((res) => {
console.log(res) console.log(res)
this.setState({ loading: false }) this.setState({ loading: false })
}) })
......
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