Commit 408e1f6f authored by d.arizona's avatar d.arizona

ganti arpin

parent 5235ad91
...@@ -224,6 +224,9 @@ const create = (type = "") => { ...@@ -224,6 +224,9 @@ const create = (type = "") => {
const getLastestUpdateOI = (body) => api.post('transaction/operating_indicator/get_latest_update', body) const getLastestUpdateOI = (body) => api.post('transaction/operating_indicator/get_latest_update', body)
const getLastPeriodeOI = (idCompany) => api.post(`transaction/master_budget/get_last_periode/${idCompany}`) const getLastPeriodeOI = (idCompany) => api.post(`transaction/master_budget/get_last_periode/${idCompany}`)
//CASH FLOW
const getDetailReportCF = (body) => api.post('/transaction/cash_flow/get_report_hierarki', body)
//OUTLOOK PA //OUTLOOK PA
const getOutlookPAID = (body) => api.post('transaction/outlook_pa/get_outlook_pa_id', body) const getOutlookPAID = (body) => api.post('transaction/outlook_pa/get_outlook_pa_id', body)
const getLastPeriodOLPA = (idCompany) => api.get(`/transaction/outlook_pa/get_last_periode/${idCompany}`) const getLastPeriodOLPA = (idCompany) => api.get(`/transaction/outlook_pa/get_last_periode/${idCompany}`)
...@@ -425,7 +428,8 @@ const create = (type = "") => { ...@@ -425,7 +428,8 @@ const create = (type = "") => {
getLastPeriodeOI, getLastPeriodeOI,
getSubmitOI, getSubmitOI,
getLastPeriodOI, getLastPeriodOI,
getDashboardUser getDashboardUser,
getDetailReportCF
} }
} }
......
...@@ -54,7 +54,7 @@ export default class CashFlow extends Component { ...@@ -54,7 +54,7 @@ export default class CashFlow extends Component {
"submission_id": this.props.submissionID "submission_id": this.props.submissionID
} }
// console.log(JSON.stringify(payload)) // console.log(JSON.stringify(payload))
api.create().getDetailReportMB(payload).then(response => { api.create().getDetailReportCF(payload).then(response => {
let dataTable = [] let dataTable = []
console.log(response) console.log(response)
let res = response.data.data let res = response.data.data
...@@ -158,9 +158,9 @@ export default class CashFlow extends Component { ...@@ -158,9 +158,9 @@ export default class CashFlow extends Component {
// console.log(splitFormula) // console.log(splitFormula)
// console.log(baru) // console.log(baru)
// } // }
// console.log(baru) console.log(baru)
baru.map((item, index) => { baru.map((item, index) => {
if (item == '-' || item == '+' || item == '/' || item == '*') { if (item == '-' || item == '+' || item == '/' || item == '*'|| item == '(' || item == ')') {
anjay.push(item) anjay.push(item)
} else { } else {
if (String(item).includes('#')) { if (String(item).includes('#')) {
...@@ -239,9 +239,9 @@ export default class CashFlow extends Component { ...@@ -239,9 +239,9 @@ export default class CashFlow extends Component {
// console.log(dataTable2[tableMeta.rowIndex][22]) // console.log(dataTable2[tableMeta.rowIndex][22])
// console.log(tableMeta.rowData[5]) // console.log(tableMeta.rowData[5])
// if (tableMeta.rowData[5] == 'Beginning Balance') { // if (tableMeta.rowData[5] == 'Beginning Balance') {
console.log(baru) // console.log(baru)
console.log(anjay) // console.log(anjay)
console.log(total) // console.log(total)
// } // }
// if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex].value == undefined) { // if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex].value == undefined) {
......
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