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
2a79ef3e
Commit
2a79ef3e
authored
May 29, 2024
by
fahrur huzain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue CAT RO MB
parent
bec1eec7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+30
-30
No files found.
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
2a79ef3e
...
@@ -616,7 +616,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -616,7 +616,7 @@ export default class CorporateAnnualTarget extends Component {
}
else
{
}
else
{
stateFR
=
false
stateFR
=
false
}
}
if
(
this
.
state
.
defaultCurrencyUpload
?.
id
==
2
)
{
//
if (this.state.defaultCurrencyUpload?.id == 2) {
data
.
push
({
data
.
push
({
"item_report_id"
:
i
[
1
]
==
""
||
i
[
1
]
==
null
?
0
:
i
[
1
],
"item_report_id"
:
i
[
1
]
==
""
||
i
[
1
]
==
null
?
0
:
i
[
1
],
"item_report"
:
String
(
i
[
6
]),
"item_report"
:
String
(
i
[
6
]),
...
@@ -644,35 +644,35 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -644,35 +644,35 @@ export default class CorporateAnnualTarget extends Component {
"strategic"
:
String
(
i
[
28
]),
"strategic"
:
String
(
i
[
28
]),
"pic"
:
String
(
i
[
29
])
"pic"
:
String
(
i
[
29
])
})
})
}
else
{
//
} else {
data
.
push
({
//
data.push({
"item_report_id"
:
i
[
1
]
==
""
||
i
[
1
]
==
null
?
0
:
i
[
1
],
//
"item_report_id": i[1] == "" || i[1] == null ? 0 : i[1],
"item_report"
:
String
(
i
[
6
]),
//
"item_report": String(i[6]),
"weight"
:
String
(
i
[
7
]),
//
"weight": String(i[7]),
"uom"
:
String
(
i
[
8
]),
//
"uom": String(i[8]),
"kpi_type"
:
i
[
9
]
==
null
?
""
:
i
[
9
].
value
,
//
"kpi_type": i[9] == null ? "" : i[9].value,
"max_ach"
:
i
[
10
]
==
null
?
""
:
i
[
10
].
value
,
//
"max_ach": i[10] == null ? "" : i[10].value,
"formula"
:
i
[
11
]
==
null
?
""
:
i
[
11
].
value
,
//
"formula": i[11] == null ? "" : i[11].value,
"total_actual_before"
:
String
(
i
[
12
])
==
""
?
"0.0"
:
String
(
i
[
12
]),
//
"total_actual_before": String(i[12]) == "" ? "0.0" : String(i[12]),
"january"
:
i
[
13
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
13
].
value
),
1
))
:
String
(
i
[
13
]),
//
"january": i[13].value != undefined ? String(fixNumber(Number(i[13].value), 1)) : String(i[13]),
"february"
:
i
[
14
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
14
].
value
),
1
))
:
String
(
i
[
14
]),
//
"february": i[14].value != undefined ? String(fixNumber(Number(i[14].value), 1)) : String(i[14]),
"march"
:
i
[
15
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
15
].
value
),
1
))
:
String
(
i
[
15
]),
//
"march": i[15].value != undefined ? String(fixNumber(Number(i[15].value), 1)) : String(i[15]),
"april"
:
i
[
16
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
16
].
value
),
1
))
:
String
(
i
[
16
]),
//
"april": i[16].value != undefined ? String(fixNumber(Number(i[16].value), 1)) : String(i[16]),
"may"
:
i
[
17
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
17
].
value
),
1
))
:
String
(
i
[
17
]),
//
"may": i[17].value != undefined ? String(fixNumber(Number(i[17].value), 1)) : String(i[17]),
"june"
:
i
[
18
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
18
].
value
),
1
))
:
String
(
i
[
18
]),
//
"june": i[18].value != undefined ? String(fixNumber(Number(i[18].value), 1)) : String(i[18]),
"july"
:
i
[
19
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
19
].
value
),
1
))
:
String
(
i
[
19
]),
//
"july": i[19].value != undefined ? String(fixNumber(Number(i[19].value), 1)) : String(i[19]),
"august"
:
i
[
20
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
20
].
value
),
1
))
:
String
(
i
[
20
]),
//
"august": i[20].value != undefined ? String(fixNumber(Number(i[20].value), 1)) : String(i[20]),
"september"
:
i
[
21
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
21
].
value
),
1
))
:
String
(
i
[
21
]),
//
"september": i[21].value != undefined ? String(fixNumber(Number(i[21].value), 1)) : String(i[21]),
"october"
:
i
[
22
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
22
].
value
),
1
))
:
String
(
i
[
22
]),
//
"october": i[22].value != undefined ? String(fixNumber(Number(i[22].value), 1)) : String(i[22]),
"november"
:
i
[
23
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
23
].
value
),
1
))
:
String
(
i
[
23
]),
//
"november": i[23].value != undefined ? String(fixNumber(Number(i[23].value), 1)) : String(i[23]),
"december"
:
i
[
24
].
value
!=
undefined
?
String
(
fixNumber
(
Number
(
i
[
24
].
value
),
1
))
:
String
(
i
[
24
]),
//
"december": i[24].value != undefined ? String(fixNumber(Number(i[24].value), 1)) : String(i[24]),
"total_current_year"
:
String
(
fixNumber
(
Number
(
i
[
25
]),
1
))
==
""
?
"0.0"
:
String
(
fixNumber
(
Number
(
i
[
25
]),
1
)),
//
"total_current_year": String(fixNumber(Number(i[25]), 1)) == "" ? "0.0" : String(fixNumber(Number(i[25]), 1)),
"total_next_year"
:
String
(
fixNumber
(
Number
(
i
[
26
]),
1
))
==
""
?
"0.0"
:
String
(
fixNumber
(
Number
(
i
[
26
]),
1
)),
//
"total_next_year": String(fixNumber(Number(i[26]), 1)) == "" ? "0.0" : String(fixNumber(Number(i[26]), 1)),
"total_more_year"
:
String
(
fixNumber
(
Number
(
i
[
27
]),
1
))
==
""
?
"0.0"
:
String
(
fixNumber
(
Number
(
i
[
27
]),
1
)),
//
"total_more_year": String(fixNumber(Number(i[27]), 1)) == "" ? "0.0" : String(fixNumber(Number(i[27]), 1)),
"strategic"
:
String
(
i
[
28
]),
//
"strategic": String(i[28]),
"pic"
:
String
(
i
[
29
])
//
"pic": String(i[29])
})
//
})
}
//
}
})
})
let
body
=
{
let
body
=
{
...
...
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