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
ccdba6ff
Commit
ccdba6ff
authored
May 10, 2024
by
fahrur huzain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue CAT actual
parent
cb30d621
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
CorporateAnnualTargetMR.js
src/container/MonthlyReport/CorporateAnnualTargetMR.js
+6
-6
No files found.
src/container/MonthlyReport/CorporateAnnualTargetMR.js
View file @
ccdba6ff
...
...
@@ -1745,7 +1745,7 @@ export default class CorporateAnnualTargetMR extends Component {
style
=
{{
color
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
fixNumber
(
Number
(
value
),
1
)
==
0
?
"0.0"
:
fixNumber
(
Number
(
value
),
2
)}
value
=
{
fixNumber
(
Number
(
value
),
2
)
==
0
?
"0.0"
:
fixNumber
(
Number
(
value
),
2
)}
// disabled={this.props.isApprover ? true : ((this.props.lastStatus == 'SUBMIT' || this.props.lastStatus == 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
disabled
=
{
true
}
decimalScale
=
{
2
}
...
...
@@ -1754,14 +1754,14 @@ export default class CorporateAnnualTargetMR extends Component {
<
div
style
=
{{
flex
:
1
,
textAlign
:
'right'
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
value
),
1
)
:
Number
(
value
)}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
value
),
2
)
:
Number
(
value
)}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
],
tableMeta
)
?
"#5198ea"
:
'black'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
(
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
fixNumber
(
Number
(
handleValueFormula
(
value
,
tableMeta
,
tableMeta
.
columnIndex
)),
2
)
:
fixNumber
(
Number
(
value
),
1
))
:
(
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
(
Number
(
handleValueFormula
(
value
,
tableMeta
,
tableMeta
.
columnIndex
))
==
0
?
"0.0"
:
Number
(
handleValueFormula
(
value
,
tableMeta
,
tableMeta
.
columnIndex
)))
:
Number
(
value
)
==
0
?
"0.0"
:
Number
(
value
))}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
(
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
fixNumber
(
Number
(
handleValueFormula
(
value
,
tableMeta
,
tableMeta
.
columnIndex
)),
2
)
:
fixNumber
(
Number
(
value
),
2
))
:
(
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
(
Number
(
handleValueFormula
(
value
,
tableMeta
,
tableMeta
.
columnIndex
))
==
0
?
"0.0"
:
Number
(
handleValueFormula
(
value
,
tableMeta
,
tableMeta
.
columnIndex
)))
:
Number
(
value
)
==
0
?
"0.0"
:
Number
(
value
))}
// disabled={this.props.isApprover ? true : ((this.props.lastStatus == 'SUBMIT' || this.props.lastStatus == 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
!
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
],
tableMeta
)}
decimalScale
=
{
2
}
...
...
@@ -1794,15 +1794,15 @@ export default class CorporateAnnualTargetMR extends Component {
null
:
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
value
),
1
)
:
Number
(
value
)
==
0
?
"0.0"
:
Number
(
value
)}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
value
),
2
)
:
Number
(
value
)
==
0
?
"0.0"
:
Number
(
value
)}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
value
),
1
)
:
Number
(
value
)
==
0
?
"0.0"
:
Number
(
value
)}
decimalScale
=
{
1
}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
value
),
2
)
:
Number
(
value
)
==
0
?
"0.0"
:
Number
(
value
)}
decimalScale
=
{
2
}
disabled
=
{
true
}
/
>
}
...
...
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