Commit 9097b3a5 authored by Riri Novita's avatar Riri Novita

Merge branch 'ENV-DEV' into 'ENV-DEPLOYMENT'

Workaround MB

See merge request !1674
parents a373e53e 2e381d30
......@@ -230,6 +230,7 @@ export default class BudgetTahunan extends Component {
}
this.setState({ listCompany: defaultProps, company: indexID == null ? (this.state.company !== null ? this.state.company : companyData[0]) : companyData[indexID] }, () => {
// this.setState({ listCompany: defaultProps, company: indexID == null ? companyData[0] : companyData[indexID] }, () => {
// // // console.log(response.data.data);
if (response.data.data.length > 0) {
this.getRevision()
......@@ -282,6 +283,7 @@ export default class BudgetTahunan extends Component {
"periode": this.state.periode.periode,
"report_type": "Master Budget",
}
console.log(payload);
api.create().getReportTypeBody(payload).then(response => {
console.log(response);
if (response.data) {
......@@ -343,7 +345,7 @@ export default class BudgetTahunan extends Component {
"periode": this.state.periode.periode
}
api.create().getSubmitMasterBudget(body).then(response => {
// // // console.log(response);
console.log(response);
if (response.data) {
if (response.data.status === "success") {
this.setState({ isSubmit: response.data.data.is_can_submit }, () => {
......@@ -2661,8 +2663,8 @@ export default class BudgetTahunan extends Component {
disabled={this.state.listCompany === null ? true : this.state.intent === 'Home' ? true : false}
onChange={(event, newInputValue) => this.setState({ company: newInputValue }, () => {
this.setState({ visibleTableHistory: false })
this.getLastPeriod()
// this.getRevision()
// this.getLastPeriod()
this.getRevision()
})}
disableClearable
style={{ width: 250 }}
......
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