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
8316ebee
Commit
8316ebee
authored
Mar 07, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ed4d3356
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
CorporateAnnualTargetMR.js
src/container/MonthlyReport/CorporateAnnualTargetMR.js
+10
-10
No files found.
src/container/MonthlyReport/CorporateAnnualTargetMR.js
View file @
8316ebee
...
...
@@ -692,7 +692,7 @@ export default class CorporateAnnualTargetMR extends Component {
if
(
actual
==
target
)
{
totalAch
=
(
actual
/
target
)
}
else
{
totalAch
=
1
-
(
actual
/
target
)
totalAch
=
2
-
(
actual
/
target
)
}
}
// if (item[5] == "Striping Ratio (SR) YTD") {
...
...
@@ -716,11 +716,11 @@ export default class CorporateAnnualTargetMR extends Component {
totalAch
=
0
}
}
else
{
if
(
actual
<=
target
)
{
//
if (actual <= target) {
totalAch
=
(
actual
/
target
)
}
else
{
totalAch
=
1
-
(
actual
/
target
)
}
//
} else {
//
totalAch = 1 - (actual / target)
//
}
}
}
totalAch
=
String
(
totalAch
)
==
'NaN'
||
String
(
totalAch
)
==
'Infinity'
||
String
(
totalAch
)
==
'-Infinity'
?
0
:
totalAch
...
...
@@ -1289,7 +1289,7 @@ export default class CorporateAnnualTargetMR extends Component {
if
(
actual
==
target
)
{
total
=
(
actual
/
target
)
}
else
{
total
=
1
-
(
actual
/
target
)
total
=
2
-
(
actual
/
target
)
}
}
}
else
{
...
...
@@ -1308,11 +1308,11 @@ export default class CorporateAnnualTargetMR extends Component {
total
=
0
}
}
else
{
if
(
actual
<=
target
)
{
//
if (actual <= target) {
total
=
(
actual
/
target
)
}
else
{
total
=
1
-
(
actual
/
target
)
}
//
} else {
//
total = 1 - (actual / target)
//
}
}
}
total
=
String
(
total
)
==
'NaN'
||
String
(
total
)
==
'Infinity'
||
String
(
total
)
==
'-Infinity'
?
0
:
total
...
...
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