Commit 310e25f6 authored by Rifka Kurnia's avatar Rifka Kurnia

Merge branch 'rifka' into 'master'

latestup

See merge request !766
parents 3b42c7fd 4ea7657f
......@@ -60,12 +60,14 @@ export default class ProfitLossMR extends Component {
visiblePLMR: true,
// valueThreshold: 0,
minValue: 0,
maxValue: 0
maxValue: 0,
updateBy: '-'
}
}
componentDidMount() {
// this.getItemHierarki()
this.getLatestUpdate()
this.getSettingControl()
}
......@@ -104,6 +106,27 @@ export default class ProfitLossMR extends Component {
})
}
getLatestUpdate() {
let payload = {
"report_id": this.props.report_id,
"revision": Number(this.props.revision),
"periode": this.props.periode,
"company_id": this.props.company.company_id,
"monthly_report_id": this.props.monthlyReportId,
"months": this.props.month.month_id
}
api.create().getLastestUpdateMR(payload).then(response => {
console.log(response)
if (response.data) {
if (response.data.status === "success") {
this.setState({
updateBy: response.data.data.latest_update === null ? '-' : response.data.data.latest_update
})
}
}
})
}
getItemHierarki() {
let payload = {
"report_id": this.props.report_id,
......
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