Commit e79b130d authored by r.kurnia's avatar r.kurnia

latest update

parent 184c4ff8
......@@ -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