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

update euy

parent 22cad9d6
......@@ -538,7 +538,7 @@ export default class BudgetTahunan extends Component {
this.getCashFlow(type)
this.getPL(type)
}
this.getFR(type)
// this.getFR(type)
api.create().checkApprover().then(response => {
// // console.log(this.state.btncreate);
// // console.log(this.state.btnedit)
......@@ -1066,12 +1066,12 @@ export default class BudgetTahunan extends Component {
// if (this.state.submissionID != null) {
// this.createCashFlow()
// }
if (type != undefined) {
if (type == 'BS' || type == 'FAM' || type == 'PL') {
// if (type != undefined) {
// if (type == 'BS' || type == 'FAM' || type == 'PL') {
console.log('tarik sis')
this.createCashFlow()
}
}
// }
// }
})
}
......@@ -1563,12 +1563,12 @@ export default class BudgetTahunan extends Component {
// if (this.state.submissionID != null) {
// this.createDBPL()
// }
if (type != undefined) {
if (type == 'PL') {
// if (type != undefined) {
// if (type == 'PL') {
console.log('tarik sis')
this.createDBPL()
}
}
// }
// }
})
}
......
......@@ -11,6 +11,7 @@ import Constant from '../../library/Constant';
import { format } from 'date-fns';
import { PropagateLoader } from 'react-spinners';
import ReactECharts from 'echarts-for-react';
import { FormatListNumberedRtlOutlined } from '@material-ui/icons';
const Alert = withStyles({
})((props) => <MuiAlert elevation={6} variant="filled" {...props} />);
......@@ -64,16 +65,19 @@ export default class DashboardFinancial extends React.Component {
mrRev: [],
minRev: 0,
maxRev: 0,
intervalRev: 0,
companyTPAT: [],
mbTPAT: [],
mrTPAT: [],
minTPAT: 0,
maxTPAT: 0,
intervalTPAT: 0,
companyEBITDA: [],
mbEBITDA: [],
mrEBITDA: [],
minEBITDA: 0,
maxEBITDA: 0,
intervalEBITDA: 0,
data: [
],
};
......@@ -394,18 +398,21 @@ export default class DashboardFinancial extends React.Component {
let mrRev = []
let maxRev = response.revenue.vertical_pointing[0]
let minRev = response.revenue.vertical_pointing[1]
let intervalRev = Number(response.revenue.interval)
let companyTPAT = []
let mbTPAT = []
let mrTPAT = []
let maxTPAT = response.tpat.vertical_pointing[0]
let minTPAT = response.tpat.vertical_pointing[1]
let intervalTPAT = Number(response.tpat.interval)
let companyEBITDA = []
let mbEBITDA = []
let mrEBITDA = []
let maxEBITDA = response.ebitda.vertical_pointing[0]
let minEBITDA = response.ebitda.vertical_pointing[1]
let intervalEBITDA = Number(response.ebitda.interval)
response.revenue.nodes.map((item,index) => {
if (this.state.report.value == 'summary') {
......@@ -452,11 +459,10 @@ export default class DashboardFinancial extends React.Component {
"MBColor": "hsl(212, 64%, 46%)",
"MR": item.value_mr,
"MRColor": "hsl(212, 78%, 62%)",
})
})
}
this.setState({companyRev, mbRev, mrRev, minRev, maxRev, companyTPAT, mbTPAT, mrTPAT, minTPAT, maxTPAT, companyEBITDA, mbEBITDA, mrEBITDA, minEBITDA, maxEBITDA}, () => {
this.setState({companyRev, mbRev, mrRev, minRev, maxRev, intervalRev, companyTPAT, mbTPAT, mrTPAT, minTPAT, maxTPAT, intervalTPAT, companyEBITDA, mbEBITDA, mrEBITDA, minEBITDA, maxEBITDA, intervalEBITDA}, () => {
console.log(companyTPAT)
this.setState({loading: false})
})
......@@ -675,7 +681,7 @@ export default class DashboardFinancial extends React.Component {
name: '(Rp bn)',
min: this.state.minRev,
max: this.state.maxRev,
interval: 1000
interval: this.state.intervalRev
}
] :
[
......@@ -684,7 +690,7 @@ export default class DashboardFinancial extends React.Component {
name: '(Rp bn)',
min: this.state.minRev,
max: this.state.maxRev,
interval: 1000
interval: this.state.intervalRev
},
{
type: 'value',
......@@ -767,7 +773,7 @@ export default class DashboardFinancial extends React.Component {
name: '(Rp bn)',
min: this.state.minTPAT,
max: this.state.maxTPAT,
interval: 1000
interval: this.state.intervalTPAT
}
] :
[
......@@ -776,7 +782,7 @@ export default class DashboardFinancial extends React.Component {
name: '(Rp bn)',
min: this.state.minTPAT,
max: this.state.maxTPAT,
interval: 1000
interval: this.state.intervalTPAT
},
{
type: 'value',
......@@ -933,7 +939,7 @@ export default class DashboardFinancial extends React.Component {
name: '(Rp bn)',
min: this.state.minEBITDA,
max: this.state.maxEBITDA,
interval: 1000
interval: this.state.intervalEBITDA
}
] :
[
......@@ -942,7 +948,7 @@ export default class DashboardFinancial extends React.Component {
name: '(Rp bn)',
min: this.state.minEBITDA,
max: this.state.maxEBITDA,
interval: 1000
interval: this.state.intervalEBITDA
},
{
type: 'value',
......
......@@ -627,7 +627,7 @@ export default class MonthlyReport extends Component {
this.getLatestPeriodSubmit()
this.getCashFlow(type)
this.getPL(type)
this.getFR(type)
// this.getFR(type)
// this.getReport()
// this.getReportAttachment()
api.create().checkApproverMonthly().then(response => {
......@@ -1361,12 +1361,12 @@ export default class MonthlyReport extends Component {
// console.log(listCF)
this.setState({dbCF: listCF} , () => {
if (type != undefined) {
if (type == 'BS' || type == 'FAM' || type == 'PL') {
// if (type != undefined) {
// if (type == 'BS' || type == 'FAM' || type == 'PL') {
console.log('tarik sis')
this.createCashFlow()
}
}
// }
// }
})
}
......@@ -1785,12 +1785,12 @@ export default class MonthlyReport extends Component {
console.log(listPL)
this.setState({dbPL: listPL} , () => {
if (type != undefined) {
if ( type == 'PL') {
// if (type != undefined) {
// if ( type == 'PL') {
console.log('tarik sis')
this.createPL()
}
}
// }
// }
})
}
......
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