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
d9c0fa89
Commit
d9c0fa89
authored
Feb 08, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
f7b3f0ab
c432b4fd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
74 deletions
+76
-74
index.js
src/api/index.js
+1
-1
SummaryOfTriputra.js
src/container/SummaryTriputra/SummaryOfTriputra.js
+71
-69
TableSummaryTriputra.js
src/container/SummaryTriputra/TableSummaryTriputra.js
+4
-4
No files found.
src/api/index.js
View file @
d9c0fa89
...
...
@@ -271,7 +271,7 @@ const create = (type = "") => {
const
getReportFRLastMR
=
(
body
)
=>
api
.
post
(
'/transaction/summary_ratio/monthly_report_last_year/get_report_hierarki'
,
body
)
const
getReportBSSuma
=
(
body
)
=>
api
.
post
(
'/transaction/summary_balance_sheet/summary/get_report_hierarki'
,
body
)
const
getDashboardCAT
=
(
body
)
=>
api
.
post
(
'/dashboard/cat'
,
body
)
const
getHierarkiReportYtd
=
(
body
)
=>
api
.
post
(
'/transaction/summary
/ytd
/get_report_hierarki'
,
body
)
const
getHierarkiReportYtd
=
(
body
)
=>
api
.
post
(
'/transaction/summary
_ytd/summary
/get_report_hierarki'
,
body
)
const
getHierarkiReportHistorical
=
(
body
)
=>
api
.
post
(
'/transaction/summary_historical/summary/get_report_hierarki'
,
body
)
const
getHierarkiReportMTD
=
(
body
)
=>
api
.
post
(
'/transaction/summary_mtd/summary/get_report_hierarki'
,
body
)
const
getFullApproveMB
=
(
body
)
=>
api
.
post
(
'/transaction/master_budget/get_approved_submit'
,
body
)
...
...
src/container/SummaryTriputra/SummaryOfTriputra.js
View file @
d9c0fa89
...
...
@@ -326,7 +326,7 @@ export default class SummaryOfTriputra extends Component {
console
.
log
(
response
);
let
dataTable
=
[]
if
(
response
.
data
)
{
let
res
=
response
.
data
.
data
let
res
=
[
response
.
data
.
data
]
const
handlePushChild
=
(
item
)
=>
{
let
indexIDzz
=
dataTable
.
findIndex
((
val
)
=>
val
[
0
]
===
item
.
company_id
)
if
(
indexIDzz
===
-
1
)
{
...
...
@@ -535,66 +535,67 @@ export default class SummaryOfTriputra extends Component {
}
dataTable
.
push
([
item
.
company_id
,
// item.company_id,
0
,
item
.
parent
,
item
.
level
,
item
.
company
_name
,
item
.
item
_name
,
item
.
revenue_ytd_act
,
item
.
revenue_ytd_mb
,
//
item.revenue_ytd_percent_of_mb,
isNaN
(
revenueYtdPersenMB
)
||
revenueYtdPersenMB
==
'Infinity'
||
revenueYtdPersenMB
==
'-Infinity'
?
(
item
.
revenue_ytd_mb
==
''
||
item
.
revenue_ytd_mb
==
0
?
-
0
:
0
)
:
(
item
.
revenue_ytd_mb
==
''
||
item
.
revenue_ytd_mb
==
0
?
Number
(
revenueYtdPersenMB
)
*
Number
(
-
100
)
:
Number
(
revenueYtdPersenMB
)
*
Number
(
100
)
),
item
.
revenue_ytd_percent_of_mb
,
//
isNaN(revenueYtdPersenMB) || revenueYtdPersenMB == 'Infinity' || revenueYtdPersenMB == '-Infinity' ? ( item.revenue_ytd_mb == '' || item.revenue_ytd_mb == 0 ? -0 : 0 ) : ( item.revenue_ytd_mb == '' || item.revenue_ytd_mb == 0 ? Number(revenueYtdPersenMB) * Number(-100) : Number(revenueYtdPersenMB) * Number(100) ),
item
.
revenue_ytd_last_year
,
//
item.revenue_ytd_percent_of_last_year,
isNaN
(
revenueYtdPersenLY
)
||
revenueYtdPersenLY
==
'Infinity'
||
revenueYtdPersenLY
==
'-Infinity'
?
(
item
.
revenue_ytd_last_year
==
''
||
item
.
revenue_ytd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
revenue_ytd_last_year
==
''
||
item
.
revenue_ytd_last_year
==
0
?
Number
(
revenueYtdPersenLY
)
*
Number
(
-
100
)
:
Number
(
revenueYtdPersenLY
)
*
Number
(
100
)
),
item
.
revenue_ytd_percent_of_last_year
,
//
isNaN(revenueYtdPersenLY) || revenueYtdPersenLY == 'Infinity' || revenueYtdPersenLY == '-Infinity' ? ( item.revenue_ytd_last_year == '' || item.revenue_ytd_last_year == 0 ? -0 : 0 ) : ( item.revenue_ytd_last_year == '' || item.revenue_ytd_last_year == 0 ? Number(revenueYtdPersenLY) * Number(-100) : Number(revenueYtdPersenLY) * Number(100) ),
item
.
revenue_fy_ol
,
item
.
revenue_fy_mb
,
//
item.revenue_fy_percent_of_mb,
isNaN
(
revenueFyPersenMB
)
||
revenueFyPersenMB
==
'Infinity'
||
revenueFyPersenMB
==
'-Infinity'
?
(
item
.
revenue_fy_mb
==
''
||
item
.
revenue_fy_mb
==
0
?
-
0
:
0
)
:
(
item
.
revenue_fy_mb
==
''
||
item
.
revenue_fy_mb
==
0
?
Number
(
revenueFyPersenMB
)
*
Number
(
-
100
)
:
Number
(
revenueFyPersenMB
)
*
Number
(
100
)
),
item
.
revenue_fy_percent_of_mb
,
//
isNaN(revenueFyPersenMB) || revenueFyPersenMB == 'Infinity' || revenueFyPersenMB == '-Infinity' ? ( item.revenue_fy_mb == '' || item.revenue_fy_mb == 0 ? -0 : 0 ) : ( item.revenue_fy_mb == '' || item.revenue_fy_mb == 0 ? Number(revenueFyPersenMB) * Number(-100) : Number(revenueFyPersenMB) * Number(100) ),
item
.
revenue_fy_last_year
,
//
item.revenue_fy_percent_of_last_year,
isNaN
(
revenueFyPersenLY
)
||
revenueFyPersenLY
==
'Infinity'
||
revenueFyPersenLY
==
'-Infinity'
?
(
item
.
revenue_fy_last_year
==
''
||
item
.
revenue_fy_last_year
==
0
?
-
0
:
0
)
:
(
item
.
revenue_fy_last_year
==
''
||
item
.
revenue_fy_last_year
==
0
?
Number
(
revenueFyPersenLY
)
*
Number
(
-
100
)
:
Number
(
revenueFyPersenLY
)
*
Number
(
100
)
),
item
.
revenue_fy_percent_of_last_year
,
//
isNaN(revenueFyPersenLY) || revenueFyPersenLY == 'Infinity' || revenueFyPersenLY == '-Infinity' ? ( item.revenue_fy_last_year == '' || item.revenue_fy_last_year == 0 ? -0 : 0 ) : ( item.revenue_fy_last_year == '' || item.revenue_fy_last_year == 0 ? Number(revenueFyPersenLY) * Number(-100) : Number(revenueFyPersenLY) * Number(100) ),
item
.
ebitda_ytd_act
,
item
.
ebitda_ytd_mb
,
//
item.ebitda_ytd_percent_of_mb,
isNaN
(
ebitdaYtdPersenMB
)
||
ebitdaYtdPersenMB
==
'Infinity'
||
ebitdaYtdPersenMB
==
'-Infinity'
?
(
item
.
ebitda_ytd_mb
==
''
||
item
.
ebitda_ytd_mb
==
0
?
-
0
:
0
)
:
(
item
.
ebitda_ytd_mb
==
''
||
item
.
ebitda_ytd_mb
==
0
?
Number
(
ebitdaYtdPersenMB
)
*
Number
(
-
100
)
:
Number
(
ebitdaYtdPersenMB
)
*
Number
(
100
)
),
item
.
ebitda_ytd_percent_of_mb
,
//
isNaN(ebitdaYtdPersenMB) || ebitdaYtdPersenMB == 'Infinity' || ebitdaYtdPersenMB == '-Infinity' ? ( item.ebitda_ytd_mb == '' || item.ebitda_ytd_mb == 0 ? -0 : 0 ) : ( item.ebitda_ytd_mb == '' || item.ebitda_ytd_mb == 0 ? Number(ebitdaYtdPersenMB) * Number(-100) : Number(ebitdaYtdPersenMB) * Number(100) ),
item
.
ebitda_ytd_last_year
,
//
item.ebitda_ytd_percent_of_last_year,
isNaN
(
ebitdaYtdPersenLY
)
||
ebitdaYtdPersenLY
==
'Infinity'
||
ebitdaYtdPersenLY
==
'-Infinity'
?
(
item
.
ebitda_ytd_last_year
==
''
||
item
.
ebitda_ytd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
ebitda_ytd_last_year
==
''
||
item
.
ebitda_ytd_last_year
==
0
?
Number
(
ebitdaYtdPersenLY
)
*
Number
(
-
100
)
:
Number
(
ebitdaYtdPersenLY
)
*
Number
(
100
)
),
item
.
ebitda_ytd_percent_of_last_year
,
//
isNaN(ebitdaYtdPersenLY) || ebitdaYtdPersenLY == 'Infinity' || ebitdaYtdPersenLY == '-Infinity' ? ( item.ebitda_ytd_last_year == '' || item.ebitda_ytd_last_year == 0 ? -0 : 0 ) : ( item.ebitda_ytd_last_year == '' || item.ebitda_ytd_last_year == 0 ? Number(ebitdaYtdPersenLY) * Number(-100) : Number(ebitdaYtdPersenLY) * Number(100) ),
item
.
ebitda_fy_ol
,
item
.
ebitda_fy_mb
,
//
item.ebitda_fy_percent_of_mb,
isNaN
(
ebitdaFyPersenMB
)
||
ebitdaFyPersenMB
==
'Infinity'
||
ebitdaFyPersenMB
==
'-Infinity'
?
(
item
.
ebitda_fy_mb
==
''
||
item
.
ebitda_fy_mb
==
0
?
-
0
:
0
)
:
(
item
.
ebitda_fy_mb
==
''
||
item
.
ebitda_fy_mb
==
0
?
Number
(
ebitdaFyPersenMB
)
*
Number
(
-
100
)
:
Number
(
ebitdaFyPersenMB
)
*
Number
(
100
)
),
item
.
ebitda_fy_percent_of_mb
,
//
isNaN(ebitdaFyPersenMB) || ebitdaFyPersenMB == 'Infinity' || ebitdaFyPersenMB == '-Infinity' ? ( item.ebitda_fy_mb == '' || item.ebitda_fy_mb == 0 ? -0 : 0 ) : ( item.ebitda_fy_mb == '' || item.ebitda_fy_mb == 0 ? Number(ebitdaFyPersenMB) * Number(-100) : Number(ebitdaFyPersenMB) * Number(100) ),
item
.
ebitda_fy_last_year
,
//
item.ebitda_fy_percent_of_last_year,
isNaN
(
ebitdaFyPersenLY
)
||
ebitdaFyPersenLY
==
'Infinity'
||
ebitdaFyPersenLY
==
'-Infinity'
?
(
item
.
ebitda_fy_last_year
==
''
||
item
.
ebitda_fy_last_year
==
0
?
-
0
:
0
)
:
(
item
.
ebitda_fy_last_year
==
''
||
item
.
ebitda_fy_last_year
==
0
?
Number
(
ebitdaFyPersenLY
)
*
Number
(
-
100
)
:
Number
(
ebitdaFyPersenLY
)
*
Number
(
100
)
),
item
.
ebitda_fy_percent_of_last_year
,
//
isNaN(ebitdaFyPersenLY) || ebitdaFyPersenLY == 'Infinity' || ebitdaFyPersenLY == '-Infinity' ? ( item.ebitda_fy_last_year == '' || item.ebitda_fy_last_year == 0 ? -0 : 0 ) : ( item.ebitda_fy_last_year == '' || item.ebitda_fy_last_year == 0 ? Number(ebitdaFyPersenLY) * Number(-100) : Number(ebitdaFyPersenLY) * Number(100) ),
item
.
tpat_ytd_act
,
item
.
tpat_ytd_mb
,
//
item.tpat_ytd_percent_of_mb,
isNaN
(
tpatYtdPersenMB
)
||
tpatYtdPersenMB
==
'Infinity'
||
tpatYtdPersenMB
==
'-Infinity'
?
(
item
.
tpat_ytd_mb
==
''
||
item
.
tpat_ytd_mb
==
0
?
-
0
:
0
)
:
(
item
.
tpat_ytd_mb
==
''
||
item
.
tpat_ytd_mb
==
0
?
Number
(
tpatYtdPersenMB
)
*
Number
(
-
100
)
:
Number
(
tpatYtdPersenMB
)
*
Number
(
100
)
),
item
.
tpat_ytd_percent_of_mb
,
//
isNaN(tpatYtdPersenMB) || tpatYtdPersenMB == 'Infinity' || tpatYtdPersenMB == '-Infinity' ? ( item.tpat_ytd_mb == '' || item.tpat_ytd_mb == 0 ? -0 : 0 ) : ( item.tpat_ytd_mb == '' || item.tpat_ytd_mb == 0 ? Number(tpatYtdPersenMB) * Number(-100) : Number(tpatYtdPersenMB) * Number(100) ),
item
.
tpat_ytd_last_year
,
//
item.tpat_ytd_percent_of_last_year,
isNaN
(
tpatYtdPersenLY
)
||
tpatYtdPersenLY
==
'Infinity'
||
tpatYtdPersenLY
==
'-Infinity'
?
(
item
.
tpat_ytd_last_year
==
''
||
item
.
tpat_ytd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
tpat_ytd_last_year
==
''
||
item
.
tpat_ytd_last_year
==
0
?
Number
(
tpatYtdPersenLY
)
*
Number
(
-
100
)
:
Number
(
tpatYtdPersenLY
)
*
Number
(
100
)
),
item
.
tpat_ytd_percent_of_last_year
,
//
isNaN(tpatYtdPersenLY) || tpatYtdPersenLY == 'Infinity' || tpatYtdPersenLY == '-Infinity' ? ( item.tpat_ytd_last_year == '' || item.tpat_ytd_last_year == 0 ? -0 : 0 ) : ( item.tpat_ytd_last_year == '' || item.tpat_ytd_last_year == 0 ? Number(tpatYtdPersenLY) * Number(-100) : Number(tpatYtdPersenLY) * Number(100) ),
item
.
tpat_fy_ol
,
item
.
tpat_fy_mb
,
//
item.tpat_fy_percent_of_mb,
isNaN
(
tpatFyPersenMB
)
||
tpatFyPersenMB
==
'Infinity'
||
tpatFyPersenMB
==
'-Infinity'
?
(
item
.
tpat_fy_mb
==
''
||
item
.
tpat_fy_mb
==
0
?
-
0
:
0
)
:
(
item
.
tpat_fy_mb
==
''
||
item
.
tpat_fy_mb
==
0
?
Number
(
tpatFyPersenMB
)
*
Number
(
-
100
)
:
Number
(
tpatFyPersenMB
)
*
Number
(
100
)
),
item
.
tpat_fy_percent_of_mb
,
//
isNaN(tpatFyPersenMB) || tpatFyPersenMB == 'Infinity' || tpatFyPersenMB == '-Infinity' ? ( item.tpat_fy_mb == '' || item.tpat_fy_mb == 0 ? -0 : 0 ) : ( item.tpat_fy_mb == '' || item.tpat_fy_mb == 0 ? Number(tpatFyPersenMB) * Number(-100) : Number(tpatFyPersenMB) * Number(100) ),
item
.
tpat_fy_last_year
,
//
item.tpat_fy_percent_of_last_year,
isNaN
(
tpatFyPersenLY
)
||
tpatFyPersenLY
==
'Infinity'
||
tpatFyPersenLY
==
'-Infinity'
?
(
item
.
tpat_fy_last_year
==
''
||
item
.
tpat_fy_last_year
==
0
?
-
0
:
0
)
:
(
item
.
tpat_fy_last_year
==
''
||
item
.
tpat_fy_last_year
==
0
?
Number
(
tpatFyPersenLY
)
*
Number
(
-
100
)
:
Number
(
tpatFyPersenLY
)
*
Number
(
100
)
),
item
.
tpat_fy_percent_of_last_year
,
//
isNaN(tpatFyPersenLY) || tpatFyPersenLY == 'Infinity' || tpatFyPersenLY == '-Infinity' ? ( item.tpat_fy_last_year == '' || item.tpat_fy_last_year == 0 ? -0 : 0 ) : ( item.tpat_fy_last_year == '' || item.tpat_fy_last_year == 0 ? Number(tpatFyPersenLY) * Number(-100) : Number(tpatFyPersenLY) * Number(100) ),
item
.
npat_ytd_act
,
item
.
npat_ytd_mb
,
//
item.npat_ytd_percent_of_mb,
isNaN
(
npatYtdPersenMB
)
||
npatYtdPersenMB
==
'Infinity'
||
npatYtdPersenMB
==
'-Infinity'
?
(
item
.
npat_ytd_mb
==
''
||
item
.
npat_ytd_mb
==
0
?
-
0
:
0
)
:
(
item
.
npat_ytd_mb
==
''
||
item
.
npat_ytd_mb
==
0
?
Number
(
npatYtdPersenMB
)
*
Number
(
-
100
)
:
Number
(
npatYtdPersenMB
)
*
Number
(
100
)
),
item
.
npat_ytd_percent_of_mb
,
//
isNaN(npatYtdPersenMB) || npatYtdPersenMB == 'Infinity' || npatYtdPersenMB == '-Infinity' ? ( item.npat_ytd_mb == '' || item.npat_ytd_mb == 0 ? -0 : 0 ) : ( item.npat_ytd_mb == '' || item.npat_ytd_mb == 0 ? Number(npatYtdPersenMB) * Number(-100) : Number(npatYtdPersenMB) * Number(100) ),
item
.
npat_ytd_last_year
,
//
item.npat_ytd_percent_of_last_year,
isNaN
(
npatYtdPersenLY
)
||
npatYtdPersenLY
==
'Infinity'
||
npatYtdPersenLY
==
'-Infinity'
?
(
item
.
npat_ytd_last_year
==
''
||
item
.
npat_ytd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
npat_ytd_last_year
==
''
||
item
.
npat_ytd_last_year
==
0
?
Number
(
npatYtdPersenLY
)
*
Number
(
-
100
)
:
Number
(
npatYtdPersenLY
)
*
Number
(
100
)
),
item
.
npat_ytd_percent_of_last_year
,
//
isNaN(npatYtdPersenLY) || npatYtdPersenLY == 'Infinity' || npatYtdPersenLY == '-Infinity' ? ( item.npat_ytd_last_year == '' || item.npat_ytd_last_year == 0 ? -0 : 0 ) : ( item.npat_ytd_last_year == '' || item.npat_ytd_last_year == 0 ? Number(npatYtdPersenLY) * Number(-100) : Number(npatYtdPersenLY) * Number(100) ),
item
.
npat_fy_ol
,
item
.
npat_fy_mb
,
//
item.npat_fy_percent_of_mb,
isNaN
(
npatFyPersenMB
)
||
npatFyPersenMB
==
'Infinity'
||
npatFyPersenMB
==
'-Infinity'
?
(
item
.
npat_fy_mb
==
''
||
item
.
npat_fy_mb
==
0
?
-
0
:
0
)
:
(
item
.
npat_fy_mb
==
''
||
item
.
npat_fy_mb
==
0
?
Number
(
npatFyPersenMB
)
*
Number
(
-
100
)
:
Number
(
npatFyPersenMB
)
*
Number
(
100
)
),
item
.
npat_fy_percent_of_mb
,
//
isNaN(npatFyPersenMB) || npatFyPersenMB == 'Infinity' || npatFyPersenMB == '-Infinity' ? ( item.npat_fy_mb == '' || item.npat_fy_mb == 0 ? -0 : 0 ) : ( item.npat_fy_mb == '' || item.npat_fy_mb == 0 ? Number(npatFyPersenMB) * Number(-100) : Number(npatFyPersenMB) * Number(100) ),
item
.
npat_fy_last_year
,
//
item.npat_fy_percent_of_last_year,
isNaN
(
npatFyPersenLY
)
||
npatFyPersenLY
==
'Infinity'
||
npatFyPersenLY
==
'-Infinity'
?
(
item
.
tpat_fy_last_year
==
''
||
item
.
tpat_fy_last_year
==
0
?
-
0
:
0
)
:
(
item
.
tpat_fy_last_year
==
''
||
item
.
tpat_fy_last_year
==
0
?
Number
(
npatFyPersenLY
)
*
Number
(
-
100
)
:
Number
(
npatFyPersenLY
)
*
Number
(
100
)
),
item
.
npat_fy_percent_of_last_year
,
//
isNaN(npatFyPersenLY) || npatFyPersenLY == 'Infinity' || npatFyPersenLY == '-Infinity' ? ( item.tpat_fy_last_year == '' || item.tpat_fy_last_year == 0 ? -0 : 0 ) : ( item.tpat_fy_last_year == '' || item.tpat_fy_last_year == 0 ? Number(npatFyPersenLY) * Number(-100) : Number(npatFyPersenLY) * Number(100) ),
item
.
order
,
])
}
...
...
@@ -812,66 +813,67 @@ export default class SummaryOfTriputra extends Component {
}
dataTable
.
push
([
item
.
company_id
,
// item.company_id,
0
,
item
.
parent
,
item
.
level
,
item
.
company
_name
,
item
.
item
_name
,
item
.
revenue_ytd_act
,
item
.
revenue_ytd_mb
,
//
item.revenue_ytd_percent_of_mb,
isNaN
(
revenueYtdPersenMB
)
||
revenueYtdPersenMB
==
'Infinity'
||
revenueYtdPersenMB
==
'-Infinity'
?
(
item
.
revenue_ytd_mb
==
''
||
item
.
revenue_ytd_mb
==
0
?
-
0
:
0
)
:
(
item
.
revenue_ytd_mb
==
''
||
item
.
revenue_ytd_mb
==
0
?
Number
(
revenueYtdPersenMB
)
*
Number
(
-
100
)
:
Number
(
revenueYtdPersenMB
)
*
Number
(
100
)
),
item
.
revenue_ytd_percent_of_mb
,
//
isNaN(revenueYtdPersenMB) || revenueYtdPersenMB == 'Infinity' || revenueYtdPersenMB == '-Infinity' ? ( item.revenue_ytd_mb == '' || item.revenue_ytd_mb == 0 ? -0 : 0 ) : ( item.revenue_ytd_mb == '' || item.revenue_ytd_mb == 0 ? Number(revenueYtdPersenMB) * Number(-100) : Number(revenueYtdPersenMB) * Number(100) ),
item
.
revenue_ytd_last_year
,
//
item.revenue_ytd_percent_of_last_year,
isNaN
(
revenueYtdPersenLY
)
||
revenueYtdPersenLY
==
'Infinity'
||
revenueYtdPersenLY
==
'-Infinity'
?
(
item
.
revenue_ytd_last_year
==
''
||
item
.
revenue_ytd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
revenue_ytd_last_year
==
''
||
item
.
revenue_ytd_last_year
==
0
?
Number
(
revenueYtdPersenLY
)
*
Number
(
-
100
)
:
Number
(
revenueYtdPersenLY
)
*
Number
(
100
)
),
item
.
revenue_ytd_percent_of_last_year
,
//
isNaN(revenueYtdPersenLY) || revenueYtdPersenLY == 'Infinity' || revenueYtdPersenLY == '-Infinity' ? ( item.revenue_ytd_last_year == '' || item.revenue_ytd_last_year == 0 ? -0 : 0 ) : ( item.revenue_ytd_last_year == '' || item.revenue_ytd_last_year == 0 ? Number(revenueYtdPersenLY) * Number(-100) : Number(revenueYtdPersenLY) * Number(100) ),
item
.
revenue_fy_ol
,
item
.
revenue_fy_mb
,
//
item.revenue_fy_percent_of_mb,
isNaN
(
revenueFyPersenMB
)
||
revenueFyPersenMB
==
'Infinity'
||
revenueFyPersenMB
==
'-Infinity'
?
(
item
.
revenue_fy_mb
==
''
||
item
.
revenue_fy_mb
==
0
?
-
0
:
0
)
:
(
item
.
revenue_fy_mb
==
''
||
item
.
revenue_fy_mb
==
0
?
Number
(
revenueFyPersenMB
)
*
Number
(
-
100
)
:
Number
(
revenueFyPersenMB
)
*
Number
(
100
)
),
item
.
revenue_fy_percent_of_mb
,
//
isNaN(revenueFyPersenMB) || revenueFyPersenMB == 'Infinity' || revenueFyPersenMB == '-Infinity' ? ( item.revenue_fy_mb == '' || item.revenue_fy_mb == 0 ? -0 : 0 ) : ( item.revenue_fy_mb == '' || item.revenue_fy_mb == 0 ? Number(revenueFyPersenMB) * Number(-100) : Number(revenueFyPersenMB) * Number(100) ),
item
.
revenue_fy_last_year
,
//
item.revenue_fy_percent_of_last_year,
isNaN
(
revenueFyPersenLY
)
||
revenueFyPersenLY
==
'Infinity'
||
revenueFyPersenLY
==
'-Infinity'
?
(
item
.
revenue_fy_last_year
==
''
||
item
.
revenue_fy_last_year
==
0
?
-
0
:
0
)
:
(
item
.
revenue_fy_last_year
==
''
||
item
.
revenue_fy_last_year
==
0
?
Number
(
revenueFyPersenLY
)
*
Number
(
-
100
)
:
Number
(
revenueFyPersenLY
)
*
Number
(
100
)
),
item
.
revenue_fy_percent_of_last_year
,
//
isNaN(revenueFyPersenLY) || revenueFyPersenLY == 'Infinity' || revenueFyPersenLY == '-Infinity' ? ( item.revenue_fy_last_year == '' || item.revenue_fy_last_year == 0 ? -0 : 0 ) : ( item.revenue_fy_last_year == '' || item.revenue_fy_last_year == 0 ? Number(revenueFyPersenLY) * Number(-100) : Number(revenueFyPersenLY) * Number(100) ),
item
.
ebitda_ytd_act
,
item
.
ebitda_ytd_mb
,
//
item.ebitda_ytd_percent_of_mb,
isNaN
(
ebitdaYtdPersenMB
)
||
ebitdaYtdPersenMB
==
'Infinity'
||
ebitdaYtdPersenMB
==
'-Infinity'
?
(
item
.
ebitda_ytd_mb
==
''
||
item
.
ebitda_ytd_mb
==
0
?
-
0
:
0
)
:
(
item
.
ebitda_ytd_mb
==
''
||
item
.
ebitda_ytd_mb
==
0
?
Number
(
ebitdaYtdPersenMB
)
*
Number
(
-
100
)
:
Number
(
ebitdaYtdPersenMB
)
*
Number
(
100
)
),
item
.
ebitda_ytd_percent_of_mb
,
//
isNaN(ebitdaYtdPersenMB) || ebitdaYtdPersenMB == 'Infinity' || ebitdaYtdPersenMB == '-Infinity' ? ( item.ebitda_ytd_mb == '' || item.ebitda_ytd_mb == 0 ? -0 : 0 ) : ( item.ebitda_ytd_mb == '' || item.ebitda_ytd_mb == 0 ? Number(ebitdaYtdPersenMB) * Number(-100) : Number(ebitdaYtdPersenMB) * Number(100) ),
item
.
ebitda_ytd_last_year
,
//
item.ebitda_ytd_percent_of_last_year,
isNaN
(
ebitdaYtdPersenLY
)
||
ebitdaYtdPersenLY
==
'Infinity'
||
ebitdaYtdPersenLY
==
'-Infinity'
?
(
item
.
ebitda_ytd_last_year
==
''
||
item
.
ebitda_ytd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
ebitda_ytd_last_year
==
''
||
item
.
ebitda_ytd_last_year
==
0
?
Number
(
ebitdaYtdPersenLY
)
*
Number
(
-
100
)
:
Number
(
ebitdaYtdPersenLY
)
*
Number
(
100
)
),
item
.
ebitda_ytd_percent_of_last_year
,
//
isNaN(ebitdaYtdPersenLY) || ebitdaYtdPersenLY == 'Infinity' || ebitdaYtdPersenLY == '-Infinity' ? ( item.ebitda_ytd_last_year == '' || item.ebitda_ytd_last_year == 0 ? -0 : 0 ) : ( item.ebitda_ytd_last_year == '' || item.ebitda_ytd_last_year == 0 ? Number(ebitdaYtdPersenLY) * Number(-100) : Number(ebitdaYtdPersenLY) * Number(100) ),
item
.
ebitda_fy_ol
,
item
.
ebitda_fy_mb
,
//
item.ebitda_fy_percent_of_mb,
isNaN
(
ebitdaFyPersenMB
)
||
ebitdaFyPersenMB
==
'Infinity'
||
ebitdaFyPersenMB
==
'-Infinity'
?
(
item
.
ebitda_fy_mb
==
''
||
item
.
ebitda_fy_mb
==
0
?
-
0
:
0
)
:
(
item
.
ebitda_fy_mb
==
''
||
item
.
ebitda_fy_mb
==
0
?
Number
(
ebitdaFyPersenMB
)
*
Number
(
-
100
)
:
Number
(
ebitdaFyPersenMB
)
*
Number
(
100
)
),
item
.
ebitda_fy_percent_of_mb
,
//
isNaN(ebitdaFyPersenMB) || ebitdaFyPersenMB == 'Infinity' || ebitdaFyPersenMB == '-Infinity' ? ( item.ebitda_fy_mb == '' || item.ebitda_fy_mb == 0 ? -0 : 0 ) : ( item.ebitda_fy_mb == '' || item.ebitda_fy_mb == 0 ? Number(ebitdaFyPersenMB) * Number(-100) : Number(ebitdaFyPersenMB) * Number(100) ),
item
.
ebitda_fy_last_year
,
//
item.ebitda_fy_percent_of_last_year,
isNaN
(
ebitdaFyPersenLY
)
||
ebitdaFyPersenLY
==
'Infinity'
||
ebitdaFyPersenLY
==
'-Infinity'
?
(
item
.
ebitda_fy_last_year
==
''
||
item
.
ebitda_fy_last_year
==
0
?
-
0
:
0
)
:
(
item
.
ebitda_fy_last_year
==
''
||
item
.
ebitda_fy_last_year
==
0
?
Number
(
ebitdaFyPersenLY
)
*
Number
(
-
100
)
:
Number
(
ebitdaFyPersenLY
)
*
Number
(
100
)
),
item
.
ebitda_fy_percent_of_last_year
,
//
isNaN(ebitdaFyPersenLY) || ebitdaFyPersenLY == 'Infinity' || ebitdaFyPersenLY == '-Infinity' ? ( item.ebitda_fy_last_year == '' || item.ebitda_fy_last_year == 0 ? -0 : 0 ) : ( item.ebitda_fy_last_year == '' || item.ebitda_fy_last_year == 0 ? Number(ebitdaFyPersenLY) * Number(-100) : Number(ebitdaFyPersenLY) * Number(100) ),
item
.
tpat_ytd_act
,
item
.
tpat_ytd_mb
,
//
item.tpat_ytd_percent_of_mb,
isNaN
(
tpatYtdPersenMB
)
||
tpatYtdPersenMB
==
'Infinity'
||
tpatYtdPersenMB
==
'-Infinity'
?
(
item
.
tpat_ytd_mb
==
''
||
item
.
tpat_ytd_mb
==
0
?
-
0
:
0
)
:
(
item
.
tpat_ytd_mb
==
''
||
item
.
tpat_ytd_mb
==
0
?
Number
(
tpatYtdPersenMB
)
*
Number
(
-
100
)
:
Number
(
tpatYtdPersenMB
)
*
Number
(
100
)
),
item
.
tpat_ytd_percent_of_mb
,
//
isNaN(tpatYtdPersenMB) || tpatYtdPersenMB == 'Infinity' || tpatYtdPersenMB == '-Infinity' ? ( item.tpat_ytd_mb == '' || item.tpat_ytd_mb == 0 ? -0 : 0 ) : ( item.tpat_ytd_mb == '' || item.tpat_ytd_mb == 0 ? Number(tpatYtdPersenMB) * Number(-100) : Number(tpatYtdPersenMB) * Number(100) ),
item
.
tpat_ytd_last_year
,
//
item.tpat_ytd_percent_of_last_year,
isNaN
(
tpatYtdPersenLY
)
||
tpatYtdPersenLY
==
'Infinity'
||
tpatYtdPersenLY
==
'-Infinity'
?
(
item
.
tpat_ytd_last_year
==
''
||
item
.
tpat_ytd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
tpat_ytd_last_year
==
''
||
item
.
tpat_ytd_last_year
==
0
?
Number
(
tpatYtdPersenLY
)
*
Number
(
-
100
)
:
Number
(
tpatYtdPersenLY
)
*
Number
(
100
)
),
item
.
tpat_ytd_percent_of_last_year
,
//
isNaN(tpatYtdPersenLY) || tpatYtdPersenLY == 'Infinity' || tpatYtdPersenLY == '-Infinity' ? ( item.tpat_ytd_last_year == '' || item.tpat_ytd_last_year == 0 ? -0 : 0 ) : ( item.tpat_ytd_last_year == '' || item.tpat_ytd_last_year == 0 ? Number(tpatYtdPersenLY) * Number(-100) : Number(tpatYtdPersenLY) * Number(100) ),
item
.
tpat_fy_ol
,
item
.
tpat_fy_mb
,
//
item.tpat_fy_percent_of_mb,
isNaN
(
tpatFyPersenMB
)
||
tpatFyPersenMB
==
'Infinity'
||
tpatFyPersenMB
==
'-Infinity'
?
(
item
.
tpat_fy_mb
==
''
||
item
.
tpat_fy_mb
==
0
?
-
0
:
0
)
:
(
item
.
tpat_fy_mb
==
''
||
item
.
tpat_fy_mb
==
0
?
Number
(
tpatFyPersenMB
)
*
Number
(
-
100
)
:
Number
(
tpatFyPersenMB
)
*
Number
(
100
)
),
item
.
tpat_fy_percent_of_mb
,
//
isNaN(tpatFyPersenMB) || tpatFyPersenMB == 'Infinity' || tpatFyPersenMB == '-Infinity' ? ( item.tpat_fy_mb == '' || item.tpat_fy_mb == 0 ? -0 : 0 ) : ( item.tpat_fy_mb == '' || item.tpat_fy_mb == 0 ? Number(tpatFyPersenMB) * Number(-100) : Number(tpatFyPersenMB) * Number(100) ),
item
.
tpat_fy_last_year
,
//
item.tpat_fy_percent_of_last_year,
isNaN
(
tpatFyPersenLY
)
||
tpatFyPersenLY
==
'Infinity'
||
tpatFyPersenLY
==
'-Infinity'
?
(
item
.
tpat_fy_last_year
==
''
||
item
.
tpat_fy_last_year
==
0
?
-
0
:
0
)
:
(
item
.
tpat_fy_last_year
==
''
||
item
.
tpat_fy_last_year
==
0
?
Number
(
tpatFyPersenLY
)
*
Number
(
-
100
)
:
Number
(
tpatFyPersenLY
)
*
Number
(
100
)
),
item
.
tpat_fy_percent_of_last_year
,
//
isNaN(tpatFyPersenLY) || tpatFyPersenLY == 'Infinity' || tpatFyPersenLY == '-Infinity' ? ( item.tpat_fy_last_year == '' || item.tpat_fy_last_year == 0 ? -0 : 0 ) : ( item.tpat_fy_last_year == '' || item.tpat_fy_last_year == 0 ? Number(tpatFyPersenLY) * Number(-100) : Number(tpatFyPersenLY) * Number(100) ),
item
.
npat_ytd_act
,
item
.
npat_ytd_mb
,
//
item.npat_ytd_percent_of_mb,
isNaN
(
npatYtdPersenMB
)
||
npatYtdPersenMB
==
'Infinity'
||
npatYtdPersenMB
==
'-Infinity'
?
(
item
.
npat_ytd_mb
==
''
||
item
.
npat_ytd_mb
==
0
?
-
0
:
0
)
:
(
item
.
npat_ytd_mb
==
''
||
item
.
npat_ytd_mb
==
0
?
Number
(
npatYtdPersenMB
)
*
Number
(
-
100
)
:
Number
(
npatYtdPersenMB
)
*
Number
(
100
)
),
item
.
npat_ytd_percent_of_mb
,
//
isNaN(npatYtdPersenMB) || npatYtdPersenMB == 'Infinity' || npatYtdPersenMB == '-Infinity' ? ( item.npat_ytd_mb == '' || item.npat_ytd_mb == 0 ? -0 : 0 ) : ( item.npat_ytd_mb == '' || item.npat_ytd_mb == 0 ? Number(npatYtdPersenMB) * Number(-100) : Number(npatYtdPersenMB) * Number(100) ),
item
.
npat_ytd_last_year
,
//
item.npat_ytd_percent_of_last_year,
isNaN
(
npatYtdPersenLY
)
||
npatYtdPersenLY
==
'Infinity'
||
npatYtdPersenLY
==
'-Infinity'
?
(
item
.
npat_ytd_last_year
==
''
||
item
.
npat_ytd_last_year
==
0
?
-
0
:
0
)
:
(
item
.
npat_ytd_last_year
==
''
||
item
.
npat_ytd_last_year
==
0
?
Number
(
npatYtdPersenLY
)
*
Number
(
-
100
)
:
Number
(
npatYtdPersenLY
)
*
Number
(
100
)
),
item
.
npat_ytd_percent_of_last_year
,
//
isNaN(npatYtdPersenLY) || npatYtdPersenLY == 'Infinity' || npatYtdPersenLY == '-Infinity' ? ( item.npat_ytd_last_year == '' || item.npat_ytd_last_year == 0 ? -0 : 0 ) : ( item.npat_ytd_last_year == '' || item.npat_ytd_last_year == 0 ? Number(npatYtdPersenLY) * Number(-100) : Number(npatYtdPersenLY) * Number(100) ),
item
.
npat_fy_ol
,
item
.
npat_fy_mb
,
//
item.npat_fy_percent_of_mb,
isNaN
(
npatFyPersenMB
)
||
npatFyPersenMB
==
'Infinity'
||
npatFyPersenMB
==
'-Infinity'
?
(
item
.
npat_fy_mb
==
''
||
item
.
npat_fy_mb
==
0
?
-
0
:
0
)
:
(
item
.
npat_fy_mb
==
''
||
item
.
npat_fy_mb
==
0
?
Number
(
npatFyPersenMB
)
*
Number
(
-
100
)
:
Number
(
npatFyPersenMB
)
*
Number
(
100
)
),
item
.
npat_fy_percent_of_mb
,
//
isNaN(npatFyPersenMB) || npatFyPersenMB == 'Infinity' || npatFyPersenMB == '-Infinity' ? ( item.npat_fy_mb == '' || item.npat_fy_mb == 0 ? -0 : 0 ) : ( item.npat_fy_mb == '' || item.npat_fy_mb == 0 ? Number(npatFyPersenMB) * Number(-100) : Number(npatFyPersenMB) * Number(100) ),
item
.
npat_fy_last_year
,
//
item.npat_fy_percent_of_last_year,
isNaN
(
npatFyPersenLY
)
||
npatFyPersenLY
==
'Infinity'
||
npatFyPersenLY
==
'-Infinity'
?
(
item
.
tpat_fy_last_year
==
''
||
item
.
tpat_fy_last_year
==
0
?
-
0
:
0
)
:
(
item
.
tpat_fy_last_year
==
''
||
item
.
tpat_fy_last_year
==
0
?
Number
(
npatFyPersenLY
)
*
Number
(
-
100
)
:
Number
(
npatFyPersenLY
)
*
Number
(
100
)
),
item
.
npat_fy_percent_of_last_year
,
//
isNaN(npatFyPersenLY) || npatFyPersenLY == 'Infinity' || npatFyPersenLY == '-Infinity' ? ( item.tpat_fy_last_year == '' || item.tpat_fy_last_year == 0 ? -0 : 0 ) : ( item.tpat_fy_last_year == '' || item.tpat_fy_last_year == 0 ? Number(npatFyPersenLY) * Number(-100) : Number(npatFyPersenLY) * Number(100) ),
item
.
order
,
])
if
(
item
.
children
!==
null
)
{
...
...
src/container/SummaryTriputra/TableSummaryTriputra.js
View file @
d9c0fa89
...
...
@@ -1194,7 +1194,7 @@ export default class TableSummaryTriputra extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
6
]).
toFixed
(
1
)
}
value
=
{
tableMeta
.
rowData
[
6
]
}
/
>
}
/
>
...
...
@@ -1226,7 +1226,7 @@ export default class TableSummaryTriputra extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
1
)
}
value
=
{
tableMeta
.
rowData
[
8
]
}
/
>
}
/
>
...
...
@@ -1276,7 +1276,7 @@ export default class TableSummaryTriputra extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
11
]).
toFixed
(
1
)
}
value
=
{
tableMeta
.
rowData
[
11
]
}
/
>
}
/
>
...
...
@@ -1310,7 +1310,7 @@ export default class TableSummaryTriputra extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
13
]).
toFixed
(
1
)
}
value
=
{
tableMeta
.
rowData
[
13
]
}
/
>
}
/
>
...
...
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