Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
ecdacd34
Commit
ecdacd34
authored
Mar 25, 2026
by
Hardiansyah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix button monthly report
parent
62a65736
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
MonthlyReport.js
src/container/MonthlyReport/MonthlyReport.js
+3
-1
No files found.
src/container/MonthlyReport/MonthlyReport.js
View file @
ecdacd34
...
...
@@ -838,7 +838,7 @@ export default class MonthlyReport extends Component {
console
.
log
(
response
)
if
(
this
.
state
.
btnCreate
===
true
&&
this
.
state
.
btnEdit
===
true
)
{
console
.
log
(
'editable'
);
this
.
setState
({
isApprover
:
this
.
state
.
approverTrue
?
true
:
false
,
checkApprover
:
this
.
state
.
approverTrue
?
true
:
false
,
isApproverFinance
:
this
.
state
.
approverTrue
||
response
.
data
.
data
.
is_finance
,
isApproverCAT
:
this
.
state
.
approverTrue
||
response
.
data
.
data
.
is_cat
,
})
this
.
setState
({
isApprover
:
this
.
state
.
approverTrue
?
true
:
false
,
checkApprover
:
this
.
state
.
approverTrue
?
true
:
false
,
isApproverFinance
:
response
.
data
.
data
.
is_finance
,
isApproverCAT
:
response
.
data
.
data
.
is_cat
,
})
}
else
{
console
.
log
(
'just view'
);
this
.
setState
({
isApprover
:
true
,
checkApprover
:
true
,
isApproverFinance
:
true
,
isApproverCAT
:
true
})
...
...
@@ -3415,6 +3415,8 @@ export default class MonthlyReport extends Component {
const
mstIdFinance
=
this
.
state
?.
rowDataFinance
?.
length
>
0
&&
this
.
state
.
rowDataFinance
[
0
]?.
master_report_type_id
const
mstIdCAT
=
this
.
state
?.
rowDataCAT
?.
length
>
0
&&
this
.
state
.
rowDataCAT
[
0
]?.
master_report_type_id
console
.
log
(((
this
.
state
.
checkApprover
&&
this
.
state
.
isApproverCAT
)
||
this
.
state
.
submitterCAT
),
'1'
)
console
.
log
(
this
.
state
.
checkApprover
,
this
.
state
.
isApproverCAT
,
this
.
state
.
submitterCAT
,
'2'
)
return
(
<
div
style
=
{{
flex
:
1
,
backgroundColor
:
'#f8f8f8'
,
overflow
:
'scroll'
}}
>
<
Snackbar
open
=
{
this
.
state
.
alert
}
autoHideDuration
=
{
6000
}
onClose
=
{()
=>
this
.
closeAlert
()}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment