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
94ebf5d8
Commit
94ebf5d8
authored
Jun 25, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into GGMAC
parents
04530554
e67c5070
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
SubHolding.js
src/container/Laporan/SubHolding.js
+24
-6
No files found.
src/container/Laporan/SubHolding.js
View file @
94ebf5d8
...
...
@@ -2591,11 +2591,20 @@ export default class SubHolding extends Component {
isNaN
(
persenYtdMB
)
||
persenYtdMB
==
'Infinity'
||
persenYtdMB
==
'-Infinity'
?
(
item
.
profit_loss
.
ytd_mb
==
''
||
item
.
profit_loss
.
ytd_mb
==
0
?
-
0
:
0
)
:
(
item
.
profit_loss
.
ytd_mb
==
''
||
item
.
profit_loss
.
ytd_mb
==
0
?
persenYtdMB
*
-
100
:
persenYtdMB
*
100
),
item
.
profit_loss
.
ytd_last_year
,
isNaN
(
persenYtdLY
)
||
persenYtdLY
==
'Infinity'
||
persenYtdLY
==
'-Infinity'
?
(
item
.
profit_loss
.
ytd_last_year
==
''
||
item
.
profit_loss
.
ytd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
profit_loss
.
ytd_last_year
==
''
||
item
.
profit_loss
.
ytd_last_year
==
0
?
persenYtdLY
*
-
100
:
persenYtdLY
*
100
),
month
==
"Mar"
?
item
.
profit_loss
.
q1_actual
:
month
=
"Jun"
?
item
.
profit_loss
.
q2_actual
:
month
=
"Sep"
?
item
.
profit_loss
.
q3_actual
:
0
,
month
==
"Mar"
?
item
.
profit_loss
.
q1_mb
:
month
=
"Jun"
?
item
.
profit_loss
.
q2_mb
:
month
=
"Sep"
?
item
.
profit_loss
.
q3_mb
:
0
,
month
==
"Mar"
?
item
.
profit_loss
.
q1_actual
:
month
==
"Jun"
?
item
.
profit_loss
.
q2_actual
:
month
==
"Sep"
?
item
.
profit_loss
.
q3_actual
:
month
==
"Dec"
?
item
.
profit_loss
.
q4_actual
:
0
,
month
==
"Mar"
?
item
.
profit_loss
.
q1_mb
:
month
==
"Jun"
?
item
.
profit_loss
.
q2_mb
:
month
==
"Sep"
?
item
.
profit_loss
.
q3_mb
:
month
==
"Dec"
?
item
.
profit_loss
.
q4_mb
:
0
,
isNaN
(
persenQuarterMB
)
||
persenQuarterMB
==
'Infinity'
||
persenQuarterMB
==
'-Infinity'
?
(
q_mb
==
''
||
q_mb
==
0
?
-
0
:
0
)
:
(
q_mb
==
''
||
q_mb
==
0
?
persenQuarterMB
*
-
100
:
persenQuarterMB
*
100
),
// isNaN(persenQuarterMB) || persenQuarterMB == 'Infinity' || persenQuarterMB == '-Infinity'? (item.profit_loss.q1_mb == '' || item.profit_loss.q1_mb == 0? -0 : 0) : (item.profit_loss.q1_mb == '' || item.profit_loss.q1_mb == 0? persenQuarterMB * -100 : persenQuarterMB * 100),
month
==
"Mar"
?
item
.
profit_loss
.
q1_last_year
:
month
=
"Jun"
?
item
.
profit_loss
.
q2_last_year
:
month
=
"Sep"
?
item
.
profit_loss
.
q3_last_year
:
0
,
month
==
"Mar"
?
item
.
profit_loss
.
q1_last_year
:
month
==
"Jun"
?
item
.
profit_loss
.
q2_last_year
:
month
==
"Sep"
?
item
.
profit_loss
.
q3_last_year
:
month
==
"Dec"
?
item
.
profit_loss
.
q4_last_year
:
0
,
isNaN
(
persenQuarterLY
)
||
persenQuarterLY
==
'Infinity'
||
persenQuarterLY
==
'-Infinity'
?
(
q_last_year
==
''
||
q_last_year
==
0
?
-
0
:
0
)
:
(
q_last_year
==
''
||
q_last_year
==
0
?
persenQuarterLY
*
-
100
:
persenQuarterLY
*
100
),
// isNaN(persenQuarterLY) || persenQuarterLY == 'Infinity' || persenQuarterLY == '-Infinity'? (item.profit_loss.q1_last_year == '' || item.profit_loss.q1_last_year == 0? -0 : 0) : (item.profit_loss.q1_last_year == '' || item.profit_loss.q1_last_year == 0? persenQuarterLY * -100 : persenQuarterLY * 100),
item
.
profit_loss
.
fy_actual
,
...
...
@@ -2811,10 +2820,19 @@ export default class SubHolding extends Component {
isNaN
(
persenYtdMB
)
||
persenYtdMB
==
'Infinity'
||
persenYtdMB
==
'-Infinity'
?
(
item
.
profit_loss
.
ytd_mb
==
''
||
item
.
profit_loss
.
ytd_mb
==
0
?
-
0
:
0
)
:
(
item
.
profit_loss
.
ytd_mb
==
''
||
item
.
profit_loss
.
ytd_mb
==
0
?
persenYtdMB
*
-
100
:
persenYtdMB
*
100
),
item
.
profit_loss
.
ytd_last_year
,
isNaN
(
persenYtdLY
)
||
persenYtdLY
==
'Infinity'
||
persenYtdLY
==
'-Infinity'
?
(
item
.
profit_loss
.
ytd_last_year
==
''
||
item
.
profit_loss
.
ytd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
profit_loss
.
ytd_last_year
==
''
||
item
.
profit_loss
.
ytd_last_year
==
0
?
persenYtdLY
*
-
100
:
persenYtdLY
*
100
),
month
==
"Mar"
?
item
.
profit_loss
.
q1_actual
:
month
=
"Jun"
?
item
.
profit_loss
.
q2_actual
:
month
=
"Sep"
?
item
.
profit_loss
.
q3_actual
:
0
,
month
==
"Mar"
?
item
.
profit_loss
.
q1_mb
:
month
=
"Jun"
?
item
.
profit_loss
.
q2_mb
:
month
=
"Sep"
?
item
.
profit_loss
.
q3_mb
:
0
,
month
==
"Mar"
?
item
.
profit_loss
.
q1_actual
:
month
==
"Jun"
?
item
.
profit_loss
.
q2_actual
:
month
==
"Sep"
?
item
.
profit_loss
.
q3_actual
:
month
==
"Dec"
?
item
.
profit_loss
.
q4_actual
:
0
,
month
==
"Mar"
?
item
.
profit_loss
.
q1_mb
:
month
==
"Jun"
?
item
.
profit_loss
.
q2_mb
:
month
==
"Sep"
?
item
.
profit_loss
.
q3_mb
:
month
==
"Dec"
?
item
.
profit_loss
.
q4_mb
:
0
,
isNaN
(
persenQuarterMB
)
||
persenQuarterMB
==
'Infinity'
||
persenQuarterMB
==
'-Infinity'
?
(
q_mb
==
''
||
q_mb
==
0
?
-
0
:
0
)
:
(
q_mb
==
''
||
q_mb
==
0
?
persenQuarterMB
*
-
100
:
persenQuarterMB
*
100
),
month
==
"Mar"
?
item
.
profit_loss
.
q1_last_year
:
month
=
"Jun"
?
item
.
profit_loss
.
q2_last_year
:
month
=
"Sep"
?
item
.
profit_loss
.
q3_last_year
:
0
,
month
==
"Mar"
?
item
.
profit_loss
.
q1_last_year
:
month
==
"Jun"
?
item
.
profit_loss
.
q2_last_year
:
month
==
"Sep"
?
item
.
profit_loss
.
q3_last_year
:
month
==
"Dec"
?
item
.
profit_loss
.
q4_last_year
:
0
,
isNaN
(
persenQuarterLY
)
||
persenQuarterLY
==
'Infinity'
||
persenQuarterLY
==
'-Infinity'
?
(
q_last_year
==
''
||
q_last_year
==
0
?
-
0
:
0
)
:
(
q_last_year
==
''
||
q_last_year
==
0
?
persenQuarterLY
*
-
100
:
persenQuarterLY
*
100
),
item
.
profit_loss
.
fy_actual
,
item
.
profit_loss
.
fy_mb
,
...
...
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