Commit 8278c551 authored by Riri Novita's avatar Riri Novita

salah didam

parent 4b29c39f
......@@ -101,12 +101,14 @@ export default class SubHolding extends Component {
"periode": this.state.periode.periode,
}
api.create().getFullApproveMonthly(payload).then((response) => {
console.log(payload);
console.log(response);
if (response.data) {
if (response.data.status == "success") {
console.log(response.data.data);
let approveMonthly =
this.state.month.month_id == 1?
response.data.data.january.is_approve :
this.state.month.month_id == 1?
response.data.data.januari.is_approve :
this.state.month.month_id == 2?
response.data.data.februari.is_approve :
this.state.month.month_id == 3?
......@@ -3224,7 +3226,8 @@ export default class SubHolding extends Component {
width={this.props.width}
height={this.props.height}
open={this.props.open}
approved={this.state.approveMB && this.state.approveMonthly}
approvedMB={this.state.approveMB}
approveMonthly={this.state.approveMonthly}
type={this.state.report ? this.state.report.value : 1}
dataTable={this.state.dataTable}
periode={this.state.periode ? this.state.periode.periode : null}
......
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