Commit 91ee0ec2 authored by Riri Novita's avatar Riri Novita

Issue Subco

parent ce71d106
......@@ -4327,10 +4327,9 @@ export default class SubHolding extends Component {
id="periode"
onChange={(event, newInputValue) => this.setState({ periode: newInputValue, loading: true, previewTable: false }, () => {
let tahun = Number(this.state.periode.periode)
console.log(newInputValue);
console.log(newInputValue.id);
let bizpar = tahun >= 2024 && defaultCurrencyID == 2 && newInputValue.id == 1 ? defaultReport.filter(e => e.report === 2) : defaultReport
this.setState({ report: bizpar[0], reportType: bizpar })
this.getCurrency(this.state.company.company_id)
this.getReportType()
})}
disabled={this.state.intent === 'Home' ? true : false}
......@@ -4351,7 +4350,6 @@ export default class SubHolding extends Component {
this.getReportType()
this.getCurrency(newInputValue.company_id)
let tahun = Number(this.state.periode.periode)
console.log(tahun);
let bizpar = tahun >= 2024 && defaultCurrencyID == 2 && newInputValue.id == 1 ? defaultReport.filter(e => e.report === 2) : defaultReport
this.setState({ report: bizpar[0], reportType: bizpar })
})}
......@@ -4393,7 +4391,6 @@ export default class SubHolding extends Component {
// console.log("report 2");
// }
let tahun = Number(this.state.periode.periode)
console.log(tahun);
let bizpar = tahun >= 2024 && defaultCurrencyID == 2 && newInputValue.id == 1 ? defaultReport.filter(e => e.report === 2) : defaultReport
this.setState({ report: bizpar[0], reportType: bizpar })
this.getReportType()
......
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