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
fa551da8
Commit
fa551da8
authored
May 29, 2024
by
fahrur huzain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue CAT RO MB
parent
2a79ef3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
37 deletions
+45
-37
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+45
-37
No files found.
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
fa551da8
...
...
@@ -626,21 +626,21 @@ export default class CorporateAnnualTarget extends Component {
"max_ach"
:
i
[
10
]
==
null
?
""
:
i
[
10
].
value
,
"formula"
:
i
[
11
]
==
null
?
""
:
i
[
11
].
value
,
"total_actual_before"
:
String
(
i
[
12
])
==
""
?
"0.0"
:
String
(
i
[
12
]),
"january"
:
i
[
13
].
value
!=
undefined
?
String
(
Number
(
i
[
13
].
value
)
)
:
String
(
i
[
13
]),
"february"
:
i
[
14
].
value
!=
undefined
?
String
(
Number
(
i
[
14
].
value
)
)
:
String
(
i
[
14
]),
"march"
:
i
[
15
].
value
!=
undefined
?
String
(
Number
(
i
[
15
].
value
)
)
:
String
(
i
[
15
]),
"april"
:
i
[
16
].
value
!=
undefined
?
String
(
Number
(
i
[
16
].
value
)
)
:
String
(
i
[
16
]),
"may"
:
i
[
17
].
value
!=
undefined
?
String
(
Number
(
i
[
17
].
value
)
)
:
String
(
i
[
17
]),
"june"
:
i
[
18
].
value
!=
undefined
?
String
(
Number
(
i
[
18
].
value
)
)
:
String
(
i
[
18
]),
"july"
:
i
[
19
].
value
!=
undefined
?
String
(
Number
(
i
[
19
].
value
)
)
:
String
(
i
[
19
]),
"august"
:
i
[
20
].
value
!=
undefined
?
String
(
Number
(
i
[
20
].
value
)
)
:
String
(
i
[
20
]),
"september"
:
i
[
21
].
value
!=
undefined
?
String
(
Number
(
i
[
21
].
value
)
)
:
String
(
i
[
21
]),
"october"
:
i
[
22
].
value
!=
undefined
?
String
(
Number
(
i
[
22
].
value
)
)
:
String
(
i
[
22
]),
"november"
:
i
[
23
].
value
!=
undefined
?
String
(
Number
(
i
[
23
].
value
)
)
:
String
(
i
[
23
]),
"december"
:
i
[
24
].
value
!=
undefined
?
String
(
Number
(
i
[
24
].
value
)
)
:
String
(
i
[
24
]),
"total_current_year"
:
String
(
Number
(
i
[
25
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
25
])
),
"total_next_year"
:
String
(
Number
(
i
[
26
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
26
])
),
"total_more_year"
:
String
(
Number
(
i
[
27
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
27
])
),
"january"
:
i
[
13
].
value
!=
undefined
?
String
(
Number
(
i
[
13
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
13
]),
"february"
:
i
[
14
].
value
!=
undefined
?
String
(
Number
(
i
[
14
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
14
]),
"march"
:
i
[
15
].
value
!=
undefined
?
String
(
Number
(
i
[
15
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
15
]),
"april"
:
i
[
16
].
value
!=
undefined
?
String
(
Number
(
i
[
16
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
16
]),
"may"
:
i
[
17
].
value
!=
undefined
?
String
(
Number
(
i
[
17
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
17
]),
"june"
:
i
[
18
].
value
!=
undefined
?
String
(
Number
(
i
[
18
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
18
]),
"july"
:
i
[
19
].
value
!=
undefined
?
String
(
Number
(
i
[
19
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
19
]),
"august"
:
i
[
20
].
value
!=
undefined
?
String
(
Number
(
i
[
20
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
20
]),
"september"
:
i
[
21
].
value
!=
undefined
?
String
(
Number
(
i
[
21
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
21
]),
"october"
:
i
[
22
].
value
!=
undefined
?
String
(
Number
(
i
[
22
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
22
]),
"november"
:
i
[
23
].
value
!=
undefined
?
String
(
Number
(
i
[
23
].
formula
[
0
].
value
)
/
1000
)
:
String
(
i
[
23
]),
"december"
:
i
[
24
].
value
!=
undefined
?
String
(
Number
(
i
[
24
].
formula
[
1
].
value
)
/
1000
)
:
String
(
i
[
24
]),
"total_current_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
2
]?.
value
)
/
1000
),
"total_next_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
0
]?.
value
)
/
1000
),
"total_more_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
1
]?.
value
)
/
1000
),
"strategic"
:
String
(
i
[
28
]),
"pic"
:
String
(
i
[
29
])
})
...
...
@@ -799,6 +799,12 @@ export default class CorporateAnnualTarget extends Component {
// console.log(i[7])
let
b
=
[]
// console.log(i[13].value == undefined? 'Y' : 'N')
if
(
String
(
i
[
6
])
==
"Revenue"
){
console
.
log
(
Number
(
i
[
30
]))
console
.
log
(
String
(
Number
(
i
[
30
][
2
]?.
value
)
/
1000
))
}
data
.
push
({
"item_report_id"
:
i
[
1
]
==
""
||
i
[
1
]
==
null
?
0
:
i
[
1
],
"item_name"
:
String
(
i
[
6
]),
...
...
@@ -809,22 +815,22 @@ export default class CorporateAnnualTarget extends Component {
"max_ach"
:
i
[
10
]
==
null
?
""
:
i
[
10
].
value
,
"formula"
:
i
[
11
]
==
null
?
""
:
i
[
11
].
value
,
"total_actual_before"
:
String
(
i
[
12
])
==
""
?
"0.0"
:
String
(
i
[
12
]),
"january"
:
i
[
13
].
value
==
undefined
?
(
String
(
i
[
13
])
==
''
?
"0.0"
:
String
(
i
[
13
]))
:
String
(
i
[
13
].
value
),
"january"
:
i
[
13
].
value
==
undefined
?
(
String
(
i
[
13
])
==
''
?
"0.0"
:
String
(
i
[
13
]))
:
String
(
i
[
13
].
formula
[
0
].
value
/
1000
),
// "january": stateFR ? String(i[13].value) : String(i[13]) == "" ? "0.0" : String(i[13]),
"february"
:
i
[
14
].
value
==
undefined
?
(
String
(
i
[
14
])
==
''
?
"0.0"
:
String
(
i
[
14
]))
:
String
(
i
[
14
].
value
),
"march"
:
i
[
15
].
value
==
undefined
?
(
String
(
i
[
15
])
==
''
?
"0.0"
:
String
(
i
[
15
]))
:
String
(
i
[
15
].
value
),
"april"
:
i
[
16
].
value
==
undefined
?
(
String
(
i
[
16
])
==
''
?
"0.0"
:
String
(
i
[
16
]))
:
String
(
i
[
16
].
value
),
"may"
:
i
[
17
].
value
==
undefined
?
(
String
(
i
[
17
])
==
''
?
"0.0"
:
String
(
i
[
17
]))
:
String
(
i
[
17
].
value
),
"june"
:
i
[
18
].
value
==
undefined
?
(
String
(
i
[
18
])
==
''
?
"0.0"
:
String
(
i
[
18
]))
:
String
(
i
[
18
].
value
),
"july"
:
i
[
19
].
value
==
undefined
?
(
String
(
i
[
19
])
==
''
?
"0.0"
:
String
(
i
[
19
]))
:
String
(
i
[
19
].
value
),
"august"
:
i
[
20
].
value
==
undefined
?
(
String
(
i
[
20
])
==
''
?
"0.0"
:
String
(
i
[
20
]))
:
String
(
i
[
20
].
value
),
"september"
:
i
[
21
].
value
==
undefined
?
(
String
(
i
[
21
])
==
''
?
"0.0"
:
String
(
i
[
21
]))
:
String
(
i
[
21
].
value
),
"october"
:
i
[
22
].
value
==
undefined
?
(
String
(
i
[
22
])
==
''
?
"0.0"
:
String
(
i
[
22
]))
:
String
(
i
[
22
].
value
),
"november"
:
i
[
23
].
value
==
undefined
?
(
String
(
i
[
23
])
==
''
?
"0.0"
:
String
(
i
[
23
]))
:
String
(
i
[
23
].
value
),
"december"
:
i
[
24
].
value
==
undefined
?
(
String
(
i
[
24
])
==
''
?
"0.0"
:
String
(
i
[
24
]))
:
String
(
i
[
24
].
value
),
"total_current_year"
:
String
(
i
[
25
])
==
""
?
"0.0"
:
String
(
i
[
25
]
),
"total_next_year"
:
String
(
i
[
26
])
==
""
?
"0.0"
:
String
(
i
[
26
]
),
"total_more_year"
:
String
(
i
[
27
])
==
""
?
"0.0"
:
String
(
i
[
27
]
),
"february"
:
i
[
14
].
value
==
undefined
?
(
String
(
i
[
14
])
==
''
?
"0.0"
:
String
(
i
[
14
]))
:
String
(
i
[
14
].
formula
[
0
].
value
/
1000
),
"march"
:
i
[
15
].
value
==
undefined
?
(
String
(
i
[
15
])
==
''
?
"0.0"
:
String
(
i
[
15
]))
:
String
(
i
[
15
].
formula
[
0
].
value
/
1000
),
"april"
:
i
[
16
].
value
==
undefined
?
(
String
(
i
[
16
])
==
''
?
"0.0"
:
String
(
i
[
16
]))
:
String
(
i
[
16
].
formula
[
0
].
value
/
1000
),
"may"
:
i
[
17
].
value
==
undefined
?
(
String
(
i
[
17
])
==
''
?
"0.0"
:
String
(
i
[
17
]))
:
String
(
i
[
17
].
formula
[
0
].
value
/
1000
),
"june"
:
i
[
18
].
value
==
undefined
?
(
String
(
i
[
18
])
==
''
?
"0.0"
:
String
(
i
[
18
]))
:
String
(
i
[
18
].
formula
[
0
].
value
/
1000
),
"july"
:
i
[
19
].
value
==
undefined
?
(
String
(
i
[
19
])
==
''
?
"0.0"
:
String
(
i
[
19
]))
:
String
(
i
[
19
].
formula
[
0
].
value
/
1000
),
"august"
:
i
[
20
].
value
==
undefined
?
(
String
(
i
[
20
])
==
''
?
"0.0"
:
String
(
i
[
20
]))
:
String
(
i
[
20
].
formula
[
0
].
value
/
1000
),
"september"
:
i
[
21
].
value
==
undefined
?
(
String
(
i
[
21
])
==
''
?
"0.0"
:
String
(
i
[
21
]))
:
String
(
i
[
21
].
formula
[
0
].
value
/
1000
),
"october"
:
i
[
22
].
value
==
undefined
?
(
String
(
i
[
22
])
==
''
?
"0.0"
:
String
(
i
[
22
]))
:
String
(
i
[
22
].
formula
[
0
].
value
/
1000
),
"november"
:
i
[
23
].
value
==
undefined
?
(
String
(
i
[
23
])
==
''
?
"0.0"
:
String
(
i
[
23
]))
:
String
(
i
[
23
].
formula
[
0
].
value
/
1000
),
"december"
:
i
[
24
].
value
==
undefined
?
(
String
(
i
[
24
])
==
''
?
"0.0"
:
String
(
i
[
24
]))
:
String
(
i
[
24
].
formula
[
1
].
value
/
1000
),
"total_current_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
2
]?.
value
)
/
1000
),
"total_next_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
0
]?.
value
)
/
1000
),
"total_more_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
1
]?.
value
)
/
1000
),
"strategic"
:
String
(
i
[
28
]),
"pic"
:
String
(
i
[
29
])
})
...
...
@@ -894,6 +900,7 @@ export default class CorporateAnnualTarget extends Component {
console
.
log
(
i
[
13
]?.
formula
[
0
].
value
)
}
// // // // // console.log(i[9] == null? "" : i[9].value)
if
(
this
.
props
.
defaultCurrency
.
id
==
2
)
{
data
.
push
({
...
...
@@ -917,9 +924,10 @@ export default class CorporateAnnualTarget extends Component {
"september"
:
i
[
21
].
formula
!=
undefined
?
String
((
Number
(
i
[
21
]?.
formula
[
0
].
value
))
/
1000
)
:
String
(
i
[
21
]),
"october"
:
i
[
22
].
formula
!=
undefined
?
String
((
Number
(
i
[
22
]?.
formula
[
0
].
value
))
/
1000
)
:
String
(
i
[
22
]),
"november"
:
i
[
23
].
formula
!=
undefined
?
String
((
Number
(
i
[
23
]?.
formula
[
0
].
value
))
/
1000
)
:
String
(
i
[
23
]),
"december"
:
i
[
24
].
formula
!=
undefined
?
String
((
Number
(
i
[
24
]?.
formula
[
0
].
value
))
/
1000
)
:
String
(
i
[
24
]),
"total_next_year"
:
String
(
Number
(
i
[
26
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
26
])),
"total_more_year"
:
String
(
Number
(
i
[
27
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
27
])),
"december"
:
i
[
24
].
formula
!=
undefined
?
String
((
Number
(
i
[
24
]?.
formula
[
1
].
value
))
/
1000
)
:
String
(
i
[
24
]),
"total_current_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
2
]?.
value
)
/
1000
),
"total_next_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
0
]?.
value
)
/
1000
),
"total_more_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
1
]?.
value
)
/
1000
),
"strategic"
:
String
(
i
[
28
]),
"pic"
:
String
(
i
[
29
])
})
...
...
@@ -945,10 +953,10 @@ export default class CorporateAnnualTarget extends Component {
"september"
:
i
[
21
].
formula
!=
undefined
?
String
((
Number
(
i
[
21
]?.
formula
[
0
].
value
))
/
1000
)
:
String
(
i
[
21
]),
"october"
:
i
[
22
].
formula
!=
undefined
?
String
((
Number
(
i
[
22
]?.
formula
[
0
].
value
))
/
1000
)
:
String
(
i
[
22
]),
"november"
:
i
[
23
].
formula
!=
undefined
?
String
((
Number
(
i
[
23
]?.
formula
[
0
].
value
))
/
1000
)
:
String
(
i
[
23
]),
"december"
:
i
[
24
].
formula
!=
undefined
?
String
((
Number
(
i
[
24
]?.
formula
[
0
].
value
))
/
1000
)
:
String
(
i
[
24
]),
"total_current_year"
:
String
(
Number
(
i
[
25
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
25
])
),
"total_next_year"
:
String
(
Number
(
i
[
26
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
26
])
),
"total_more_year"
:
String
(
Number
(
i
[
27
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
27
])
),
"december"
:
i
[
24
].
formula
!=
undefined
?
String
((
Number
(
i
[
24
]?.
formula
[
1
].
value
))
/
1000
)
:
String
(
i
[
24
]),
"total_current_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
2
]?.
value
)
/
1000
),
"total_next_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
0
]?.
value
)
/
1000
),
"total_more_year"
:
String
(
Number
(
i
[
30
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
30
][
1
]?.
value
)
/
1000
),
"strategic"
:
String
(
i
[
28
]),
"pic"
:
String
(
i
[
29
])
})
...
...
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