Commit d7f0a3a7 authored by Deni Rinaldi's avatar Deni Rinaldi

MR

parent e55eff62
...@@ -202,13 +202,14 @@ export default class MonthlyReport extends Component { ...@@ -202,13 +202,14 @@ export default class MonthlyReport extends Component {
let payload = { let payload = {
"company_id": this.state.company.company_id, "company_id": this.state.company.company_id,
"periode": this.state.periode.periode, "periode": this.state.periode.periode,
"month": this.state.month.month_id
} }
api.create().getMonthlyReportID(payload).then(response => { api.create().getMonthlyReportID(payload).then(response => {
console.log(response); console.log(response);
if (response.data) { if (response.data) {
if (response.data.status === 'success') { if (response.data.status === 'success') {
this.setState({ this.setState({
monthlyReportId: response.data.data.monthly_report_id monthlyReportId: response.data.data ? response.data.data.monthly_report_id : null
}, ()=> { }, ()=> {
this.getReport() this.getReport()
this.getReportAttachment() this.getReportAttachment()
......
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