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
92b41747
Commit
92b41747
authored
Jan 29, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pl summary
parent
78c706a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
285 additions
and
77 deletions
+285
-77
SubHolding.js
src/container/Laporan/SubHolding.js
+228
-52
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+57
-25
No files found.
src/container/Laporan/SubHolding.js
View file @
92b41747
...
...
@@ -1433,63 +1433,139 @@ export default class SubHolding extends Component {
const
handlePushChild
=
(
item
)
=>
{
let
indexIDzz
=
dbSumaPL
.
findIndex
((
val
)
=>
val
[
1
]
===
item
.
id
)
if
(
indexIDzz
===
-
1
)
{
let
mtd_actual
=
item
.
profit_loss
.
mtd_actual
==
''
?
0
:
item
.
profit_loss
.
mtd_actual
let
mtd_mb
=
item
.
profit_loss
.
mtd_mb
==
''
?
0
:
item
.
profit_loss
.
mtd_mb
let
mtd_actual
=
item
.
profit_loss
.
mtd_actual
==
''
?
0
:
Number
(
item
.
profit_loss
.
mtd_actual
)
let
mtd_mb
=
item
.
profit_loss
.
mtd_mb
==
''
?
0
:
Number
(
item
.
profit_loss
.
mtd_mb
)
let
mtd_last_year
=
item
.
profit_loss
.
mtd_last_year
==
''
?
0
:
Number
(
item
.
profit_loss
.
mtd_last_year
)
let
persenMtd
=
0
if
(
mtd_mb
<
0
)
{
if
(
mtd_actual
>=
mtd_mb
)
{
persenMtd
=
((
mtd_mb
-
mtd_actual
)
/
mtd_mb
+
1
)
persenMtd
=
(
mtd_mb
-
mtd_actual
)
/
mtd_mb
+
1
}
else
{
persenMtd
=
(
mtd_mb
-
mtd_actual
)
/
mtd_mb
}
}
else
{
persenMtd
=
mtd_actual
/
mtd_mb
}
let
persenMtdLY
=
0
if
(
mtd_last_year
<
0
)
{
if
(
mtd_actual
>=
mtd_last_year
)
{
persenMtdLY
=
(
mtd_last_year
-
mtd_actual
)
/
mtd_last_year
+
1
}
else
{
persenMtd
=
((
mtd_mb
-
mtd_actual
)
/
mtd_mb
)
persenMtd
LY
=
(
mtd_last_year
-
mtd_actual
)
/
mtd_last_year
}
}
else
{
persenMtd
=
Number
(
mtd_actual
/
mtd_mb
)
persenMtd
LY
=
mtd_actual
/
mtd_last_year
}
let
ytd_actual
=
item
.
profit_loss
.
ytd_actual
==
''
?
0
:
Number
(
item
.
profit_loss
.
ytd_actual
)
let
ytd_mb
=
item
.
profit_loss
.
ytd_mb
==
''
?
0
:
Number
(
item
.
profit_loss
.
ytd_mb
)
let
ytd_last_year
=
item
.
profit_loss
.
ytd_last_year
==
''
?
0
:
Number
(
item
.
profit_loss
.
ytd_last_year
)
let
persenYtdMB
=
0
if
(
ytd_mb
<
0
)
{
if
(
ytd_actual
>=
ytd_mb
)
{
persenYtdMB
=
(
(
ytd_mb
-
ytd_actual
)
/
ytd_mb
+
1
)
persenYtdMB
=
(
ytd_mb
-
ytd_actual
)
/
ytd_mb
+
1
}
else
{
persenYtdMB
=
(
(
ytd_mb
-
ytd_actual
)
/
ytd_mb
)
persenYtdMB
=
(
ytd_mb
-
ytd_actual
)
/
ytd_mb
}
}
else
{
persenYtdMB
=
Number
(
ytd_actual
/
ytd_mb
)
persenYtdMB
=
ytd_actual
/
ytd_mb
}
let
persenYtdLY
=
0
if
(
ytd_last_year
<
0
)
{
if
(
ytd_actual
>=
ytd_last_year
)
{
persenYtdLY
=
(
(
ytd_last_year
-
ytd_actual
)
/
ytd_last_year
+
1
)
persenYtdLY
=
(
ytd_last_year
-
ytd_actual
)
/
ytd_last_year
+
1
}
else
{
persenYtdLY
=
(
ytd_last_year
-
ytd_actual
)
/
ytd_last_year
}
}
else
{
persenYtdLY
=
Number
(
ytd_actual
/
ytd_last_year
)
}
let
q1_actual
=
item
.
profit_loss
.
q1_actual
==
''
?
0
:
item
.
profit_loss
.
q1_actual
let
q1_mb
=
item
.
profit_loss
.
q1_mb
==
''
?
0
:
item
.
profit_loss
.
q1_mb
let
q1_last_year
=
item
.
profit_loss
.
q1_last_year
==
''
?
0
:
item
.
profit_loss
.
q1_last_year
let
persenQuarterMB
=
Number
(
q1_actual
/
q1_mb
)
let
persenQuarterLY
=
Number
(
q1_actual
/
q1_last_year
)
let
fy_actual
=
item
.
profit_loss
.
fy_actual
==
''
?
0
:
item
.
profit_loss
.
fy_actual
let
fy_mb
=
item
.
profit_loss
.
fy_mb
==
''
?
0
:
item
.
profit_loss
.
fy_mb
let
fy_ol
=
item
.
profit_loss
.
fy_ol
==
''
?
0
:
item
.
profit_loss
.
fy_ol
let
fy_last_year
=
item
.
profit_loss
.
fy_last_year
==
''
?
0
:
item
.
profit_loss
.
fy_last_year
let
persenFyMB
=
Number
(
fy_actual
/
fy_mb
)
let
persenFyOL
=
Number
(
fy_actual
/
fy_ol
)
let
persenFyLY
=
Number
(
fy_actual
/
fy_last_year
)
persenYtdLY
=
ytd_actual
/
ytd_last_year
}
let
q1_actual
=
item
.
profit_loss
.
q1_actual
==
''
?
0
:
Number
(
item
.
profit_loss
.
q1_actual
)
let
q1_mb
=
item
.
profit_loss
.
q1_mb
==
''
?
0
:
Number
(
item
.
profit_loss
.
q1_mb
)
let
q1_last_year
=
item
.
profit_loss
.
q1_last_year
==
''
?
0
:
Number
(
item
.
profit_loss
.
q1_last_year
)
let
persenQuarterMB
=
0
if
(
q1_mb
<
0
)
{
if
(
q1_actual
>=
q1_mb
)
{
persenQuarterMB
=
(
q1_mb
-
q1_actual
)
/
q1_mb
+
1
}
else
{
persenQuarterMB
=
(
q1_mb
-
q1_actual
)
/
q1_mb
}
}
else
{
persenQuarterMB
=
q1_actual
/
q1_mb
}
let
persenQuarterLY
=
0
if
(
q1_last_year
<
0
)
{
if
(
q1_actual
>=
q1_last_year
)
{
persenQuarterLY
=
(
q1_last_year
-
q1_actual
)
/
q1_last_year
+
1
}
else
{
persenQuarterLY
=
(
q1_last_year
-
q1_actual
)
/
q1_last_year
}
}
else
{
persenQuarterLY
=
q1_actual
/
q1_last_year
}
let
fy_actual
=
item
.
profit_loss
.
fy_actual
==
''
?
0
:
Number
(
item
.
profit_loss
.
fy_actual
)
let
fy_mb
=
item
.
profit_loss
.
fy_mb
==
''
?
0
:
Number
(
item
.
profit_loss
.
fy_mb
)
let
fy_ol
=
item
.
profit_loss
.
fy_ol
==
''
?
0
:
Number
(
item
.
profit_loss
.
fy_ol
)
let
fy_last_year
=
item
.
profit_loss
.
fy_last_year
==
''
?
0
:
Number
(
item
.
profit_loss
.
fy_last_year
)
let
persenFyMB
=
0
if
(
fy_mb
<
0
)
{
if
(
fy_actual
>=
fy_mb
)
{
persenFyMB
=
(
fy_mb
-
fy_actual
)
/
fy_mb
+
1
}
else
{
persenFyMB
=
(
fy_mb
-
fy_actual
)
/
fy_mb
}
}
else
{
persenFyMB
=
fy_actual
/
fy_mb
}
let
persenFyOL
=
0
if
(
fy_ol
<
0
)
{
if
(
fy_actual
>=
fy_ol
)
{
persenFyOL
=
(
fy_ol
-
fy_actual
)
/
fy_ol
+
1
}
else
{
persenFyOL
=
(
fy_ol
-
fy_actual
)
/
fy_ol
}
}
else
{
persenFyOL
=
fy_actual
/
fy_ol
}
let
persenFyLY
=
0
if
(
fy_last_year
<
0
)
{
if
(
fy_actual
>=
fy_last_year
)
{
persenFyLY
=
(
fy_last_year
-
fy_actual
)
/
fy_last_year
+
1
}
else
{
persenFyLY
=
(
fy_last_year
-
fy_actual
)
/
fy_last_year
}
}
else
{
persenFyLY
=
fy_actual
/
fy_last_year
}
let
persenFyOLMB
=
Number
(
fy_ol
/
fy_mb
)
if
(
fy_mb
<
0
)
{
if
(
fy_ol
>=
fy_mb
)
{
persenFyLY
=
(
fy_mb
-
fy_ol
)
/
fy_mb
+
1
}
else
{
persenFyLY
=
(
fy_mb
-
fy_ol
)
/
fy_mb
}
}
else
{
persenFyLY
=
fy_ol
/
fy_mb
}
dbSumaPL
.
push
([
item
.
type_report_id
,
...
...
@@ -1502,6 +1578,7 @@ export default class SubHolding extends Component {
item
.
profit_loss
.
mtd_mb
,
isNaN
(
persenMtd
)
||
persenMtd
==
'Infinity'
||
persenMtd
==
'-Infinity'
?
(
item
.
profit_loss
.
mtd_mb
==
''
||
item
.
profit_loss
.
mtd_mb
==
0
?
-
0
:
0
)
:
(
item
.
profit_loss
.
mtd_mb
==
''
||
item
.
profit_loss
.
mtd_mb
==
0
?
persenMtd
*
-
100
:
persenMtd
*
100
),
item
.
profit_loss
.
mtd_last_year
,
isNaN
(
persenMtdLY
)
||
persenMtdLY
==
'Infinity'
||
persenMtdLY
==
'-Infinity'
?
(
item
.
profit_loss
.
mtd_last_year
==
''
||
item
.
profit_loss
.
mtd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
profit_loss
.
mtd_last_year
==
''
||
item
.
profit_loss
.
mtd_last_year
==
0
?
persenMtdLY
*
-
100
:
persenMtdLY
*
100
),
item
.
profit_loss
.
ytd_actual
,
item
.
profit_loss
.
ytd_mb
,
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
),
...
...
@@ -1536,39 +1613,137 @@ export default class SubHolding extends Component {
res
.
map
((
item
,
index
)
=>
{
let
mtd_actual
=
item
.
profit_loss
.
mtd_actual
==
''
?
0
:
Number
(
item
.
profit_loss
.
mtd_actual
)
let
mtd_mb
=
item
.
profit_loss
.
mtd_mb
==
''
?
0
:
Number
(
item
.
profit_loss
.
mtd_mb
)
let
mtd_last_year
=
item
.
profit_loss
.
mtd_last_year
==
''
?
0
:
Number
(
item
.
profit_loss
.
mtd_last_year
)
let
persenMtd
=
0
if
(
mtd_mb
<
0
)
{
if
(
mtd_actual
>=
mtd_mb
)
{
persenMtd
=
(
(
mtd_mb
-
mtd_actual
)
/
mtd_mb
+
1
)
persenMtd
=
(
mtd_mb
-
mtd_actual
)
/
mtd_mb
+
1
}
else
{
persenMtd
=
(
(
mtd_mb
-
mtd_actual
)
/
mtd_mb
)
persenMtd
=
(
mtd_mb
-
mtd_actual
)
/
mtd_mb
}
}
else
{
persenMtd
=
Number
(
mtd_actual
/
mtd_mb
)
persenMtd
=
mtd_actual
/
mtd_mb
}
let
persenMtdLY
=
0
if
(
mtd_last_year
<
0
)
{
if
(
mtd_actual
>=
mtd_last_year
)
{
persenMtdLY
=
(
mtd_last_year
-
mtd_actual
)
/
mtd_last_year
+
1
}
else
{
persenMtdLY
=
(
mtd_last_year
-
mtd_actual
)
/
mtd_last_year
}
}
else
{
persenMtdLY
=
mtd_actual
/
mtd_last_year
}
let
ytd_actual
=
item
.
profit_loss
.
ytd_actual
==
''
?
0
:
item
.
profit_loss
.
ytd_actual
let
ytd_mb
=
item
.
profit_loss
.
ytd_mb
==
''
?
0
:
item
.
profit_loss
.
ytd_mb
let
ytd_last_year
=
item
.
profit_loss
.
ytd_last_year
==
''
?
0
:
item
.
profit_loss
.
ytd_last_year
let
persenYtdMB
=
Number
(
ytd_actual
/
ytd_mb
)
let
persenYtdLY
=
Number
(
ytd_actual
/
ytd_last_year
)
let
q1_actual
=
item
.
profit_loss
.
q1_actual
==
''
?
0
:
item
.
profit_loss
.
q1_actual
let
q1_mb
=
item
.
profit_loss
.
q1_mb
==
''
?
0
:
item
.
profit_loss
.
q1_mb
let
q1_last_year
=
item
.
profit_loss
.
q1_last_year
==
''
?
0
:
item
.
profit_loss
.
q1_last_year
let
persenQuarterMB
=
Number
(
q1_actual
/
q1_mb
)
let
persenQuarterLY
=
Number
(
q1_actual
/
q1_last_year
)
let
ytd_actual
=
item
.
profit_loss
.
ytd_actual
==
''
?
0
:
Number
(
item
.
profit_loss
.
ytd_actual
)
let
ytd_mb
=
item
.
profit_loss
.
ytd_mb
==
''
?
0
:
Number
(
item
.
profit_loss
.
ytd_mb
)
let
ytd_last_year
=
item
.
profit_loss
.
ytd_last_year
==
''
?
0
:
Number
(
item
.
profit_loss
.
ytd_last_year
)
let
persenYtdMB
=
0
if
(
ytd_mb
<
0
)
{
if
(
ytd_actual
>=
ytd_mb
)
{
persenYtdMB
=
(
ytd_mb
-
ytd_actual
)
/
ytd_mb
+
1
}
else
{
persenYtdMB
=
(
ytd_mb
-
ytd_actual
)
/
ytd_mb
}
}
else
{
persenYtdMB
=
ytd_actual
/
ytd_mb
}
let
persenYtdLY
=
0
if
(
ytd_last_year
<
0
)
{
if
(
ytd_actual
>=
ytd_last_year
)
{
persenYtdLY
=
(
ytd_last_year
-
ytd_actual
)
/
ytd_last_year
+
1
}
else
{
persenYtdLY
=
(
ytd_last_year
-
ytd_actual
)
/
ytd_last_year
}
}
else
{
persenYtdLY
=
ytd_actual
/
ytd_last_year
}
let
q1_actual
=
item
.
profit_loss
.
q1_actual
==
''
?
0
:
Number
(
item
.
profit_loss
.
q1_actual
)
let
q1_mb
=
item
.
profit_loss
.
q1_mb
==
''
?
0
:
Number
(
item
.
profit_loss
.
q1_mb
)
let
q1_last_year
=
item
.
profit_loss
.
q1_last_year
==
''
?
0
:
Number
(
item
.
profit_loss
.
q1_last_year
)
let
persenQuarterMB
=
0
if
(
q1_mb
<
0
)
{
if
(
q1_actual
>=
q1_mb
)
{
persenQuarterMB
=
(
q1_mb
-
q1_actual
)
/
q1_mb
+
1
}
else
{
persenQuarterMB
=
(
q1_mb
-
q1_actual
)
/
q1_mb
}
}
else
{
persenQuarterMB
=
q1_actual
/
q1_mb
}
let
persenQuarterLY
=
0
if
(
q1_last_year
<
0
)
{
if
(
q1_actual
>=
q1_last_year
)
{
persenQuarterLY
=
(
q1_last_year
-
q1_actual
)
/
q1_last_year
+
1
}
else
{
persenQuarterLY
=
(
q1_last_year
-
q1_actual
)
/
q1_last_year
}
}
else
{
persenQuarterLY
=
q1_actual
/
q1_last_year
}
let
fy_actual
=
item
.
profit_loss
.
fy_actual
==
''
?
0
:
Number
(
item
.
profit_loss
.
fy_actual
)
let
fy_mb
=
item
.
profit_loss
.
fy_mb
==
''
?
0
:
Number
(
item
.
profit_loss
.
fy_mb
)
let
fy_ol
=
item
.
profit_loss
.
fy_ol
==
''
?
0
:
Number
(
item
.
profit_loss
.
fy_ol
)
let
fy_last_year
=
item
.
profit_loss
.
fy_last_year
==
''
?
0
:
Number
(
item
.
profit_loss
.
fy_last_year
)
let
persenFyMB
=
0
if
(
fy_mb
<
0
)
{
if
(
fy_actual
>=
fy_mb
)
{
persenFyMB
=
(
fy_mb
-
fy_actual
)
/
fy_mb
+
1
}
else
{
persenFyMB
=
(
fy_mb
-
fy_actual
)
/
fy_mb
}
}
else
{
persenFyMB
=
fy_actual
/
fy_mb
}
let
persenFyOL
=
0
if
(
fy_ol
<
0
)
{
if
(
fy_actual
>=
fy_ol
)
{
persenFyOL
=
(
fy_ol
-
fy_actual
)
/
fy_ol
+
1
}
else
{
persenFyOL
=
(
fy_ol
-
fy_actual
)
/
fy_ol
}
}
else
{
persenFyOL
=
fy_actual
/
fy_ol
}
let
persenFyLY
=
0
if
(
fy_last_year
<
0
)
{
if
(
fy_actual
>=
fy_last_year
)
{
persenFyLY
=
(
fy_last_year
-
fy_actual
)
/
fy_last_year
+
1
}
else
{
persenFyLY
=
(
fy_last_year
-
fy_actual
)
/
fy_last_year
}
}
else
{
persenFyLY
=
fy_actual
/
fy_last_year
}
let
fy_actual
=
item
.
profit_loss
.
fy_actual
==
''
?
0
:
item
.
profit_loss
.
fy_actual
let
fy_mb
=
item
.
profit_loss
.
fy_mb
==
''
?
0
:
item
.
profit_loss
.
fy_mb
let
fy_ol
=
item
.
profit_loss
.
fy_ol
==
''
?
0
:
item
.
profit_loss
.
fy_ol
let
fy_last_year
=
item
.
profit_loss
.
fy_last_year
==
''
?
0
:
item
.
profit_loss
.
fy_last_year
let
persenFyMB
=
Number
(
fy_actual
/
fy_mb
)
let
persenFyOL
=
Number
(
fy_actual
/
fy_ol
)
let
persenFyLY
=
Number
(
fy_actual
/
fy_last_year
)
let
persenFyOLMB
=
Number
(
fy_ol
/
fy_mb
)
if
(
fy_mb
<
0
)
{
if
(
fy_ol
>=
fy_mb
)
{
persenFyLY
=
(
fy_mb
-
fy_ol
)
/
fy_mb
+
1
}
else
{
persenFyLY
=
(
fy_mb
-
fy_ol
)
/
fy_mb
}
}
else
{
persenFyLY
=
fy_ol
/
fy_mb
}
dbSumaPL
.
push
([
item
.
type_report_id
,
...
...
@@ -1581,6 +1756,7 @@ export default class SubHolding extends Component {
item
.
profit_loss
.
mtd_mb
,
isNaN
(
persenMtd
)
||
persenMtd
==
'Infinity'
||
persenMtd
==
'-Infinity'
?
(
item
.
profit_loss
.
mtd_mb
==
''
||
item
.
profit_loss
.
mtd_mb
==
0
?
-
0
:
0
)
:
(
item
.
profit_loss
.
mtd_mb
==
''
||
item
.
profit_loss
.
mtd_mb
==
0
?
persenMtd
*
-
100
:
persenMtd
*
100
),
item
.
profit_loss
.
mtd_last_year
,
isNaN
(
persenMtdLY
)
||
persenMtdLY
==
'Infinity'
||
persenMtdLY
==
'-Infinity'
?
(
item
.
profit_loss
.
mtd_last_year
==
''
||
item
.
profit_loss
.
mtd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
profit_loss
.
mtd_last_year
==
''
||
item
.
profit_loss
.
mtd_last_year
==
0
?
persenMtdLY
*
-
100
:
persenMtdLY
*
100
),
item
.
profit_loss
.
ytd_actual
,
item
.
profit_loss
.
ytd_mb
,
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
),
...
...
src/container/Laporan/TableSubHolding.js
View file @
92b41747
...
...
@@ -15470,7 +15470,7 @@ export default class TableSubHolding extends Component {
{tableMeta.rowData[0] === 4 ? null : tableMeta.rowData[4] === 0 ? null : tableMeta.rowData[4] === 1 ? null :
<FormControlLabel
style={{ margin: 0 }}
// value={tableMeta.rowData[3
0
]}
// value={tableMeta.rowData[3
1
]}
control={
<Input
disableUnderline={true}
...
...
@@ -15478,8 +15478,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
// value={tableMeta.rowData[3
0
]}
defaultValue={tableMeta.rowData[3
0
]}
// value={tableMeta.rowData[3
1
]}
defaultValue={tableMeta.rowData[3
1
]}
inputProps={{
style: {
color: "#5198ea"
...
...
@@ -15504,7 +15504,7 @@ export default class TableSubHolding extends Component {
<th style={{ ...style2, color: '#fff', backgroundColor: '#1c71b8', color: '#fff', top: 0, zIndex: 102, fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)"}} >
<div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5, height: 50, paddingTop: 15 }}>{columnMeta.name}</div>
<div className="grid grid-1x" style={{ ...style2, backgroundColor: '#37b5e6', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
<div className="column-1 grid grid-
4
x" style={{ placeSelf: 'center', textAlign: 'center' }}>
<div className="column-1 grid grid-
5
x" style={{ placeSelf: 'center', textAlign: 'center' }}>
<div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d0' }}>
<span>{"Actual"}</span>
</div>
...
...
@@ -15517,6 +15517,9 @@ export default class TableSubHolding extends Component {
<div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d06' }}>
<span>{"Last Year"}</span>
</div>
<div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d06' }}>
<span>{"% of LY"}</span>
</div>
</div>
</div>
</th>
...
...
@@ -15526,7 +15529,7 @@ export default class TableSubHolding extends Component {
return (
<div>
<div className="grid grid-1x content-center">
<div className="grid grid-
4
x content-center">
<div className="grid grid-
5
x content-center">
<div className="col-1">
{tableMeta.rowData[0] === 4 ?
null
...
...
@@ -15622,6 +15625,30 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-5">
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
null :
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={val}
control={
<NumberFormat
thousandSeparator={true}
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
suffix={'%'}
disabled={true}
value={Number(tableMeta.rowData[10]).toFixed(2)}
/>
}
/>
</div>
}
</div>
</div>
</div>
</div>
...
...
@@ -15677,7 +15704,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[1
0
]).toFixed(1)}
value={Number(tableMeta.rowData[1
1
]).toFixed(1)}
/>
}
/>
...
...
@@ -15700,7 +15727,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[1
1
]).toFixed(1)}
value={Number(tableMeta.rowData[1
2
]).toFixed(1)}
/>
}
/>
...
...
@@ -15724,7 +15751,7 @@ export default class TableSubHolding extends Component {
placeholder=""
suffix={'%'}
disabled={true}
value={Number(tableMeta.rowData[1
2
]).toFixed(2)}
value={Number(tableMeta.rowData[1
3
]).toFixed(2)}
/>
}
/>
...
...
@@ -15747,7 +15774,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[1
3
]).toFixed(1)}
value={Number(tableMeta.rowData[1
4
]).toFixed(1)}
/>
}
/>
...
...
@@ -15771,7 +15798,7 @@ export default class TableSubHolding extends Component {
suffix={'%'}
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[1
4
]).toFixed(2)}
value={Number(tableMeta.rowData[1
5
]).toFixed(2)}
/>
}
/>
...
...
@@ -15833,7 +15860,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[1
5
]).toFixed(1)}
value={Number(tableMeta.rowData[1
6
]).toFixed(1)}
/>
}
/>
...
...
@@ -15856,7 +15883,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[1
6
]).toFixed(1)}
value={Number(tableMeta.rowData[1
7
]).toFixed(1)}
/>
}
/>
...
...
@@ -15880,7 +15907,7 @@ export default class TableSubHolding extends Component {
placeholder=""
suffix={'%'}
disabled={true}
value={Number(tableMeta.rowData[1
7
]).toFixed(2)}
value={Number(tableMeta.rowData[1
8
]).toFixed(2)}
/>
}
/>
...
...
@@ -15903,7 +15930,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[1
8
]).toFixed(1)}
value={Number(tableMeta.rowData[1
9
]).toFixed(1)}
/>
}
/>
...
...
@@ -15927,7 +15954,7 @@ export default class TableSubHolding extends Component {
placeholder=""
suffix={'%'}
disabled={true}
value={Number(tableMeta.rowData[
19
]).toFixed(2)}
value={Number(tableMeta.rowData[
20
]).toFixed(2)}
/>
}
/>
...
...
@@ -16001,7 +16028,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[2
0
]).toFixed(1)}
value={Number(tableMeta.rowData[2
1
]).toFixed(1)}
/>
}
/>
...
...
@@ -16024,7 +16051,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[2
1
]).toFixed(1)}
value={Number(tableMeta.rowData[2
2
]).toFixed(1)}
/>
}
/>
...
...
@@ -16048,7 +16075,7 @@ export default class TableSubHolding extends Component {
placeholder=""
suffix={'%'}
disabled={true}
value={Number(tableMeta.rowData[2
2
]).toFixed(2)}
value={Number(tableMeta.rowData[2
3
]).toFixed(2)}
/>
}
/>
...
...
@@ -16071,7 +16098,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[2
3
]).toFixed(1)}
value={Number(tableMeta.rowData[2
4
]).toFixed(1)}
/>
}
/>
...
...
@@ -16098,7 +16125,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[2
4
]).toFixed(1)}
value={Number(tableMeta.rowData[2
5
]).toFixed(1)}
/>
}
/>
...
...
@@ -16121,7 +16148,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[2
5
]).toFixed(1)}
value={Number(tableMeta.rowData[2
6
]).toFixed(1)}
/>
}
/>
...
...
@@ -16145,7 +16172,7 @@ export default class TableSubHolding extends Component {
placeholder=""
suffix={'%'}
disabled={true}
value={Number(tableMeta.rowData[2
6
]).toFixed(2)}
value={Number(tableMeta.rowData[2
7
]).toFixed(2)}
/>
}
/>
...
...
@@ -16169,7 +16196,7 @@ export default class TableSubHolding extends Component {
placeholder=""
suffix={'%'}
disabled={true}
value={Number(tableMeta.rowData[2
7
]).toFixed(2)}
value={Number(tableMeta.rowData[2
8
]).toFixed(2)}
/>
}
/>
...
...
@@ -16218,7 +16245,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[2
8
]).toFixed(1)}
value={Number(tableMeta.rowData[2
9
]).toFixed(1)}
/>
}
/>
...
...
@@ -16263,7 +16290,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[
29
]).toFixed(1)}
value={Number(tableMeta.rowData[
30
]).toFixed(1)}
/>
}
/>
...
...
@@ -16363,6 +16390,11 @@ export default class TableSubHolding extends Component {
options: {
display: false
}
} , {
name: "",
options: {
display: false
}
}
]
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