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
7ccf2276
Commit
7ccf2276
authored
May 30, 2024
by
fahrur huzain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue CAT MB
parent
689d67fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+2
-2
No files found.
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
7ccf2276
...
...
@@ -848,11 +848,11 @@ export default class CorporateAnnualTarget extends Component {
"status"
:
"submitted"
,
"cat"
:
data
}
console
.
log
(
totalWeight
)
console
.
log
(
fixNumber
(
totalWeight
)
)
// this.setState({dataTable: dataTampung})
if
(
handleKosongKPIMAXYTD
)
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'KPI / Weight / KPI Type / Max Ach / Formula YTD / Cannot be Empty'
,
tipeAlert
:
'warning'
,
loading
:
false
,
editable
:
true
})
}
else
if
(
totalWeight
<
100
&&
totalWeight
>
0
)
{
}
else
if
(
fixNumber
(
totalWeight
)
<
100
&&
fixNumber
(
totalWeight
)
>
0
)
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'Total weight less than 100%'
,
tipeAlert
:
'warning'
,
loading
:
false
,
editable
:
true
})
}
else
{
console
.
log
(
JSON
.
stringify
(
payload
))
...
...
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