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
c432b4fd
Commit
c432b4fd
authored
Feb 08, 2021
by
Rifka Kurnia
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rifka' into 'master'
ytd See merge request
!1120
parents
6bfa93af
f4ea2549
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 @
c432b4fd
...
...
@@ -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/get_report_hierarki'
,
body
)
const
getFullApproveMB
=
(
body
)
=>
api
.
post
(
'/transaction/master_budget/get_approved_submit'
,
body
)
...
...
src/container/SummaryTriputra/SummaryOfTriputra.js
View file @
c432b4fd
...
...
@@ -468,7 +468,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
)
{
...
...
@@ -677,66 +677,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
,
])
}
...
...
@@ -954,66 +955,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 @
c432b4fd
...
...
@@ -1217,7 +1217,7 @@ export default class TableSummaryTriputra extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
6
]).
toFixed
(
1
)
}
value
=
{
tableMeta
.
rowData
[
6
]
}
/
>
}
/
>
...
...
@@ -1249,7 +1249,7 @@ export default class TableSummaryTriputra extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
1
)
}
value
=
{
tableMeta
.
rowData
[
8
]
}
/
>
}
/
>
...
...
@@ -1299,7 +1299,7 @@ export default class TableSummaryTriputra extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
11
]).
toFixed
(
1
)
}
value
=
{
tableMeta
.
rowData
[
11
]
}
/
>
}
/
>
...
...
@@ -1333,7 +1333,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