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

done update

parent c88c2078
...@@ -478,10 +478,10 @@ const create = (type = "") => { ...@@ -478,10 +478,10 @@ const create = (type = "") => {
const deleteDocument = (id) => api.post(`document/delete_document/${id}`) const deleteDocument = (id) => api.post(`document/delete_document/${id}`)
// Monitoring // Monitoring
const getMonitoringMB = (body) => api.get(`transaction/monitoring/master_budget?year=${body.year}`) const getMonitoringMB = (body) => api.get(`transaction/monitoring/master_budget`, body)
const getMonitoringMR = (body) => api.get(`transaction/monitoring/monthly_report/${body.year}/${body.month}`) const getMonitoringMR = (body) => api.get(`transaction/monitoring/monthly_report/${body.year}/${body.month}`)
const getMonitoringRO = (body) => api.get(`transaction/monitoring/rolling_outlook/${body.year}/${body.quarter}`) const getMonitoringRO = (body) => api.get(`transaction/monitoring/rolling_outlook/${body.year}/${body.quarter}`)
const getMonitoringOLPA = (body) => api.get(`transaction/monitoring/outlook_pa?year=${body.year}`) const getMonitoringOLPA = (body) => api.get(`transaction/monitoring/outlook_pa`, body)
// Superadmin Approve // Superadmin Approve
const getListApprover = (report, monthlyReportId) => api.get(`transaction/${report}/get_approver/${monthlyReportId}`) const getListApprover = (report, monthlyReportId) => api.get(`transaction/${report}/get_approver/${monthlyReportId}`)
......
...@@ -326,17 +326,17 @@ export default class BalanceSheetOLPA extends Component { ...@@ -326,17 +326,17 @@ export default class BalanceSheetOLPA extends Component {
console.log(data); console.log(data);
this.setState({ loading: false }) this.setState({ loading: false })
if (type == 'submitted') { if (type == 'submitted') {
this.props.saveToOLPA(payload) this.props.saveToOLPA(payload, 'BS')
let bodyRatioOLPA = { // let bodyRatioOLPA = {
"report": 'ratio', // "report": 'ratio',
"outlookPaId": this.props.outlook_pa_id, // "outlookPaId": this.props.outlook_pa_id,
"companyId": this.props.company.company_id, // "companyId": this.props.company.company_id,
"periode": this.props.periode // "periode": this.props.periode
} // }
api.create().triggerRatioOLPA(bodyRatioOLPA).then((res) => { // api.create().triggerRatioOLPA(bodyRatioOLPA).then((res) => {
console.log(res) // console.log(res)
this.setState({ loading: false }) // this.setState({ loading: false })
}) // })
this.props.onClickClose() this.props.onClickClose()
} else { } else {
this.props.saveToOLPA(payload) this.props.saveToOLPA(payload)
......
This diff is collapsed.
...@@ -374,18 +374,18 @@ export default class BalanceSheetRO extends Component { ...@@ -374,18 +374,18 @@ export default class BalanceSheetRO extends Component {
if (response.data.status === "success") { if (response.data.status === "success") {
if (type == 'submitted') { if (type == 'submitted') {
this.props.onClickClose() this.props.onClickClose()
this.props.refresh() this.props.refresh('BS')
let bodyRatioRO = { // let bodyRatioRO = {
"report": 'ratio', // "report": 'ratio',
"rollingOutlookId": this.props.rollingOutlookID, // "rollingOutlookId": this.props.rollingOutlookID,
"periode": this.props.periode, // "periode": this.props.periode,
"companyId": this.props.company.company_id, // "companyId": this.props.company.company_id,
"quartal": this.props.quarter // "quartal": this.props.quarter
} // }
api.create().triggerRatioRO(bodyRatioRO).then((res) => { // api.create().triggerRatioRO(bodyRatioRO).then((res) => {
console.log(res) // console.log(res)
this.setState({ loading: false }) // this.setState({ loading: false })
}) // })
} else { } else {
this.props.onClickClose() this.props.onClickClose()
this.props.refresh() this.props.refresh()
...@@ -600,18 +600,18 @@ export default class BalanceSheetRO extends Component { ...@@ -600,18 +600,18 @@ export default class BalanceSheetRO extends Component {
if (response.data.status === "success") { if (response.data.status === "success") {
if (type == 'submitted') { if (type == 'submitted') {
this.props.onClickClose() this.props.onClickClose()
this.props.refresh() this.props.refresh('BS')
let bodyRatioRO = { // let bodyRatioRO = {
"report": 'ratio', // "report": 'ratio',
"rollingOutlookId": this.props.rollingOutlookID, // "rollingOutlookId": this.props.rollingOutlookID,
"periode": this.props.periode, // "periode": this.props.periode,
"companyId": this.props.company.company_id, // "companyId": this.props.company.company_id,
"quartal": this.props.quarter // "quartal": this.props.quarter
} // }
api.create().triggerRatioRO(bodyRatioRO).then((res) => { // api.create().triggerRatioRO(bodyRatioRO).then((res) => {
console.log(res) // console.log(res)
this.setState({ loading: false }) // this.setState({ loading: false })
}) // })
} else { } else {
this.props.onClickClose() this.props.onClickClose()
this.props.refresh() this.props.refresh()
......
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