Commit 039a35a1 authored by qorri_di's avatar qorri_di

Fixing CF-Summary - Subco

- periode == yearNow - 1
parent f23471fa
......@@ -443,7 +443,7 @@ export default class SubHolding extends Component {
let payload = {
"report_id": this.state.report.value,
"revision": this.state.revisionType,
"periode": this.state.periode.periode,
"periode": this.state.periode.periode - 1,
"company_id": this.state.company.company_id,
"submission_id": this.state.submissionID
}
......@@ -4218,7 +4218,7 @@ export default class SubHolding extends Component {
// console.log(yearNow)
// console.log(periode)
if (String(this.state.report.label).toLocaleLowerCase().includes('summary')) {
let index = data.sort((a, b) => a - b).findIndex((val) => val.periode == yearNow)
let index = data.sort((a, b) => a - b).findIndex((val) => val.periode == yearNow - 1)
// console.log(index)
this.setState({ periode: data[index] }, () => {
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