Commit 4acf7190 authored by d.arizona's avatar d.arizona

updatee cf approved only

parent 43070995
......@@ -3027,7 +3027,7 @@ export default class BudgetTahunan extends Component {
status={this.state.status}
lastStatus={this.state.lastStatus}
prevRevision={this.state.isSubmit ? this.state.prevRevision : true}
PLBSFAMSubmitted={this.state.PLBSFAMSubmitted}
PLBSFAMSubmitted={this.state.lastStatus == 'APPROVED'? true : false}
createCashFlow={this.createCashFlow.bind(this)}
/>
)
......
......@@ -3009,7 +3009,7 @@ export default class MonthlyReport extends Component {
lastStatus={this.state.lastStatus}
isApprover={this.state.isApprover}
prevRevision={this.state.isSubmit ? this.state.prevRevision : true}
PLBSFAMSubmitted={false}
PLBSFAMSubmitted={this.state.lastStatus == 'APPROVED'? true : false}
createCashFlow={this.createCashFlow.bind(this)}
/>
)}
......
......@@ -136,7 +136,8 @@ export default class ProfitLossMR extends Component {
checkStatus = false
}
this.setState({ viewOnly: !checkApprover && checkLastStatus && checkStatus && checkPrevRev })
// this.setState({ viewOnly: !checkApprover && checkLastStatus && checkStatus && checkPrevRev })
this.setState({viewOnly: true})
}
handleGetFor(type) {
......
......@@ -1948,6 +1948,7 @@ export default class OutlookPA extends Component {
isApprover={this.state.isApprover}
lastStatus={this.state.lastStatus}
prevRevision={this.state.isSubmit ? this.state.prevRevision : true}
PLBSFAMSubmitted={this.state.lastStatus == 'APPROVED'? true : false}
/>
)}
{this.state.visibleCAT && (
......
This diff is collapsed.
......@@ -2027,6 +2027,7 @@ export default class RollingOutlook extends Component {
prevRevision={this.state.isSubmit ? this.state.prevRevision : true}
status={this.state.status}
lastStatus={this.state.lastStatus}
PLBSFAMSubmitted={this.state.lastStatus == 'APPROVED'? true : false}
/>
)}
......
This diff is collapsed.
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