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
489b14c4
Commit
489b14c4
authored
Dec 02, 2022
by
ardiansyah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Operating Indicator
parent
240b6b2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
OperatingIndicatorDetail.js
src/container/OperatingIndicator/OperatingIndicatorDetail.js
+12
-0
No files found.
src/container/OperatingIndicator/OperatingIndicatorDetail.js
View file @
489b14c4
...
...
@@ -129,6 +129,8 @@ export default class BalanceSheet extends Component {
item
.
master_budget
.
november
==
""
?
item
.
master_budget
.
november
:
String
(
item
.
master_budget
.
november
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
november
)
:
Number
(
item
.
master_budget
.
november
).
toFixed
(
1
),
item
.
master_budget
.
december
==
""
?
item
.
master_budget
.
december
:
String
(
item
.
master_budget
.
december
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
december
)
:
Number
(
item
.
master_budget
.
december
).
toFixed
(
1
),
item
.
master_budget
.
total_current_year
==
""
?
item
.
master_budget
.
total_current_year
:
String
(
item
.
master_budget
.
total_current_year
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
total_current_year
)
:
Number
(
item
.
master_budget
.
total_current_year
).
toFixed
(
1
),
item
.
master_budget
.
total_next_year
==
""
?
item
.
master_budget
.
total_next_year
:
String
(
item
.
master_budget
.
total_next_year
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
total_next_year
)
:
Number
(
item
.
master_budget
.
total_next_year
).
toFixed
(
1
),
item
.
master_budget
.
total_more_year
==
""
?
item
.
master_budget
.
total_more_year
:
String
(
item
.
master_budget
.
total_more_year
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
total_more_year
)
:
Number
(
item
.
master_budget
.
total_more_year
).
toFixed
(
1
),
item
.
order
])
}
...
...
@@ -163,6 +165,8 @@ export default class BalanceSheet extends Component {
item
.
master_budget
.
november
==
""
?
item
.
master_budget
.
november
:
String
(
item
.
master_budget
.
november
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
november
)
:
Number
(
item
.
master_budget
.
november
).
toFixed
(
1
),
item
.
master_budget
.
december
==
""
?
item
.
master_budget
.
december
:
String
(
item
.
master_budget
.
december
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
december
)
:
Number
(
item
.
master_budget
.
december
).
toFixed
(
1
),
item
.
master_budget
.
total_current_year
==
""
?
item
.
master_budget
.
total_current_year
:
String
(
item
.
master_budget
.
total_current_year
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
total_current_year
)
:
Number
(
item
.
master_budget
.
total_current_year
).
toFixed
(
1
),
item
.
master_budget
.
total_next_year
==
""
?
item
.
master_budget
.
total_next_year
:
String
(
item
.
master_budget
.
total_next_year
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
total_next_year
)
:
Number
(
item
.
master_budget
.
total_next_year
).
toFixed
(
1
),
item
.
master_budget
.
total_more_year
==
""
?
item
.
master_budget
.
total_more_year
:
String
(
item
.
master_budget
.
total_more_year
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
total_more_year
)
:
Number
(
item
.
master_budget
.
total_more_year
).
toFixed
(
1
),
item
.
order
])
if
(
item
.
children
!==
null
)
{
...
...
@@ -202,6 +206,8 @@ export default class BalanceSheet extends Component {
"november"
:
String
(
Number
(
item
[
18
]).
toFixed
(
1
)),
"december"
:
String
(
Number
(
item
[
19
]).
toFixed
(
1
)),
"total_current_year"
:
String
(
Number
(
item
[
20
]).
toFixed
(
1
)),
"total_next_year"
:
String
(
Number
(
item
[
21
]).
toFixed
(
1
)),
"total_more_year"
:
String
(
Number
(
item
[
22
]).
toFixed
(
1
)),
})
})
let
payload
=
{
...
...
@@ -350,6 +356,8 @@ export default class BalanceSheet extends Component {
november
:
i
[
14
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
14
]))
===
false
?
"0"
:
String
(
i
[
14
]).
trim
(),
december
:
i
[
15
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
15
]))
===
false
?
"0"
:
String
(
i
[
15
]).
trim
(),
total_current_year
:
i
[
16
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
16
]))
===
false
?
"0"
:
String
(
i
[
16
]).
trim
(),
total_next_year
:
i
[
17
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
17
]))
===
false
?
"0"
:
String
(
i
[
17
]).
trim
(),
total_more_year
:
i
[
18
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
18
]))
===
false
?
"0"
:
String
(
i
[
18
]).
trim
(),
})
}
})
...
...
@@ -402,6 +410,8 @@ export default class BalanceSheet extends Component {
item
.
november
,
item
.
december
,
item
.
total_current_year
,
item
.
total_next_year
,
item
.
total_more_year
,
item
.
order
,
item
.
error
]
...
...
@@ -433,6 +443,8 @@ export default class BalanceSheet extends Component {
"november"
:
String
(
Number
(
i
[
18
]).
toFixed
(
1
)),
"december"
:
String
(
Number
(
i
[
19
]).
toFixed
(
1
)),
"total_current_year"
:
String
(
Number
(
i
[
20
]).
toFixed
(
1
)),
"total_next_year"
:
String
(
Number
(
i
[
21
]).
toFixed
(
1
)),
"total_more_year"
:
String
(
Number
(
i
[
22
]).
toFixed
(
1
)),
})
})
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