Commit 759fee1f authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'deni-' into 'master'

Deni

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