Commit 532e3123 authored by d.arizona's avatar d.arizona

cat current_year_ttl

parent 3ec0fbae
...@@ -89,7 +89,7 @@ export default class CorporateAnnualTargetRO extends Component { ...@@ -89,7 +89,7 @@ export default class CorporateAnnualTargetRO extends Component {
let checkLastStatus = false let checkLastStatus = false
let checkStatus = false let checkStatus = false
let checkPrevRev = false let checkPrevRev = false
console.log('skuy');
if (this.props.isApprover) { if (this.props.isApprover) {
checkApprover = true checkApprover = true
} else { } else {
...@@ -114,7 +114,8 @@ export default class CorporateAnnualTargetRO extends Component { ...@@ -114,7 +114,8 @@ export default class CorporateAnnualTargetRO extends Component {
checkStatus = false checkStatus = false
} }
this.setState({ viewOnly: !checkApprover && checkLastStatus && checkStatus && checkPrevRev }) // this.setState({ viewOnly: !checkApprover && checkLastStatus && checkStatus && checkPrevRev })
this.setState({viewOnly: true})
} }
getItemHierarki() { getItemHierarki() {
...@@ -620,7 +621,7 @@ export default class CorporateAnnualTargetRO extends Component { ...@@ -620,7 +621,7 @@ export default class CorporateAnnualTargetRO extends Component {
"october": stateFR ? i[0] == 3 ? String(i[20]) : String(Number(i[20].value).toFixed(1)) : String(i[20]), "october": stateFR ? i[0] == 3 ? String(i[20]) : String(Number(i[20].value).toFixed(1)) : String(i[20]),
"november": stateFR ? i[0] == 3 ? String(i[21]) : String(Number(i[21].value).toFixed(1)) : String(i[21]), "november": stateFR ? i[0] == 3 ? String(i[21]) : String(Number(i[21].value).toFixed(1)) : String(i[21]),
"december": stateFR ? i[0] == 3 ? String(i[22]) : String(Number(i[22].value).toFixed(1)) : String(i[22]), "december": stateFR ? i[0] == 3 ? String(i[22]) : String(Number(i[22].value).toFixed(1)) : String(i[22]),
"total_current_year": String(Number(i[23]).toFixed(1)) == "" ? "0.0" : String(Number(i[23]).toFixed(1)), "current_year_total": String(Number(i[23]).toFixed(1)) == "" ? "0.0" : String(Number(i[23]).toFixed(1)),
"strategic": String(i[24]), "strategic": String(i[24]),
"pic": String(i[25]) "pic": String(i[25])
}) })
......
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