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
bce6e759
Commit
bce6e759
authored
Feb 01, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ytd
parent
cba56b9c
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
190 additions
and
98 deletions
+190
-98
index.js
src/api/index.js
+2
-0
SummaryOfTriputra.js
src/container/SummaryTriputra/SummaryOfTriputra.js
+130
-91
TableSummaryTriputra.js
src/container/SummaryTriputra/TableSummaryTriputra.js
+58
-7
No files found.
src/api/index.js
View file @
bce6e759
...
@@ -264,6 +264,7 @@ const create = (type = "") => {
...
@@ -264,6 +264,7 @@ const create = (type = "") => {
const
getReportFRLastMR
=
(
body
)
=>
api
.
post
(
'/transaction/summary_ratio/monthly_report_last_year/get_report_hierarki'
,
body
)
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
getReportBSSuma
=
(
body
)
=>
api
.
post
(
'/transaction/summary_balance_sheet/summary/get_report_hierarki'
,
body
)
const
getDashboardCAT
=
(
body
)
=>
api
.
post
(
'/dashboard/cat'
,
body
)
const
getDashboardCAT
=
(
body
)
=>
api
.
post
(
'/dashboard/cat'
,
body
)
const
getHierarkiReportYtd
=
(
body
)
=>
api
.
post
(
'/transaction/summary/ytd/get_report_hierarki'
,
body
)
const
getHierarkiReportHistorical
=
(
body
)
=>
api
.
post
(
'/transaction/historical/get_historical_hierarki'
,
body
)
const
getHierarkiReportHistorical
=
(
body
)
=>
api
.
post
(
'/transaction/historical/get_historical_hierarki'
,
body
)
//CASH FLOW
//CASH FLOW
...
@@ -637,6 +638,7 @@ const create = (type = "") => {
...
@@ -637,6 +638,7 @@ const create = (type = "") => {
createReportPLMB
,
createReportPLMB
,
createReportPLMR
,
createReportPLMR
,
getPLID
,
getPLID
,
getHierarkiReportYtd
,
getHierarkiReportHistorical
getHierarkiReportHistorical
}
}
}
}
...
...
src/container/SummaryTriputra/SummaryOfTriputra.js
View file @
bce6e759
This diff is collapsed.
Click to expand it.
src/container/SummaryTriputra/TableSummaryTriputra.js
View file @
bce6e759
...
@@ -411,6 +411,24 @@ export default class TableSummaryTriputra extends Component {
...
@@ -411,6 +411,24 @@ export default class TableSummaryTriputra extends Component {
]
]
const
columnYTD
=
[
const
columnYTD
=
[
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
{
name
:
"Company"
,
name
:
"Company"
,
options
:
{
options
:
{
...
@@ -423,7 +441,14 @@ export default class TableSummaryTriputra extends Component {
...
@@ -423,7 +441,14 @@ export default class TableSummaryTriputra extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
<
div
style
=
{{
width
:
300
}}
>
<
div
style
=
{{
width
:
300
}}
>
{
val
}
{
tableMeta
.
rowData
[
2
]
==
0
?
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
val
).
toUpperCase
()}
<
/span
>
:
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
2
])
}}
>
<
span
style
=
{{
fontSize
:
12
}}
>
{
val
}
<
/span
>
<
/div
>
}
<
/div
>
<
/div
>
)
)
}
}
...
@@ -495,11 +520,37 @@ export default class TableSummaryTriputra extends Component {
...
@@ -495,11 +520,37 @@ export default class TableSummaryTriputra extends Component {
<
div
>
<
div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
}}
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
}}
>
<
div
style
=
{{
display
:
'flex'
,
width
:
640
,
justifyContent
:
'space-between'
}}
>
<
div
style
=
{{
display
:
'flex'
,
width
:
640
,
justifyContent
:
'space-between'
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
'20%'
}}
>
<
div
style
=
{{
flex
:
1
}}
>
111
<
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
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
4
]).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
<
/div
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
'20%'
}}
>
<
div
style
=
{{
flex
:
1
}}
>
112
<
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
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
5
]).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
<
/div
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
'20%'
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
'20%'
}}
>
113
113
...
@@ -2297,7 +2348,7 @@ export default class TableSummaryTriputra extends Component {
...
@@ -2297,7 +2348,7 @@ export default class TableSummaryTriputra extends Component {
<
div
style
=
{{
padding
:
'0px 20px 20px 20px'
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
350
:
100
)
}}
>
<
div
style
=
{{
padding
:
'0px 20px 20px 20px'
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
350
:
100
)
}}
>
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MUIDataTable
<
MUIDataTable
data
=
{
this
.
props
.
type
===
4
?
datasHistorical
:
this
.
props
.
type
===
1
?
datasMTD
:
this
.
props
.
type
===
2
?
data
sYTD
:
this
.
props
.
type
===
3
?
datas
:
datas
}
data
=
{
this
.
props
.
type
===
4
?
datasHistorical
:
this
.
props
.
type
===
1
?
datasMTD
:
this
.
props
.
type
===
2
?
data
Table2
:
this
.
props
.
type
===
3
?
datas
:
datas
}
columns
=
{
this
.
props
.
type
===
1
?
columnMTD
:
this
.
props
.
type
===
2
?
columnYTD
:
this
.
props
.
type
===
3
?
columnCPSM
:
this
.
props
.
type
===
4
?
columnHistorical
:
columns
}
columns
=
{
this
.
props
.
type
===
1
?
columnMTD
:
this
.
props
.
type
===
2
?
columnYTD
:
this
.
props
.
type
===
3
?
columnCPSM
:
this
.
props
.
type
===
4
?
columnHistorical
:
columns
}
options
=
{
options
}
options
=
{
options
}
/
>
/
>
...
...
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