Commit de644876 authored by Riri Novita's avatar Riri Novita

Issue periode MB

parent 2738daaa
...@@ -552,6 +552,7 @@ export default class BudgetTahunan extends Component { ...@@ -552,6 +552,7 @@ export default class BudgetTahunan extends Component {
options: periodeData, options: periodeData,
getOptionLabel: (option) => option.periode, getOptionLabel: (option) => option.periode,
}; };
// ubah code dibawah ini jika mau mengubah default periode jadi tahun saat ini
let periode = (this.state.lastPeriod == "" ? String(Number(currentYear)) : this.state.lastPeriod) let periode = (this.state.lastPeriod == "" ? String(Number(currentYear)) : this.state.lastPeriod)
let index = data.sort((a, b) => a - b).findIndex((val) => val === periode) let index = data.sort((a, b) => a - b).findIndex((val) => val === periode)
// // console.log(this.props.location.state.rawData) // // console.log(this.props.location.state.rawData)
...@@ -3055,7 +3056,7 @@ export default class BudgetTahunan extends Component { ...@@ -3055,7 +3056,7 @@ export default class BudgetTahunan extends Component {
disabled={this.state.listCompany === null ? true : this.state.intent === 'Home' ? true : false} disabled={this.state.listCompany === null ? true : this.state.intent === 'Home' ? true : false}
onChange={(event, newInputValue) => this.setState({ company: newInputValue }, () => { onChange={(event, newInputValue) => this.setState({ company: newInputValue }, () => {
this.setState({ visibleTableHistory: false }) this.setState({ visibleTableHistory: false })
// this.getLastPeriod() this.getLastPeriod()
this.getCurrency(newInputValue.company_id) this.getCurrency(newInputValue.company_id)
this.getRevision() this.getRevision()
})} })}
......
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