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
4c5cd93b
Commit
4c5cd93b
authored
Dec 29, 2021
by
syadziy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rounding CAT
parent
eafe2579
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
CorporateAnnualTargetOLPA.js
src/container/OutlookPA/CorporateAnnualTargetOLPA.js
+12
-12
CorporateAnnualTargetRO.js
src/container/RollingOutlook/CorporateAnnualTargetRO.js
+12
-12
No files found.
src/container/OutlookPA/CorporateAnnualTargetOLPA.js
View file @
4c5cd93b
...
...
@@ -487,18 +487,18 @@ export default class CorporateAnnualTargetRO extends Component {
kpi_type
:
i
[
4
]
===
undefined
?
""
:
String
(
i
[
4
]).
trim
(),
max_ach
:
i
[
5
]
===
undefined
?
""
:
String
(
i
[
5
]).
toLocaleLowerCase
()
!==
'unlimited'
?
(
String
(
i
[
5
]).
includes
(
'%'
)
?
String
(
i
[
5
].
trim
())
:
String
(
Number
(
i
[
5
]
*
100
)
+
'%'
))
:
String
(
i
[
5
]).
trim
(),
formula_ytd
:
i
[
6
]
===
undefined
?
""
:
String
(
i
[
6
]).
trim
(),
january
:
i
[
7
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
7
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
7
]).
toFixed
(
1
)).
trim
(),
february
:
i
[
8
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
8
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
8
]).
toFixed
(
1
)).
trim
(),
march
:
i
[
9
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
9
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
9
]).
toFixed
(
1
)).
trim
(),
april
:
i
[
10
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
10
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
10
]).
toFixed
(
1
)).
trim
(),
may
:
i
[
11
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
11
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
11
]).
toFixed
(
1
)).
trim
(),
june
:
i
[
12
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
12
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
12
]).
toFixed
(
1
)).
trim
(),
july
:
i
[
13
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
13
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
13
]).
toFixed
(
1
)).
trim
(),
august
:
i
[
14
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
14
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
14
]).
toFixed
(
1
)).
trim
(),
september
:
i
[
15
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
15
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
15
]).
toFixed
(
1
)).
trim
(),
october
:
i
[
16
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
16
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
16
]).
toFixed
(
1
)).
trim
(),
november
:
i
[
17
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
17
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
17
]).
toFixed
(
1
)).
trim
(),
december
:
i
[
18
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
18
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
18
]).
toFixed
(
1
)).
trim
(),
january
:
i
[
7
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
7
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
7
]),
1
)).
trim
(),
february
:
i
[
8
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
8
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
8
]),
1
)).
trim
(),
march
:
i
[
9
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
9
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
9
]),
1
)).
trim
(),
april
:
i
[
10
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
10
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
10
]),
1
)).
trim
(),
may
:
i
[
11
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
11
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
11
]),
1
)).
trim
(),
june
:
i
[
12
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
12
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
12
]),
1
)).
trim
(),
july
:
i
[
13
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
13
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
13
]),
1
)).
trim
(),
august
:
i
[
14
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
14
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
14
]),
1
)).
trim
(),
september
:
i
[
15
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
15
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
15
]),
1
)).
trim
(),
october
:
i
[
16
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
16
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
16
]),
1
)).
trim
(),
november
:
i
[
17
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
17
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
17
]),
1
)).
trim
(),
december
:
i
[
18
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
18
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
18
]),
1
)).
trim
(),
strategic_initiative
:
i
[
20
]
===
undefined
?
""
:
String
(
i
[
20
]).
trim
(),
pic
:
i
[
21
]
===
undefined
?
""
:
String
(
i
[
21
]).
trim
()
})
...
...
src/container/RollingOutlook/CorporateAnnualTargetRO.js
View file @
4c5cd93b
...
...
@@ -484,18 +484,18 @@ export default class CorporateAnnualTargetRO extends Component {
uom
:
i
[
4
]
===
undefined
?
""
:
String
(
i
[
4
]).
trim
(),
kpi_type
:
i
[
5
]
===
undefined
?
""
:
String
(
i
[
5
]).
trim
(),
max_ach
:
i
[
6
]
===
undefined
?
""
:
String
(
i
[
6
]).
toLocaleLowerCase
()
!==
'unlimited'
?
(
String
(
i
[
6
]).
includes
(
'%'
)
?
String
(
i
[
6
].
trim
())
:
String
(
Number
(
i
[
6
]
*
100
)
+
'%'
))
:
String
(
i
[
6
]).
trim
(),
january
:
i
[
7
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
7
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
7
]).
toFixed
(
1
)).
trim
(),
february
:
i
[
8
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
8
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
8
]).
toFixed
(
1
)).
trim
(),
march
:
i
[
9
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
9
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
9
]).
toFixed
(
1
)).
trim
(),
april
:
i
[
10
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
10
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
10
]).
toFixed
(
1
)).
trim
(),
may
:
i
[
11
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
11
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
11
]).
toFixed
(
1
)).
trim
(),
june
:
i
[
12
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
12
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
12
]).
toFixed
(
1
)).
trim
(),
july
:
i
[
13
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
13
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
13
]).
toFixed
(
1
)).
trim
(),
august
:
i
[
14
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
14
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
14
]).
toFixed
(
1
)).
trim
(),
september
:
i
[
15
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
15
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
15
]).
toFixed
(
1
)).
trim
(),
october
:
i
[
16
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
16
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
16
]).
toFixed
(
1
)).
trim
(),
november
:
i
[
17
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
17
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
17
]).
toFixed
(
1
)).
trim
(),
december
:
i
[
18
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
18
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
18
]).
toFixed
(
1
)).
trim
(),
january
:
i
[
7
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
7
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
7
]),
1
)).
trim
(),
february
:
i
[
8
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
8
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
8
]),
1
)).
trim
(),
march
:
i
[
9
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
9
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
9
]),
1
)).
trim
(),
april
:
i
[
10
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
10
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
10
]),
1
)).
trim
(),
may
:
i
[
11
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
11
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
11
]),
1
)).
trim
(),
june
:
i
[
12
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
12
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
12
]),
1
)).
trim
(),
july
:
i
[
13
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
13
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
13
]),
1
)).
trim
(),
august
:
i
[
14
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
14
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
14
]),
1
)).
trim
(),
september
:
i
[
15
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
15
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
15
]),
1
)).
trim
(),
october
:
i
[
16
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
16
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
16
]),
1
)).
trim
(),
november
:
i
[
17
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
17
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
17
]),
1
)).
trim
(),
december
:
i
[
18
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
18
]))
===
false
?
"0.0"
:
String
(
roundMath
(
Number
(
i
[
18
]),
1
)).
trim
(),
strategic_initiative
:
i
[
20
]
===
undefined
?
""
:
String
(
i
[
20
]).
trim
(),
pic
:
i
[
21
]
===
undefined
?
""
:
String
(
i
[
21
]).
trim
()
})
...
...
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