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
a8557588
Commit
a8557588
authored
Oct 30, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
locf
parent
1d5db666
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
114 additions
and
24 deletions
+114
-24
ListOfCreditFacilitiesMR.js
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
+114
-24
No files found.
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
View file @
a8557588
...
@@ -1945,7 +1945,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1945,7 +1945,7 @@ export default class ListOfCreditFacilities extends Component {
{...
this
.
state
.
bankNameList
}
{...
this
.
state
.
bankNameList
}
id
=
"bankNameList"
id
=
"bankNameList"
onChange
=
{(
event
,
newInputValue
)
=>
handleChange
(
newInputValue
,
tableMeta
,
tableMeta
.
columnIndex
)}
onChange
=
{(
event
,
newInputValue
)
=>
handleChange
(
newInputValue
,
tableMeta
,
tableMeta
.
columnIndex
)}
debug
//
debug
disableClearable
disableClearable
disabled
=
{
this
.
state
.
get_for
==
'view'
}
disabled
=
{
this
.
state
.
get_for
==
'view'
}
// disabled={!handleAction(tableMeta.rowData[2], tableMeta.rowData[0])}
// disabled={!handleAction(tableMeta.rowData[2], tableMeta.rowData[0])}
...
@@ -4058,27 +4058,14 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -4058,27 +4058,14 @@ export default class ListOfCreditFacilities extends Component {
setCellProps
:
()
=>
({
style2
}),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
val
,
tableMeta
,
updateValue
)
=>
{
customBodyRender
:
(
val
,
tableMeta
,
updateValue
)
=>
{
return
(
return
(
<
div
style
=
{{
width
:
150
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
||
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
==
8
||
tableMeta
.
rowData
[
0
]
==
9
?
<
Typography
style
=
{{
color
:
'black'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
textAlign
:
'center'
}}
>
{
val
.
value
}
<
/Typography
>
null
:
:
<
div
style
=
{{
padding
:
0
,
margin
:
0
}}
>
<
Autocomplete
<
textarea
disabled
=
{
this
.
state
.
get_for
==
'view'
}
style
=
{{
borderColor
:
'white'
,
width
:
96
,
textAlign
:
'center'
,
justifyContent
:
'center'
,
padding
:
0
,
margin
:
0
,
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
backgroundColor
:
tableMeta
.
rowData
[
11
]
==
''
&&
this
.
state
.
get_for
==
'edit'
?
'#ffac99'
:
'white'
}}
type
=
"text"
defaultValue
=
{
tableMeta
.
rowData
[
11
]}
{...
this
.
state
.
bankNameList
}
onBlur
=
{(
event
)
=>
handleChange
(
event
.
target
.
value
,
tableMeta
,
tableMeta
.
columnIndex
)}
/
>
id
=
"bankNameList"
onChange
=
{(
event
,
newInputValue
)
=>
handleChange
(
newInputValue
,
tableMeta
,
tableMeta
.
columnIndex
)}
debug
disableClearable
disabled
=
{
this
.
state
.
get_for
==
'view'
}
// disabled={!handleAction(tableMeta.rowData[2], tableMeta.rowData[0])}
value
=
{
handleValueDropDown
(
val
,
'bankName'
,
tableMeta
)}
style
=
{{
padding
:
0
,
margin
:
0
}}
renderInput
=
{(
params
)
=>
<
div
ref
=
{
params
.
InputProps
.
ref
}
style
=
{{
padding
:
0
,
margin
:
0
}}
>
<
textarea
style
=
{{
borderColor
:
'white'
,
width
:
150
,
textAlign
:
'center'
,
justifyContent
:
'center'
,
padding
:
0
,
margin
:
0
,
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
backgroundColor
:
tableMeta
.
rowData
[
6
]
==
null
&&
this
.
state
.
get_for
==
'edit'
?
'#ffac99'
:
'white'
}}
type
=
"text"
{...
params
.
inputProps
}
/
>
<
/div
>
<
/div
>
}
}
/
>
}
<
/div
>
<
/div
>
)
)
}
}
...
@@ -4372,7 +4359,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -4372,7 +4359,7 @@ export default class ListOfCreditFacilities extends Component {
name
:
`Investment Amount (Original Currency)`
,
name
:
`Investment Amount (Original Currency)`
,
options
:
{
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
customHeadRender
:
(
columnMeta
)
=>
(
<
TableCell
style
=
{{
...
style2
,
top
:
0
,
zIndex
:
99
,
backgroundColor
:
'#37b5e6'
,
width
:
96
}}
>
<
TableCell
style
=
{{
...
style2
,
top
:
0
,
zIndex
:
99
,
backgroundColor
:
'#37b5e6'
,
width
:
96
,
borderRight
:
'1px #fff solid'
}}
>
<
Typography
style
=
{{
color
:
'white'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/Typography
>
<
Typography
style
=
{{
color
:
'white'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/Typography
>
<
/TableCell
>
<
/TableCell
>
),
),
...
@@ -4434,7 +4421,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -4434,7 +4421,7 @@ export default class ListOfCreditFacilities extends Component {
name
:
`Investment Amount (Original Currency)`
,
name
:
`Investment Amount (Original Currency)`
,
options
:
{
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
customHeadRender
:
(
columnMeta
)
=>
(
<
TableCell
style
=
{{
...
style2
,
top
:
0
,
zIndex
:
99
,
backgroundColor
:
'#37b5e6'
,
width
:
96
}}
>
<
TableCell
style
=
{{
...
style2
,
top
:
0
,
zIndex
:
99
,
backgroundColor
:
'#37b5e6'
,
width
:
96
,
borderRight
:
'1px #fff solid'
}}
>
<
Typography
style
=
{{
color
:
'white'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/Typography
>
<
Typography
style
=
{{
color
:
'white'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/Typography
>
<
/TableCell
>
<
/TableCell
>
),
),
...
@@ -4957,7 +4944,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -4957,7 +4944,7 @@ export default class ListOfCreditFacilities extends Component {
<
/div
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
}}
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
}}
>
<
div
style
=
{{
padding
:
5
}}
>
<
div
style
=
{{
padding
:
5
}}
>
<
Typography
style
=
{{
fontSize
:
'12px'
,
color
:
'#4b4b4b'
}}
>
Total
Outstanding
Loan
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'12px'
,
color
:
'#4b4b4b'
}}
>
Total
Investment
<
/Typography
>
<
/div
>
<
/div
>
<
div
style
=
{{
border
:
'1px solid black'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
div
style
=
{{
border
:
'1px solid black'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'14px'
,
color
:
'#4b4b4b'
}}
><
NumberFormat
value
=
{
this
.
state
.
perBS
}
displayType
=
{
'text'
}
thousandSeparator
=
{
true
}
prefix
=
{
''
}
/></
Typography
>
<
Typography
style
=
{{
fontSize
:
'14px'
,
color
:
'#4b4b4b'
}}
><
NumberFormat
value
=
{
this
.
state
.
perBS
}
displayType
=
{
'text'
}
thousandSeparator
=
{
true
}
prefix
=
{
''
}
/></
Typography
>
...
@@ -5248,6 +5235,109 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -5248,6 +5235,109 @@ export default class ListOfCreditFacilities extends Component {
</div>
</div>
</div> */
}
</div> */
}
<
/div
>
<
/div
>
<
div
style
=
{{
padding
:
20
}}
>
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Monthly
Report
-
List
Of
Investment
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
String
(
this
.
props
.
month
.
month_value
).
toLocaleUpperCase
()}
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
{
this
.
state
.
loading
&&
loadingComponent
}
{
this
.
state
.
dataLoaded
&&
!
this
.
state
.
loading
&&
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MUIDataTable
data
=
{
dataTable2
}
columns
=
{
columnsInvesment
}
options
=
{
options
}
/
>
<
/MuiThemeProvider>
}
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
,
maxWidth
:
'100%'
,
paddingLeft
:
5
,
paddingRight
:
15
,
marginTop
:
5
}}
>
<
div
>
<
div
style
=
{{
display
:
'flex'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
<
/Typography
>
<
div
style
=
{{
marginLeft
:
10
,
overflowY
:
'scroll'
,
height
:
this
.
state
.
updateBy
.
length
<
2
?
25
:
75
,
marginTop
:
10
}}
>
{
this
.
state
.
updateBy
.
length
>
0
?
this
.
state
.
updateBy
.
reverse
().
map
((
item
,
index
)
=>
{
return
(
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
,
marginRight
:
5
}}
>
{
item
.
latest_update
}
<
/Typography
>
)
})
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
,
marginRight
:
5
}}
>-<
/Typography
>
}
<
/div
>
<
/div
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
}}
>
<
div
style
=
{{
padding
:
5
}}
>
<
Typography
style
=
{{
fontSize
:
'12px'
,
color
:
'#4b4b4b'
}}
>
Total
Investment
<
/Typography
>
<
/div
>
<
div
style
=
{{
border
:
'1px solid black'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'14px'
,
color
:
'#4b4b4b'
}}
><
NumberFormat
value
=
{
this
.
state
.
perBS
}
displayType
=
{
'text'
}
thousandSeparator
=
{
true
}
prefix
=
{
''
}
/></
Typography
>
<
/div
>
<
/div
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
,
maxWidth
:
'100%'
,
paddingLeft
:
5
,
paddingRight
:
15
}}
>
<
div
>
<
Typography
style
=
{{
fontSize
:
'12px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
}}
>
Notes
:
{
this
.
state
.
notes
}
<
/Typography
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
}}
>
<
div
style
=
{{
padding
:
5
}}
>
<
Typography
style
=
{{
fontSize
:
'12px'
,
color
:
'#4b4b4b'
}}
>
Diff
<
/Typography
>
<
/div
>
<
div
style
=
{{
borderStyle
:
'solid'
,
borderWidth
:
'0px 1px 1px 1px'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'14px'
,
color
:
Number
(
this
.
state
.
diff
)
>
0
?
'red'
:
'#4b4b4b'
}}
><
NumberFormat
value
=
{
this
.
state
.
diff
}
displayType
=
{
'text'
}
thousandSeparator
=
{
true
}
prefix
=
{
''
}
/></
Typography
>
<
/div
>
<
/div
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
maxWidth
:
'100%'
,
paddingLeft
:
5
,
paddingRight
:
15
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
5
,
fontWeight
:
'bold'
,
textDecorationLine
:
'underline'
}}
>
Keterangan
:
<
/Typography
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
,
maxWidth
:
'100%'
,
paddingLeft
:
5
,
paddingRight
:
15
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
0
}}
>
1
.
Current
ratio
=
Current
Assets
/
Current
Liabilities
<
/Typography
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
,
maxWidth
:
'100%'
,
paddingLeft
:
5
,
paddingRight
:
15
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
0
}}
>
2
.
DER
=
Interest
Bearing
Debt
/
Total
Equity
(
dimana
Interest
Bearing
Debt
=
Short
term
loan
+
Current
maturities
of
long
term
debt
+
Long
term
loan
+
Due
to
affiliated
companies
+
Due
to
shareholder
)
<
/Typography
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
,
maxWidth
:
'100%'
,
paddingLeft
:
5
,
paddingRight
:
15
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
0
}}
>
3
.
Debt
to
EBITDA
=
Interest
Bearing
Debt
/
EBITDA
(
dimana
Interest
Bearing
Debt
=
Short
term
loan
+
Current
maturities
of
long
term
debt
+
Long
term
loan
+
Due
to
affiliated
companies
+
Due
to
shareholder
<
/Typography
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
,
maxWidth
:
'100%'
,
paddingLeft
:
5
,
paddingRight
:
15
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginLeft
:
10
}}
>&
EBITDA
=
Income
from
operations
2
(
EBIT
2
)
+
depreciation
)
<
/Typography
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
,
maxWidth
:
'100%'
,
paddingLeft
:
5
,
paddingRight
:
15
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
0
}}
>
4
.
EBITDA
to
Interest
(
ISCR
)
=
EBITDA
/
Interest
Expenses
(
dimana
EBITDA
=
Income
from
operations
2
(
EBIT
2
)
+
depreciation
)
<
/Typography
>
<
/div
>
{
/* <div style={{ display: 'flex', justifyContent: 'flex-end', maxWidth: '100%', paddingLeft: 15, paddingRight: 15, marginTop: 5}}>
<div style={{display: 'flex', flexDirection: 'row'}}>
<div style={{padding: 5}}>
<Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>Total Outstanding Loan</Typography>
</div>
<div style={{border: '1px solid black', padding: 5, minWidth: 200, display: 'flex', justifyContent: 'flex-end'}}>
<Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>{formatSeparator(this.state.totalOutStand)}</Typography>
</div>
</div>
</div>
<div style={{ display: 'flex', justifyContent: 'flex-end', maxWidth: '100%', paddingLeft: 15, paddingRight: 15}}>
<div style={{display: 'flex', flexDirection: 'row'}}>
<div style={{padding: 5}}>
<Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>Diff</Typography>
</div>
<div style={{borderStyle: 'solid', borderWidth: '0px 1px 1px 1px', padding: 5, minWidth: 200, display: 'flex', justifyContent: 'flex-end'}}>
<Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>{(formatSeparator(this.state.diff))}</Typography>
</div>
</div>
</div> */
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
marginTop
:
20
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
marginTop
:
20
}}
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
button
<
button
...
...
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