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
f609cdf4
Commit
f609cdf4
authored
Dec 21, 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
7fd159c0
bf5e151f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
277 additions
and
265 deletions
+277
-265
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+2
-2
FixedAssetsMovementMR.js
src/container/MonthlyReport/FixedAssetsMovementMR.js
+18
-9
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+225
-222
OperatingIndicatorMR.js
src/container/MonthlyReport/OperatingIndicatorMR.js
+30
-30
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+2
-2
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
f609cdf4
...
...
@@ -3359,7 +3359,7 @@ export default class BalanceSheet extends Component {
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
}}
>
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
String
(
this
.
props
.
month
.
month_value
).
toLocaleUpperCase
()}
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
...
...
@@ -3559,7 +3559,7 @@ export default class BalanceSheet extends Component {
<
div
style
=
{{
padding
:
25
}}
>
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
String
(
this
.
props
.
month
.
month_value
).
toLocaleUpperCase
()}
{
this
.
props
.
periode
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
{
this
.
state
.
dataLoaded
&&
(
...
...
src/container/MonthlyReport/FixedAssetsMovementMR.js
View file @
f609cdf4
...
...
@@ -622,9 +622,9 @@ export default class FixedAssetsMovementMR extends Component {
const
handleChange
=
(
value
,
tableMeta
,
type
)
=>
{
dataTable2
[
tableMeta
.
rowIndex
][
type
]
=
value
// console.log(dataTable2)
// console.log(dataTable2[tableMeta.rowIndex][type]);
// console.log(value);
}
const
handleValue
=
(
data
,
type
)
=>
{
...
...
@@ -645,14 +645,23 @@ export default class FixedAssetsMovementMR extends Component {
const
handleVariance
=
(
tableMeta
,
dex
,
type
)
=>
{
let
total
=
0
if
(
dex
===
1
)
{
total
=
Number
(
tableMeta
.
rowData
[
8
])
-
Number
(
tableMeta
.
rowData
[
9
])
total
=
Number
(
tableMeta
.
rowData
[
8
])
-
Number
(
tableMeta
.
rowData
[
9
])
==
NaN
?
"0.0"
:
Number
(
tableMeta
.
rowData
[
8
])
-
Number
(
tableMeta
.
rowData
[
9
])
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
}
else
if
(
dex
===
2
)
{
total
=
Number
(
tableMeta
.
rowData
[
8
])
-
Number
(
tableMeta
.
rowData
[
6
])
// console.log(tableMeta.rowData[8]);
// console.log(tableMeta.rowData[9]);
// console.log(total)
// } else if (dex === 2) {
total
=
Number
(
tableMeta
.
rowData
[
8
])
-
Number
(
tableMeta
.
rowData
[
6
])
==
NaN
?
"0.0"
:
Number
(
tableMeta
.
rowData
[
8
])
-
Number
(
tableMeta
.
rowData
[
6
])
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
// console.log(tableMeta.rowData[8]);
// console.log(tableMeta.rowData[6]);
// console.log(total)
}
else
if
(
dex
===
3
)
{
total
=
Number
(
tableMeta
.
rowData
[
8
])
-
Number
(
tableMeta
.
rowData
[
7
])
total
=
Number
(
tableMeta
.
rowData
[
8
])
-
Number
(
tableMeta
.
rowData
[
7
])
==
NaN
?
"0.0"
:
Number
(
tableMeta
.
rowData
[
8
])
-
Number
(
tableMeta
.
rowData
[
7
])
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
console
.
log
(
tableMeta
.
rowData
[
8
]);
console
.
log
(
tableMeta
.
rowData
[
7
]);
console
.
log
(
total
)
}
return
total
}
...
...
@@ -851,7 +860,7 @@ export default class FixedAssetsMovementMR extends Component {
<
/div
>
<
/div
>
<
div
className
=
"col-3"
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
9
0
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
12
0
}}
>
{
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
4
?
null
:
...
...
@@ -864,7 +873,7 @@ export default class FixedAssetsMovementMR extends Component {
<
NumberFormat
thousandSeparator
=
{
true
}
// style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style
=
{{
color
:
this
.
props
.
isApprover
?
'black'
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
isApprover
?
'black'
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
this
.
props
.
isApprover
}
...
...
@@ -1260,7 +1269,7 @@ export default class FixedAssetsMovementMR extends Component {
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
}}
>
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
String
(
this
.
props
.
month
.
month_value
).
toLocaleUpperCase
()}
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
...
...
@@ -1456,7 +1465,7 @@ export default class FixedAssetsMovementMR extends Component {
<
div
style
=
{{
padding
:
20
}}
>
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
String
(
this
.
props
.
month
.
month_value
).
toLocaleUpperCase
()}
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
f609cdf4
...
...
@@ -1226,8 +1226,14 @@ export default class ListOfCreditFacilities extends Component {
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
setState
({
loading
:
false
})
})
console
.
log
(
dataTable2
)
}
else
{
if
(
column
!=
8
&&
column
!=
11
&&
column
!=
18
&&
column
!=
25
&&
column
!=
27
&&
column
!=
29
&&
column
!=
31
&&
column
!=
33
&&
column
!=
36
&&
column
!=
39
&&
column
!=
42
&&
column
!=
45
)
{
value
=
String
(
value
).
split
(
","
).
join
(
""
)
value
=
Number
(
value
).
toFixed
(
2
)
}
else
{
value
=
String
(
value
).
split
(
","
).
join
(
""
)
}
dataTable2
[
tableMeta
.
rowIndex
][
column
]
=
value
if
(
value
.
value
!==
undefined
)
{
if
(
value
.
value
==
'Investment Loan'
)
{
dataTable2
[
tableMeta
.
rowIndex
][
16
]
=
0
...
...
@@ -1248,8 +1254,6 @@ export default class ListOfCreditFacilities extends Component {
dataTable2
[
tableMeta
.
rowIndex
][
17
]
=
0
}
}
dataTable2
[
tableMeta
.
rowIndex
][
column
]
=
value
console
.
log
(
dataTable2
)
}
}
...
...
@@ -1678,7 +1682,7 @@ export default class ListOfCreditFacilities extends Component {
}
}
},
{
name
:
"Interest"
,
name
:
"Interest
(%)
"
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
TableCell
style
=
{{
...
style2
,
top
:
0
,
zIndex
:
99
,
backgroundColor
:
'#37b5e6'
,
width
:
96
,
borderRight
:
'1px #fff solid'
}}
>
...
...
@@ -1686,31 +1690,32 @@ export default class ListOfCreditFacilities extends Component {
<
/TableCell
>
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
val
,
tableMeta
,
updateValue
)
=>
{
customBodyRender
:
(
val
ue
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
flex
:
1
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
==
8
||
tableMeta
.
rowData
[
0
]
==
9
?
null
:
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
val
}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
suffix
=
"%"
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
Number
(
val
).
toFixed
(
2
)}
value
=
{
Number
(
value
).
toFixed
(
2
)}
// disabled={this.props.isApprover ? true : ((this.props.lastStatus == 'SUBMIT' || this.props.lastStatus == 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
maxLength
=
{
4
}
decimalScale
=
{
2
}
onBlur
=
{(
event
)
=>
{
// updateValue(som
e)
// updateValue(event.target.valu
e)
handleChange
(
event
.
target
.
value
,
tableMeta
,
tableMeta
.
columnIndex
)
// // // // console.log(tableMeta.rowData[0])
}}
/
>
}
/>
}
/
>
}
<
/div
>
)
}
...
...
@@ -1813,7 +1818,7 @@ export default class ListOfCreditFacilities extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
false
}
value
=
{
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)
==
0.0
?
"
-
"
:
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)
==
0.0
?
"
0.0
"
:
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
,
12
)
}}
...
...
@@ -1850,7 +1855,7 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
val
}
//
value={val}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
...
...
@@ -1930,7 +1935,7 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
val
}
//
value={val}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
...
...
@@ -2770,10 +2775,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
}}
>
<
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
=
"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
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
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
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
45
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
...
...
@@ -3472,7 +3477,7 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
}}
>
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
String
(
this
.
props
.
month
.
month_value
).
toLocaleUpperCase
()}
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
...
...
@@ -3556,7 +3561,7 @@ export default class ListOfCreditFacilities extends Component {
<
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
}}
>
<
div
style
=
{{
border
:
'1px solid black'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
state
.
totalOutStand
}
<
/Typography
>
<
/div
>
<
/div
>
...
...
@@ -3566,12 +3571,12 @@ export default class ListOfCreditFacilities extends Component {
<
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
}}
>
<
div
style
=
{{
borderStyle
:
'solid'
,
borderWidth
:
'0px 1px 1px 1px'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
state
.
diff
}
<
/Typography
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
marginTop
:
20
}}
>
<
div
className
=
"col-1"
>
<
button
...
...
@@ -3588,7 +3593,7 @@ export default class ListOfCreditFacilities extends Component {
outline
:
'none'
}}
>
<
div
style
=
{{
backgroundColor
:
'#019ce5'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
marginLeft
:
20
}}
>
<
div
style
=
{{
backgroundColor
:
'#019ce5'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Back
<
/Typography
>
<
/div
>
<
/button
>
...
...
@@ -3665,7 +3670,6 @@ export default class ListOfCreditFacilities extends Component {
<
/div
>
{
/* : null } */
}
<
/div
>
<
/div
>
<
/Paper
>
:
<
Paper
style
=
{{
paddingTop
:
10
,
paddingBottom
:
20
}}
>
...
...
@@ -3680,7 +3684,7 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
padding
:
20
}}
>
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
String
(
this
.
props
.
month
.
month_value
).
toLocaleUpperCase
()}
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
...
...
@@ -3700,7 +3704,7 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
padding
:
5
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Total
Outstanding
Loan
<
/Typography
>
<
/div
>
<
div
style
=
{{
border
:
'1px solid black'
,
padding
:
5
}}
>
<
div
style
=
{{
border
:
'1px solid black'
,
padding
:
5
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
state
.
totalOutStand
}
<
/Typography
>
<
/div
>
<
/div
>
...
...
@@ -3710,12 +3714,12 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
padding
:
5
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Diff
<
/Typography
>
<
/div
>
<
div
style
=
{{
borderStyle
:
'solid'
,
borderWidth
:
'0px 1px 1px 1px'
,
padding
:
5
}}
>
<
div
style
=
{{
borderStyle
:
'solid'
,
borderWidth
:
'0px 1px 1px 1px'
,
padding
:
5
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
state
.
diff
}
<
/Typography
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
marginTop
:
20
}}
>
<
div
className
=
"col-1"
>
<
button
...
...
@@ -3733,7 +3737,7 @@ export default class ListOfCreditFacilities extends Component {
outline
:
'none'
}}
>
<
div
style
=
{{
backgroundColor
:
'#019ce5'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
marginLeft
:
20
}}
>
<
div
style
=
{{
backgroundColor
:
'#019ce5'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Back
<
/Typography
>
<
/div
>
<
/button
>
...
...
@@ -3810,7 +3814,6 @@ export default class ListOfCreditFacilities extends Component {
<
/div
>
{
/* : null } */
}
<
/div
>
<
/div
>
<
/Paper>
}
<
/div
>
...
...
src/container/MonthlyReport/OperatingIndicatorMR.js
View file @
f609cdf4
...
...
@@ -324,7 +324,7 @@ export default class OperatingIndicatorMR extends Component {
monthly_report
:
payload
}
console
.
log
(
body
)
this
.
setState
({
payload
:
body
,
buttonError
:
false
,
judul
:
resp
.
rows
[
1
][
0
]
})
this
.
setState
({
payload
:
body
,
buttonError
:
false
,
judul
:
resp
.
rows
[
1
][
0
]
,
judulColumn
:
resp
.
rows
[
0
][
0
]
})
}
});
}
...
...
@@ -545,11 +545,11 @@ export default class OperatingIndicatorMR extends Component {
let
total
=
0
if
(
dex
===
1
)
{
// total = Number(dataTable2[tableMeta.rowIndex][11]) / Number(dataTable2[tableMeta.rowIndex][8])
total
=
R
.
equals
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
])),
NaN
)
?
'0'
:
R
.
equals
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
])
),
Infinity
)
?
'0'
:
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
])
total
=
R
.
equals
((
Number
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
),
NaN
)
?
'0'
:
R
.
equals
((
Number
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
),
Infinity
)
?
'0'
:
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
])
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
}
else
if
(
dex
===
2
)
{
// total = Number(dataTable2[tableMeta.rowIndex][13]) / Number(dataTable2[tableMeta.rowIndex][9])
total
=
R
.
equals
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
])),
NaN
)
?
'0'
:
R
.
equals
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
])
),
Infinity
)
?
'0'
:
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
])
total
=
R
.
equals
((
Number
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
]))
*
100
),
NaN
)
?
'0'
:
R
.
equals
((
Number
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
]))
*
100
),
Infinity
)
?
'0'
:
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
])
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
}
return
total
...
...
@@ -730,7 +730,7 @@ export default class OperatingIndicatorMR extends Component {
}
}
},
{
name
:
`Rolling Outlook (FY
${
this
.
props
.
periode
}
)`
,
name
:
`Rolling Outlook (FY
${
this
.
props
.
data
.
periode
}
)`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
TableCell
style
=
{{
...
style2
,
top
:
0
,
zIndex
:
99
,
backgroundColor
:
'#07a7d0'
,
width
:
96
,
borderLeft
:
'1px #fff solid'
,
borderRight
:
'1px #fff solid'
}}
>
...
...
@@ -1354,18 +1354,18 @@ export default class OperatingIndicatorMR extends Component {
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
data
.
report_id
===
22
?
'J
an
'
:
this
.
props
.
data
.
report_id
===
23
?
'F
eb
'
:
this
.
props
.
data
.
report_id
===
24
?
'M
ar
'
:
this
.
props
.
data
.
report_id
===
25
?
'A
pr
'
:
this
.
props
.
data
.
report_id
===
26
?
'M
ay
'
:
this
.
props
.
data
.
report_id
===
27
?
'J
un
'
:
this
.
props
.
data
.
report_id
===
28
?
'J
ul
'
:
this
.
props
.
data
.
report_id
===
29
?
'A
ug
'
:
this
.
props
.
data
.
report_id
===
30
?
'S
ep
'
:
this
.
props
.
data
.
report_id
===
31
?
'O
ct
'
:
this
.
props
.
data
.
report_id
===
32
?
'N
ov
'
:
this
.
props
.
data
.
report_id
===
33
?
'D
ec
'
:
""
}
{
this
.
props
.
data
.
periode
}
this
.
props
.
data
.
report_id
===
22
?
'J
AN
'
:
this
.
props
.
data
.
report_id
===
23
?
'F
EB
'
:
this
.
props
.
data
.
report_id
===
24
?
'M
AR
'
:
this
.
props
.
data
.
report_id
===
25
?
'A
PR
'
:
this
.
props
.
data
.
report_id
===
26
?
'M
AY
'
:
this
.
props
.
data
.
report_id
===
27
?
'J
UN
'
:
this
.
props
.
data
.
report_id
===
28
?
'J
UL
'
:
this
.
props
.
data
.
report_id
===
29
?
'A
UG
'
:
this
.
props
.
data
.
report_id
===
30
?
'S
EP
'
:
this
.
props
.
data
.
report_id
===
31
?
'O
CT
'
:
this
.
props
.
data
.
report_id
===
32
?
'N
OV
'
:
this
.
props
.
data
.
report_id
===
33
?
'D
EC
'
:
""
}
{
this
.
props
.
data
.
periode
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
...
...
@@ -1521,18 +1521,18 @@ export default class OperatingIndicatorMR extends Component {
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
data
.
report_id
===
22
?
'J
an
'
:
this
.
props
.
data
.
report_id
===
23
?
'F
eb
'
:
this
.
props
.
data
.
report_id
===
24
?
'M
ar
'
:
this
.
props
.
data
.
report_id
===
25
?
'A
pr
'
:
this
.
props
.
data
.
report_id
===
26
?
'M
ay
'
:
this
.
props
.
data
.
report_id
===
27
?
'J
un
'
:
this
.
props
.
data
.
report_id
===
28
?
'J
ul
'
:
this
.
props
.
data
.
report_id
===
29
?
'A
ug
'
:
this
.
props
.
data
.
report_id
===
30
?
'S
ep
'
:
this
.
props
.
data
.
report_id
===
31
?
'O
ct
'
:
this
.
props
.
data
.
report_id
===
32
?
'N
ov
'
:
this
.
props
.
data
.
report_id
===
33
?
'D
ec
'
:
""
}
{
this
.
props
.
data
.
periode
}
this
.
props
.
data
.
report_id
===
22
?
'J
AN
'
:
this
.
props
.
data
.
report_id
===
23
?
'F
EB
'
:
this
.
props
.
data
.
report_id
===
24
?
'M
AR
'
:
this
.
props
.
data
.
report_id
===
25
?
'A
PR
'
:
this
.
props
.
data
.
report_id
===
26
?
'M
AY
'
:
this
.
props
.
data
.
report_id
===
27
?
'J
UN
'
:
this
.
props
.
data
.
report_id
===
28
?
'J
UL
'
:
this
.
props
.
data
.
report_id
===
29
?
'A
UG
'
:
this
.
props
.
data
.
report_id
===
30
?
'S
EP
'
:
this
.
props
.
data
.
report_id
===
31
?
'O
CT
'
:
this
.
props
.
data
.
report_id
===
32
?
'N
OV
'
:
this
.
props
.
data
.
report_id
===
33
?
'D
EC
'
:
""
}
{
this
.
props
.
data
.
periode
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
...
...
@@ -1549,7 +1549,7 @@ export default class OperatingIndicatorMR extends Component {
<
/div
>
)}
<
/div
>
<
div
className
=
"grid grid-2x"
>
<
div
className
=
"grid grid-2x"
style
=
{{
marginLeft
:
10
}}
>
<
div
className
=
"col-1"
>
<
button
className
=
"button"
...
...
@@ -1668,7 +1668,7 @@ export default class OperatingIndicatorMR extends Component {
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
}}
onUpload
=
{()
=>
{
String
(
this
.
state
.
judul
).
includes
(
"MONTHLY"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"REPORT"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"OPERATING"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"INDICATOR"
)
?
String
(
this
.
state
.
judul
Column
).
includes
(
"TEMPLATE"
)
&&
String
(
this
.
state
.
judulColumn
).
includes
(
"UPLOAD"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"MONTHLY"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"REPORT"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"OPERATING"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"INDICATOR"
)
?
this
.
checkUpload
()
:
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
}}
...
...
src/container/MonthlyReport/TaxPlanningMR.js
View file @
f609cdf4
...
...
@@ -1351,7 +1351,7 @@ export default class TaxPlanningMR extends Component {
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
}}
>
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
String
(
this
.
props
.
month
.
month_value
).
toLocaleUpperCase
()},
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
...
...
@@ -1556,7 +1556,7 @@ export default class TaxPlanningMR extends Component {
<
div
style
=
{{
padding
:
25
}}
>
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
String
(
this
.
props
.
month
.
month_value
).
toLocaleUpperCase
()},
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
{
this
.
state
.
dataLoaded
&&
(
...
...
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