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
dd87395c
Commit
dd87395c
authored
Feb 15, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cpsm
parent
1921b4c3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
1874 deletions
+54
-1874
Historical.js
src/container/SummaryTriputra/Historical.js
+0
-1823
SummaryOfTriputra.js
src/container/SummaryTriputra/SummaryOfTriputra.js
+16
-13
TableSummaryTriputra.js
src/container/SummaryTriputra/TableSummaryTriputra.js
+38
-38
No files found.
src/container/SummaryTriputra/Historical.js
deleted
100644 → 0
View file @
1921b4c3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/container/SummaryTriputra/SummaryOfTriputra.js
View file @
dd87395c
...
...
@@ -807,19 +807,22 @@ export default class SummaryOfTriputra extends Component {
a
.
click
();
}
}
else
if
(
this
.
state
.
report
.
value
===
3
)
{
alert
(
"Download CPSM Report Coming Soon"
)
// let res = await fetch(
// `${process.env.REACT_APP_URL_MAIN_BE}/public/transaction/db_report_detail/export_master_budget?submission_id=${this.state.submissionID === null ? "" : this.state.submissionID}&&report_id=${this.state.report.value}&&company_id=${this.state.company.company_id}&&year=${this.state.periode.periode}&&revision=${this.state.lastRevision}`
// )
// res = await res.blob()
// this.setState({ loading: false })
// if (res.size > 0) {
// let url = window.URL.createObjectURL(res);
// let a = document.createElement('a');
// a.href = url;
// a.download = 'Report DB Profit & Loss.xlsx';
// a.click();
// }
// alert("Download CPSM Report Coming Soon")
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_cpsm/export_report?year=
${
this
.
state
.
periode
.
periode
}
&&months=
${
this
.
state
.
month
.
month_id
}
`
let
sub_null
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_cpsm/export_report?year=
${
this
.
state
.
periode
.
periode
}
&&months=
${
this
.
state
.
month
.
month_id
}
`
console
.
log
(
url
);
let
res
=
await
fetch
(
this
.
state
.
submissionID
==
null
?
sub_null
:
url
)
res
=
await
res
.
blob
()
this
.
setState
({
loading
:
false
})
if
(
res
.
size
>
0
)
{
let
url
=
window
.
URL
.
createObjectURL
(
res
);
let
a
=
document
.
createElement
(
'a'
);
a
.
href
=
url
;
a
.
download
=
'Report CPSM.xlsx'
;
a
.
click
();
}
}
else
if
(
this
.
state
.
report
.
value
===
4
)
{
// alert("Download Historical Report Coming Soon")
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_historical/export_report?year=
${
this
.
state
.
periode
.
periode
}
`
...
...
src/container/SummaryTriputra/TableSummaryTriputra.js
View file @
dd87395c
...
...
@@ -4673,8 +4673,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
disabled
=
{
true
}
suffix
=
{
'%'
}
//
value={tableMeta.rowData[13]}
value
=
{
Number
(
tableMeta
.
rowData
[
13
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
13
]}
//
value={Number(tableMeta.rowData[13]).toFixed(2)}
/
>
}
/
>
...
...
@@ -4859,8 +4859,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
disabled
=
{
true
}
suffix
=
{
'%'
}
//
value={tableMeta.rowData[19]}
value
=
{
Number
(
tableMeta
.
rowData
[
19
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
19
]}
//
value={Number(tableMeta.rowData[19]).toFixed(2)}
/
>
}
/
>
...
...
@@ -4942,7 +4942,7 @@ export default class TableSummaryTriputra extends Component {
name
:
`NPAT`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
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
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1 grid grid-3x"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
}}
>
...
...
@@ -5045,8 +5045,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[25]}
value
=
{
Number
(
tableMeta
.
rowData
[
25
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
25
]}
//
value={Number(tableMeta.rowData[25]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5128,7 +5128,7 @@ export default class TableSummaryTriputra extends Component {
name
:
`ROIC`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
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
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#37b5e6'
}}
>
...
...
@@ -5226,7 +5226,7 @@ export default class TableSummaryTriputra extends Component {
name
:
`EBITDA Margin`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
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
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#37b5e6'
}}
>
...
...
@@ -5324,7 +5324,7 @@ export default class TableSummaryTriputra extends Component {
name
:
`TPAT Margin`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
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
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#37b5e6'
}}
>
...
...
@@ -5422,7 +5422,7 @@ export default class TableSummaryTriputra extends Component {
name
:
`% Revenue YoY`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
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
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#37b5e6'
}}
>
...
...
@@ -5455,8 +5455,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
disabled
=
{
true
}
suffix
=
{
'%'
}
//
value={tableMeta.rowData[37]}
value
=
{
Number
(
tableMeta
.
rowData
[
37
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
37
]}
//
value={Number(tableMeta.rowData[37]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5475,8 +5475,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[38]}
value
=
{
Number
(
tableMeta
.
rowData
[
38
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
38
]}
//
value={Number(tableMeta.rowData[38]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5495,8 +5495,8 @@ export default class TableSummaryTriputra extends Component {
suffix
=
{
'%'
}
placeholder
=
""
disabled
=
{
true
}
//
value={tableMeta.rowData[39]}
value
=
{
Number
(
tableMeta
.
rowData
[
39
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
39
]}
//
value={Number(tableMeta.rowData[39]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5526,7 +5526,7 @@ export default class TableSummaryTriputra extends Component {
name
:
`% EBITDA YoY`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
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
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#37b5e6'
}}
>
...
...
@@ -5559,8 +5559,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[40]}
value
=
{
Number
(
tableMeta
.
rowData
[
40
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
40
]}
//
value={Number(tableMeta.rowData[40]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5579,8 +5579,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[41]}
value
=
{
Number
(
tableMeta
.
rowData
[
41
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
41
]}
//
value={Number(tableMeta.rowData[41]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5599,8 +5599,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[42]}
value
=
{
Number
(
tableMeta
.
rowData
[
42
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
42
]}
//
value={Number(tableMeta.rowData[42]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5630,7 +5630,7 @@ export default class TableSummaryTriputra extends Component {
name
:
`% TPAT YoY`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
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
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#37b5e6'
}}
>
...
...
@@ -5663,8 +5663,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[43]}
value
=
{
Number
(
tableMeta
.
rowData
[
43
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
43
]}
//
value={Number(tableMeta.rowData[43]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5683,8 +5683,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[44]}
value
=
{
Number
(
tableMeta
.
rowData
[
44
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
44
]}
//
value={Number(tableMeta.rowData[44]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5703,8 +5703,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[45]}
value
=
{
Number
(
tableMeta
.
rowData
[
45
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
45
]}
//
value={Number(tableMeta.rowData[45]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5734,7 +5734,7 @@ export default class TableSummaryTriputra extends Component {
name
:
`% NPAT YoY`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
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
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#37b5e6'
}}
>
...
...
@@ -5767,8 +5767,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[46]}
value
=
{
Number
(
tableMeta
.
rowData
[
46
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
46
]}
//
value={Number(tableMeta.rowData[46]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5787,8 +5787,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[47]}
value
=
{
Number
(
tableMeta
.
rowData
[
47
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
47
]}
//
value={Number(tableMeta.rowData[47]).toFixed(2)}
/
>
}
/
>
...
...
@@ -5807,8 +5807,8 @@ export default class TableSummaryTriputra extends Component {
placeholder
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
//
value={tableMeta.rowData[48]}
value
=
{
Number
(
tableMeta
.
rowData
[
48
]).
toFixed
(
2
)}
value
=
{
tableMeta
.
rowData
[
48
]}
//
value={Number(tableMeta.rowData[48]).toFixed(2)}
/
>
}
/
>
...
...
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