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
dfe775f4
Commit
dfe775f4
authored
Nov 26, 2020
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
08d7ec6d
266d8075
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
287 additions
and
149 deletions
+287
-149
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+80
-4
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+66
-58
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+141
-87
No files found.
src/container/MonthlyReport/BalanceSheetMR.js
View file @
dfe775f4
...
@@ -7,6 +7,8 @@ import api from '../../api';
...
@@ -7,6 +7,8 @@ import api from '../../api';
import
NumberFormat
from
'react-number-format'
;
import
NumberFormat
from
'react-number-format'
;
import
{
type
}
from
'ramda'
;
import
{
type
}
from
'ramda'
;
import
{
PropagateLoader
}
from
'react-spinners'
;
import
{
PropagateLoader
}
from
'react-spinners'
;
import
UploadFile
from
"../../library/Upload"
;
import
{
ExcelRenderer
}
from
'react-excel-renderer'
;
const
LightTooltip
=
withStyles
((
theme
)
=>
({
const
LightTooltip
=
withStyles
((
theme
)
=>
({
tooltip
:
{
tooltip
:
{
...
@@ -42,6 +44,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -42,6 +44,7 @@ export default class BalanceSheetMR extends Component {
dataTable
:
[],
dataTable
:
[],
loading
:
true
loading
:
true
}
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
}
componentDidMount
()
{
componentDidMount
()
{
...
@@ -165,12 +168,48 @@ export default class BalanceSheetMR extends Component {
...
@@ -165,12 +168,48 @@ export default class BalanceSheetMR extends Component {
}
}
}
}
fileHandler
=
(
event
)
=>
{
let
fileObj
=
event
ExcelRenderer
(
fileObj
,
(
err
,
resp
)
=>
{
// console.log(resp)
if
(
err
)
{
console
.
log
(
err
);
}
else
{
let
isi
=
resp
.
rows
.
slice
(
3
)
// console.log(resp.rows[2]);
let
payload
=
[]
let
reg
=
/^
[
-+
]?(?:[
0-9
]
+,
)
*
[
0-9
]
+
(?:\.[
0-9
]
+
)?
$/
;
isi
.
map
((
i
,
index
)
=>
{
if
(
i
.
length
>
0
)
{
payload
.
push
({
item_report_id
:
i
[
1
]
===
undefined
?
""
:
String
(
i
[
1
]).
trim
(),
item_report
:
i
[
2
]
===
undefined
?
""
:
String
(
i
[
2
]).
trim
(),
total_actual_before
:
i
[
2
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
2
]))
===
false
?
"0"
:
String
(
i
[
2
]).
trim
(),
january
:
i
[
3
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
3
]))
===
false
?
"0"
:
String
(
i
[
3
]).
trim
(),
february
:
i
[
4
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
4
]))
===
false
?
"0"
:
String
(
i
[
4
]).
trim
(),
})
}
})
let
body
=
{
company_id
:
this
.
props
.
company
.
company_id
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
balance_sheet
:
payload
,
months
:
this
.
props
.
month
.
month_id
}
// console.log(body)
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
}
});
}
backToMonthlyReport
(
type
)
{
backToMonthlyReport
(
type
)
{
console
.
log
(
this
.
state
.
dataTable
);
this
.
setState
({
loading
:
true
})
let
data
=
[]
let
data
=
[]
this
.
state
.
dataTable
.
map
(
i
=>
{
this
.
state
.
dataTable
.
map
(
i
=>
{
data
.
push
({
data
.
push
({
"item_report_id"
:
i
[
2
],
"item_report_id"
:
i
[
1
],
"rolling_outlook"
:
i
[
6
],
"rolling_outlook"
:
i
[
6
],
"master_budget"
:
i
[
7
],
"master_budget"
:
i
[
7
],
"rolling_budget"
:
i
[
8
],
"rolling_budget"
:
i
[
8
],
...
@@ -367,7 +406,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -367,7 +406,7 @@ export default class BalanceSheetMR extends Component {
customBodyRender
:
(
val
,
tableMeta
,
updateValue
)
=>
{
customBodyRender
:
(
val
,
tableMeta
,
updateValue
)
=>
{
return
(
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
null
:
val
val
}
}
...
@@ -1048,7 +1087,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -1048,7 +1087,7 @@ export default class BalanceSheetMR extends Component {
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
margin
:
5
margin
:
5
}}
}}
onClick
=
{()
=>
null
}
onClick
=
{()
=>
this
.
setState
({
visibleUpload
:
true
})
}
>
>
<
img
src
=
{
Images
.
upload
}
/
>
<
img
src
=
{
Images
.
upload
}
/
>
<
/button
>
<
/button
>
...
@@ -1187,6 +1226,43 @@ export default class BalanceSheetMR extends Component {
...
@@ -1187,6 +1226,43 @@ export default class BalanceSheetMR extends Component {
<
/div
>
<
/div
>
<
/Paper
>
<
/Paper
>
<
/div
>
<
/div
>
{
this
.
state
.
visibleUpload
&&
(
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-panel grid grid-2x main-color"
style
=
{{
height
:
64
,
borderTopRightRadius
:
8
,
borderTopLeftRadius
:
8
}}
>
<
div
className
=
"col-1"
style
=
{{
maxWidth
:
"inherit"
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
className
=
"popup-title"
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
16
,
fontWeight
:
'bold'
}}
>
Upload
File
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"col-2 content-right"
style
=
{{
maxWidth
:
"inherit"
,
alignSelf
:
'center'
}}
>
<
button
type
=
"button"
className
=
"btn btn-circle btn-white"
onClick
=
{()
=>
this
.
setState
({
visibleUpload
:
false
})}
>
<
img
src
=
{
Images
.
close
}
/
>
<
/button
>
<
/div
>
<
/div
>
<
UploadFile
type
=
{
this
.
state
.
uploadStatus
}
percentage
=
{
this
.
state
.
percentage
}
result
=
{
this
.
state
.
result
}
acceptedFiles
=
{[
"xlsx"
]}
onHandle
=
{(
dt
)
=>
{
this
.
fileHandler
(
dt
)
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
}}
onUpload
=
{()
=>
{
this
.
state
.
judul
===
"MONTHLY REPORT - BALANCE SHEET"
?
this
.
checkUpload
()
:
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
}}
/
>
<
/div
>
<
/div
>
)}
<
/div
>
<
/div
>
)
)
}
}
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
dfe775f4
...
@@ -190,7 +190,11 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -190,7 +190,11 @@ export default class ListOfCreditFacilities extends Component {
}
}
render
()
{
render
()
{
let
dataTable2
=
this
.
state
.
dataTable
// let dataTable2 = this.state.dataTable
let
dataTable2
=
[
[
""
,
""
,
""
,
""
,
""
,
"PT A"
,
"BANK DKI"
,
"Investment Loan"
,
"PRK"
,
"14-jun-19"
,
"90%"
,
"0"
,
"0"
,
"10000"
,
"0"
,
"-"
,
"0"
,
"10000"
,
"0"
,
"0"
,
"10000"
,
"0"
,
"10000"
,
"-"
,
"-"
,
">1"
,
"1.25"
,
"<5"
,
"1.30"
,
"<4"
,
"3.82"
,
">1.25"
,
"16.15"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"hai"
],
[
""
,
""
,
""
,
""
,
""
,
"PT B"
,
"BANK BCA"
,
"Investment Loan"
,
"PRK"
,
"14-jun-19"
,
"90%"
,
"0"
,
"0"
,
"10000"
,
"0"
,
"-"
,
"0"
,
"10000"
,
"0"
,
"0"
,
"10000"
,
"0"
,
"10000"
,
"-"
,
"-"
,
">1"
,
"1.25"
,
"<5"
,
"1.30"
,
"<4"
,
"3.82"
,
">1.25"
,
"16.15"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"ok"
]
]
const
handleAction
=
(
idParent
,
typeReport
,
tableMeta
)
=>
{
const
handleAction
=
(
idParent
,
typeReport
,
tableMeta
)
=>
{
if
(
this
.
props
.
isApprover
)
{
if
(
this
.
props
.
isApprover
)
{
return
false
return
false
...
@@ -261,7 +265,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -261,7 +265,7 @@ export default class ListOfCreditFacilities extends Component {
// handleAction(tableMeta.rowData[2]) &&
// handleAction(tableMeta.rowData[2]) &&
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
/* {tableMeta.rowData[6] === "Active" ? */
}
{
/* {tableMeta.rowData[6] === "Active" ? */
}
{
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
],
tableMeta
)
&&
<
span
>
{
/* {handleAction(tableMeta.rowData[2], tableMeta.rowData[0], tableMeta) && <span> */
}
<
LightTooltip
title
=
{
'Add'
}
arrow
>
<
LightTooltip
title
=
{
'Add'
}
arrow
>
<
button
<
button
style
=
{{
style
=
{{
...
@@ -278,8 +282,8 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -278,8 +282,8 @@ export default class ListOfCreditFacilities extends Component {
<
img
src
=
{
Images
.
add
}
/
>
<
img
src
=
{
Images
.
add
}
/
>
<
/button
>
<
/button
>
<
/LightTooltip
>
<
/LightTooltip
>
<
/span>
}
{
/* </span>} */
}
{
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
])
&&
<
span
>
{
/* {handleAction(tableMeta.rowData[2], tableMeta.rowData[0]) && <span> */
}
<
LightTooltip
title
=
{
'Delete'
}
arrow
>
<
LightTooltip
title
=
{
'Delete'
}
arrow
>
<
button
<
button
style
=
{{
style
=
{{
...
@@ -296,7 +300,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -296,7 +300,7 @@ export default class ListOfCreditFacilities extends Component {
<
img
src
=
{
Images
.
delete
}
/
>
<
img
src
=
{
Images
.
delete
}
/
>
<
/button
>
<
/button
>
<
/LightTooltip
>
<
/LightTooltip
>
<
/span>
}
{
/* </span>} */
}
<
/div
>
<
/div
>
);
);
}
}
...
@@ -451,10 +455,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -451,10 +455,10 @@ export default class ListOfCreditFacilities extends Component {
</TableCell> */
}
</TableCell> */
}
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
backgroundColor
:
'#07a7d0'
}}
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -470,7 +474,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -470,7 +474,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(tableMeta);
// console.log(tableMeta);
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"grid grid-
3
x content-center"
>
<
div
className
=
"grid grid-
2
x content-center"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
...
@@ -532,10 +536,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -532,10 +536,10 @@ export default class ListOfCreditFacilities extends Component {
</TableCell> */
}
</TableCell> */
}
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
backgroundColor
:
'#07a7d0'
}}
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -551,7 +555,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -551,7 +555,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(tableMeta);
// console.log(tableMeta);
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"grid grid-
3
x content-center"
>
<
div
className
=
"grid grid-
2
x content-center"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
...
@@ -613,10 +617,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -613,10 +617,10 @@ export default class ListOfCreditFacilities extends Component {
</TableCell> */
}
</TableCell> */
}
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
backgroundColor
:
'#07a7d0'
}}
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -632,7 +636,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -632,7 +636,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(tableMeta);
// console.log(tableMeta);
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"grid grid-
3
x content-center"
>
<
div
className
=
"grid grid-
2
x content-center"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
...
@@ -693,14 +697,14 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -693,14 +697,14 @@ export default class ListOfCreditFacilities extends Component {
<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> */
}
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-
2
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"grid grid-
3
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
}}
>
<
span
>
{
"Type"
}
<
/span
>
<
span
>
{
"Type"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderLeft
:
"1px #fff solid"
,
borderRight
:
"1px #fff solid"
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
borderLeft
:
"1px #fff solid"
,
borderRight
:
"1px #fff solid"
}}
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
width
:
120
}}
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
width
:
120
}}
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -798,10 +802,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -798,10 +802,10 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
backgroundColor
:
'#07a7d0'
}}
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -817,7 +821,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -817,7 +821,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(tableMeta);
// console.log(tableMeta);
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"grid grid-
3
x content-center"
>
<
div
className
=
"grid grid-
2
x content-center"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
...
@@ -876,10 +880,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -876,10 +880,10 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
span
>
{
"Amount Original (Currency)"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
5
:
6
,
backgroundColor
:
'#07a7d0'
}}
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
span
>
{
"Amount (IDR Equivalent)"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -895,7 +899,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -895,7 +899,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(tableMeta);
// console.log(tableMeta);
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"grid grid-
3
x content-center"
>
<
div
className
=
"grid grid-
2
x content-center"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
...
@@ -950,19 +954,23 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -950,19 +954,23 @@ export default class ListOfCreditFacilities extends Component {
},
{
},
{
name
:
`Current Ratio`
,
name
:
`Current Ratio`
,
options
:
{
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
customHeadRender
:
(
columnMeta
,
tableMeta
)
=>
{
console
.
log
(
columnMeta
)
console
.
log
(
tableMeta
)
return
(
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
'100%'
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
'100%'
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
'100%'
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
'100%'
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/th
>
<
/th
>
),
)
},
setCellProps
:
()
=>
({
setCellProps
:
()
=>
({
style
:
{
style
:
{
paddingLeft
:
0
,
paddingLeft
:
0
,
...
@@ -973,7 +981,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -973,7 +981,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(tableMeta);
// console.log(tableMeta);
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"grid grid-
3
x content-center"
>
<
div
className
=
"grid grid-
2
x content-center"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
...
@@ -1032,10 +1040,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1032,10 +1040,10 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
'100%'
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
'100%'
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -1051,7 +1059,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1051,7 +1059,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(tableMeta);
// console.log(tableMeta);
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"grid grid-
3
x content-center"
>
<
div
className
=
"grid grid-
2
x content-center"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
...
@@ -1110,10 +1118,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1110,10 +1118,10 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
'100%'
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
'100%'
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -1129,7 +1137,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1129,7 +1137,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(tableMeta);
// console.log(tableMeta);
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"grid grid-
3
x content-center"
>
<
div
className
=
"grid grid-
2
x content-center"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
...
@@ -1188,10 +1196,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1188,10 +1196,10 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
'100%'
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
'100%'
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -1207,7 +1215,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1207,7 +1215,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(tableMeta);
// console.log(tableMeta);
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"grid grid-
3
x content-center"
>
<
div
className
=
"grid grid-
2
x content-center"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
...
@@ -1265,14 +1273,14 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1265,14 +1273,14 @@ export default class ListOfCreditFacilities extends Component {
customHeadRender
:
(
columnMeta
)
=>
(
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-
2
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-
3
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -1369,14 +1377,14 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1369,14 +1377,14 @@ export default class ListOfCreditFacilities extends Component {
customHeadRender
:
(
columnMeta
)
=>
(
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-
2
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-
3
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -1473,14 +1481,14 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1473,14 +1481,14 @@ export default class ListOfCreditFacilities extends Component {
customHeadRender
:
(
columnMeta
)
=>
(
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-
2
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-
3
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -1577,14 +1585,14 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1577,14 +1585,14 @@ export default class ListOfCreditFacilities extends Component {
customHeadRender
:
(
columnMeta
)
=>
(
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-
2
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-
3
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -1681,14 +1689,14 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1681,14 +1689,14 @@ export default class ListOfCreditFacilities extends Component {
customHeadRender
:
(
columnMeta
)
=>
(
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-
2
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-
3
x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
}}
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/container/MonthlyReport/TaxPlanningMR.js
View file @
dfe775f4
...
@@ -778,7 +778,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -778,7 +778,7 @@ export default class TaxPlanningMR extends Component {
}
}
const
handleChange
=
(
value
,
tableMeta
,
indexChilds
)
=>
{
const
handleChange
=
(
value
,
tableMeta
,
indexChilds
)
=>
{
//
console.log(dataTable2)
console
.
log
(
dataTable2
)
let
val
=
String
(
value
).
split
(
","
).
join
(
""
)
let
val
=
String
(
value
).
split
(
","
).
join
(
""
)
// let data = this.state.dataTable2
// let data = this.state.dataTable2
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
4
]
===
dataTable2
[
tableMeta
.
rowIndex
][
2
])
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
4
]
===
dataTable2
[
tableMeta
.
rowIndex
][
2
])
...
@@ -831,14 +831,14 @@ export default class TaxPlanningMR extends Component {
...
@@ -831,14 +831,14 @@ export default class TaxPlanningMR extends Component {
dataTable2
[
tableMeta
.
rowIndex
][
6
].
tbf
=
Number
(
total
).
toFixed
(
1
)
dataTable2
[
tableMeta
.
rowIndex
][
6
].
tbf
=
Number
(
total
).
toFixed
(
1
)
return
total
return
total
}
}
const
handleValue
=
(
data
)
=>
{
const
handleValue
=
(
data
,
type
)
=>
{
let
total
=
0
let
total
=
0
dataTable2
.
map
((
item
,
index
)
=>
{
dataTable2
.
map
((
item
,
index
)
=>
{
if
(
data
.
rowData
[
4
]
===
item
[
5
])
{
if
(
data
.
rowData
[
1
]
===
item
[
2
])
{
total
=
item
[
data
.
columnIndex
]
===
undefined
?
(
Number
(
total
)
+
0
)
:
(
Number
(
total
)
+
Number
(
item
[
data
.
columnIndex
].
fcp
))
total
=
item
[
data
.
columnIndex
]
===
undefined
?
(
Number
(
total
)
+
0
)
:
(
Number
(
total
)
+
Number
(
item
[
data
.
columnIndex
].
fcp
))
}
}
})
})
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
4
]
===
dataTable2
[
data
.
rowIndex
][
5
])
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
1
]
===
dataTable2
[
data
.
rowIndex
][
2
])
let
a
=
dataTable2
[
data
.
rowIndex
][
data
.
columnIndex
].
fcp
=
Number
(
total
)
let
a
=
dataTable2
[
data
.
rowIndex
][
data
.
columnIndex
].
fcp
=
Number
(
total
)
return
a
return
a
}
}
...
@@ -957,7 +957,11 @@ export default class TaxPlanningMR extends Component {
...
@@ -957,7 +957,11 @@ export default class TaxPlanningMR extends Component {
(
type
==
2
?
(
type
==
2
?
item
[
tableMeta
.
columnIndex
].
fcp
.
value
==
undefined
?
Number
(
item
[
tableMeta
.
columnIndex
].
fcp
==
""
||
item
[
tableMeta
.
columnIndex
].
fcp
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
fcp
)
:
Number
(
item
[
tableMeta
.
columnIndex
].
fcp
.
value
==
""
||
item
[
tableMeta
.
columnIndex
].
fcp
.
value
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
fcp
.
value
)
item
[
tableMeta
.
columnIndex
].
fcp
.
value
==
undefined
?
Number
(
item
[
tableMeta
.
columnIndex
].
fcp
==
""
||
item
[
tableMeta
.
columnIndex
].
fcp
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
fcp
)
:
Number
(
item
[
tableMeta
.
columnIndex
].
fcp
.
value
==
""
||
item
[
tableMeta
.
columnIndex
].
fcp
.
value
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
fcp
.
value
)
:
:
(
type
==
3
?
item
[
tableMeta
.
columnIndex
].
tbf
.
value
==
undefined
?
Number
(
item
[
tableMeta
.
columnIndex
].
tbf
==
""
||
item
[
tableMeta
.
columnIndex
].
tbf
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
tbf
)
:
Number
(
item
[
tableMeta
.
columnIndex
].
tbf
.
value
==
""
||
item
[
tableMeta
.
columnIndex
].
tbf
.
value
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
tbf
.
value
)
item
[
tableMeta
.
columnIndex
].
tbf
.
value
==
undefined
?
Number
(
item
[
tableMeta
.
columnIndex
].
tbf
==
""
||
item
[
tableMeta
.
columnIndex
].
tbf
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
tbf
)
:
Number
(
item
[
tableMeta
.
columnIndex
].
tbf
.
value
==
""
||
item
[
tableMeta
.
columnIndex
].
tbf
.
value
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
tbf
.
value
)
:
item
[
tableMeta
.
columnIndex
].
value
==
undefined
?
Number
(
item
[
tableMeta
.
columnIndex
]
==
""
||
item
[
tableMeta
.
columnIndex
]
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
])
:
Number
(
item
[
tableMeta
.
columnIndex
].
value
==
""
||
item
[
tableMeta
.
columnIndex
].
value
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
value
)
)
)
)
)
)
}
}
...
@@ -967,8 +971,10 @@ export default class TaxPlanningMR extends Component {
...
@@ -967,8 +971,10 @@ export default class TaxPlanningMR extends Component {
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbc
=
total
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbc
=
total
}
else
if
(
type
==
2
)
{
}
else
if
(
type
==
2
)
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
fcp
=
total
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
fcp
=
total
}
else
{
}
else
if
(
type
==
3
)
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
=
total
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
=
total
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
total
}
}
return
total
return
total
}
}
...
@@ -1064,6 +1070,18 @@ export default class TaxPlanningMR extends Component {
...
@@ -1064,6 +1070,18 @@ export default class TaxPlanningMR extends Component {
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
5
]
===
"Control (should be nil)"
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
5
]
===
"Control (should be nil)"
?
null
:
null
:
tableMeta
.
rowData
[
0
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleParent
(
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
<
/span
>
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -1147,6 +1165,18 @@ export default class TaxPlanningMR extends Component {
...
@@ -1147,6 +1165,18 @@ export default class TaxPlanningMR extends Component {
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
null
:
null
:
tableMeta
.
rowData
[
0
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleParent
(
tableMeta
,
3
)).
toFixed
(
1
)}
/
>
<
/span
>
:
tableMeta
.
rowData
[
3
]
===
7
?
tableMeta
.
rowData
[
3
]
===
7
?
(
Number
(
handleValueFormula
(
value
,
tableMeta
,
3
)).
toFixed
(
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
Number
(
handleValueFormula
(
value
,
tableMeta
,
3
)).
toFixed
(
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
Number
(
handleValueFormula
(
value
,
tableMeta
,
3
)).
toFixed
(
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
Number
(
handleValueFormula
(
value
,
tableMeta
,
3
)).
toFixed
(
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
<
NumberFormat
<
NumberFormat
...
@@ -1228,6 +1258,18 @@ export default class TaxPlanningMR extends Component {
...
@@ -1228,6 +1258,18 @@ export default class TaxPlanningMR extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
null
null
:
:
tableMeta
.
rowData
[
0
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleParent
(
tableMeta
,
4
)).
toFixed
(
1
)}
/
>
<
/span
>
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -1269,6 +1311,18 @@ export default class TaxPlanningMR extends Component {
...
@@ -1269,6 +1311,18 @@ export default class TaxPlanningMR extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
null
null
:
:
tableMeta
.
rowData
[
0
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleParent
(
tableMeta
,
4
)).
toFixed
(
1
)}
/
>
<
/span
>
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
...
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