Commit 58d3c587 authored by Rifka Kurnia's avatar Rifka Kurnia

Merge branch 'rifka' into 'master'

olpa cat

See merge request !1454
parents b72caffb c0c29e88
...@@ -367,6 +367,7 @@ const create = (type = "") => { ...@@ -367,6 +367,7 @@ const create = (type = "") => {
const getHierarkiDBPLRO = (body) => api.post('transaction/db_profit_loss/rolling_outlook/get_report_hierarki', body) const getHierarkiDBPLRO = (body) => api.post('transaction/db_profit_loss/rolling_outlook/get_report_hierarki', body)
const createDBPLRO = (body) => api.post('transaction/db_profit_loss/rolling_outlook/create_rolling_outlook', body) const createDBPLRO = (body) => api.post('transaction/db_profit_loss/rolling_outlook/create_rolling_outlook', body)
const getDetailReportOLPACAT = (body) => api.post('transaction/cat/outlook_pa/get_report_hierarki', body) const getDetailReportOLPACAT = (body) => api.post('transaction/cat/outlook_pa/get_report_hierarki', body)
const createCATOLPA = (body) => api.post('transaction/cat/outlook_pa/create_outlook_pa', body)
// Monthly // Monthly
const getMonthlyReport = (body) => api.post('transaction/monthly_report/get_all_report', body) const getMonthlyReport = (body) => api.post('transaction/monthly_report/get_all_report', body)
...@@ -804,7 +805,8 @@ const create = (type = "") => { ...@@ -804,7 +805,8 @@ const create = (type = "") => {
createDBPLOLPA, createDBPLOLPA,
getHierarkiDBPLRO, getHierarkiDBPLRO,
createDBPLRO, createDBPLRO,
getDetailReportOLPACAT getDetailReportOLPACAT,
createCATOLPA
} }
} }
......
...@@ -226,9 +226,9 @@ export default class OutlookPA extends Component { ...@@ -226,9 +226,9 @@ export default class OutlookPA extends Component {
item.revision item.revision
] ]
}) })
dataTable.push([ // dataTable.push([
5, "Corporate Annual Target", 0, "not-yet", 39, false, 0 // 5, "Corporate Annual Target", 0, "not-yet", 39, false, 0
]) // ])
let dataTableRevision = response.data.data.map((item, index) => { let dataTableRevision = response.data.data.map((item, index) => {
return [ return [
item.report_id, item.report_id,
...@@ -615,7 +615,8 @@ export default class OutlookPA extends Component { ...@@ -615,7 +615,8 @@ export default class OutlookPA extends Component {
visibleCF: true, visibleCF: true,
visibleCAT: false visibleCAT: false
}) })
} else if (item === 'Corporate Annual Target') { // } else if (item === 'Corporate Annual Target') {
} else if (item === 'CAT') {
this.setState({ this.setState({
visibleOutlookPA: false, visibleOutlookPA: false,
visibleBS: false, visibleBS: false,
...@@ -1365,7 +1366,7 @@ export default class OutlookPA extends Component { ...@@ -1365,7 +1366,7 @@ export default class OutlookPA extends Component {
name: "Action", name: "Action",
options: { options: {
customBodyRender: (val, tableMeta) => { customBodyRender: (val, tableMeta) => {
console.log(tableMeta) // console.log(tableMeta)
return ( return (
<div style={{ display: 'flex' }}> <div style={{ display: 'flex' }}>
<button <button
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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