Commit 9cc6a760 authored by d.arizona's avatar d.arizona

update validasi opbal MB

parent f2b2151e
...@@ -290,13 +290,22 @@ export default class BudgetTahunan extends Component { ...@@ -290,13 +290,22 @@ export default class BudgetTahunan extends Component {
} else { } else {
status_approv = String(item.current_status) status_approv = String(item.current_status)
} }
const handleOpbal = (item) => {
let isUpload = false
if (Number(this.state.periode.periode) <= 2020 ) {
isUpload = true
} else {
isUpload = item
}
return isUpload
}
return [ return [
item.number, item.number,
item.report_name === 'CAT' ? 'Corporate Annual Target' : item.report_name, item.report_name === 'CAT' ? 'Corporate Annual Target' : item.report_name,
item.revision, item.revision,
this.state.lastStatus === 'APPROVED' ? 'CLOSED' : this.state.isSubmit === false ? "CLOSED" : status_approv, this.state.lastStatus === 'APPROVED' ? 'CLOSED' : this.state.isSubmit === false ? "CLOSED" : status_approv,
item.report_id, item.report_id,
item.report_name === "Cash Flow" ? item.is_can_upload : (Number(item.revision) > 0 ? (item.current_status == "not-yet" ? false : item.is_can_upload) : item.is_can_upload), item.report_name === "Cash Flow" ? handleOpbal(item.is_can_upload) : (Number(item.revision) > 0 ? (item.current_status == "not-yet" ? false : handleOpbal(item.is_can_upload)) : handleOpbal(item.is_can_upload)),
item.revision item.revision
] ]
}) })
......
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