Commit 2026af0f authored by Rifka Kurnia's avatar Rifka Kurnia

Merge branch 'rifka' into 'master'

push index fr summary

See merge request !1030
parents 42787e27 b93d186b
...@@ -247,6 +247,10 @@ const create = (type = "") => { ...@@ -247,6 +247,10 @@ const create = (type = "") => {
const getReportCFSumaMB = (body) => api.post('/transaction/summary_cash_flow/master_budget/get_report_hierarki', body) const getReportCFSumaMB = (body) => api.post('/transaction/summary_cash_flow/master_budget/get_report_hierarki', body)
const getReportCFSumaMR = (body) => api.post('/transaction/summary_cash_flow/monthly_report/get_report_hierarki', body) const getReportCFSumaMR = (body) => api.post('/transaction/summary_cash_flow/monthly_report/get_report_hierarki', body)
const getReportCFSuma = (body) => api.post('/transaction/summary_cash_flow/summary/get_report_hierarki', body) const getReportCFSuma = (body) => api.post('/transaction/summary_cash_flow/summary/get_report_hierarki', body)
const getReportFRMB = (body) => api.post('/transaction/summary_ratio/master_budget/get_report_hierarki', body)
const getReportFRMR = (body) => api.post('/transaction/summary_ratio/monthly_report/get_report_hierarki', body)
const getReportFRLastMR = (body) => api.post('/transaction/summary_ratio/monthly_report_last_year/get_report_hierarki', body)
//CASH FLOW //CASH FLOW
const getDetailReportCF = (body) => api.post('/transaction/cash_flow/master_budget/get_report_hierarki', body) const getDetailReportCF = (body) => api.post('/transaction/cash_flow/master_budget/get_report_hierarki', body)
...@@ -602,7 +606,10 @@ const create = (type = "") => { ...@@ -602,7 +606,10 @@ const create = (type = "") => {
getReportCFSumaMB, getReportCFSumaMB,
getReportCFSumaMR, getReportCFSumaMR,
createReportCF, createReportCF,
getReportCFSuma getReportCFSuma,
getReportFRMB,
getReportFRMR,
getReportFRLastMR
} }
} }
......
...@@ -1365,9 +1365,10 @@ export default class SubHolding extends Component { ...@@ -1365,9 +1365,10 @@ export default class SubHolding extends Component {
this.setState({ previewTable: true, loading: false, previewDownload: false }) this.setState({ previewTable: true, loading: false, previewDownload: false })
}) })
} else if (this.state.report.value === 9) { } else if (this.state.report.value === 9) {
api.create().getReportHierarkiFRMB(payload).then(response => { let paylodFR = {...payload, months: this.state.month.month_id}
// console.log(payload); api.create().getReportFRMB(paylodFR).then(response => {
// console.log(response); console.log(payload);
console.log(response);
// let dataTable = [] // let dataTable = []
// if (response.data) { // if (response.data) {
// if (response.data.status === 'success') { // if (response.data.status === 'success') {
...@@ -1489,7 +1490,7 @@ export default class SubHolding extends Component { ...@@ -1489,7 +1490,7 @@ export default class SubHolding extends Component {
// } else { // } else {
// this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error', loading: false }) // this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error', loading: false })
// } // }
this.setState({ previewTable: true, loading: false, previewDownload: false }) this.setState({ previewTable: true, loading: false, previewDownload: true })
}) })
} }
......
...@@ -15774,7 +15774,7 @@ export default class TableSubHolding extends Component { ...@@ -15774,7 +15774,7 @@ export default class TableSubHolding extends Component {
), ),
setCellProps: () => ({ style2 }), setCellProps: () => ({ style2 }),
customBodyRender: (value, tableMeta, updateValue) => { customBodyRender: (value, tableMeta, updateValue) => {
console.log(tableMeta) // console.log(tableMeta)
return ( return (
<div> <div>
<div className="grid grid-2x content-center"> <div className="grid grid-2x content-center">
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