Commit 544ddae8 authored by Dida Adams Arizona's avatar Dida Adams Arizona

Merge branch 'didam' into 'master'

apdet

See merge request !989
parents dc262576 e72137e9
...@@ -688,6 +688,9 @@ export default class MonthlyReport extends Component { ...@@ -688,6 +688,9 @@ export default class MonthlyReport extends Component {
} }
clickDetail(item, id, revision, status) { clickDetail(item, id, revision, status) {
console.log(this.state.dataForRevision)
console.log(item)
console.log(revision)
console.log(item) console.log(item)
let items = '' let items = ''
if (item === 'Corporate Annual Target') { if (item === 'Corporate Annual Target') {
...@@ -697,7 +700,7 @@ export default class MonthlyReport extends Component { ...@@ -697,7 +700,7 @@ export default class MonthlyReport extends Component {
} }
this.state.dataForRevision.map(i => { this.state.dataForRevision.map(i => {
if (i.report_name === items) { if (i.report_name === items) {
if (i.revision !== revision) { if (i.revision == revision) {
this.setState({ prevRevision: true }) this.setState({ prevRevision: true })
} else { } else {
this.setState({ prevRevision: false }) this.setState({ prevRevision: false })
...@@ -710,6 +713,7 @@ export default class MonthlyReport extends Component { ...@@ -710,6 +713,7 @@ export default class MonthlyReport extends Component {
status: status status: status
}, () => { }, () => {
console.log(status) console.log(status)
console.log(this.state.prevRevision)
if (item === 'Balance Sheet') { if (item === 'Balance Sheet') {
this.setState({ this.setState({
visibleMonthlyReport: false, visibleMonthlyReport: false,
......
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