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
35df77cc
Commit
35df77cc
authored
Dec 14, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deni-' into 'master'
+_+ See merge request
!805
parents
e5e263bc
66f8101c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+12
-12
No files found.
src/container/MonthlyReport/BalanceSheetMR.js
View file @
35df77cc
...
...
@@ -154,7 +154,7 @@ export default class BalanceSheetMR extends Component {
item
.
balance_sheet
.
master_budget
===
""
?
"0"
:
item
.
balance_sheet
.
master_budget
,
item
.
balance_sheet
.
rolling_budget
===
""
?
"0"
:
item
.
balance_sheet
.
rolling_budget
,
item
.
balance_sheet
.
actual
===
""
?
"0"
:
item
.
balance_sheet
.
actual
,
item
.
balance_sheet
.
actual_previous_month
===
null
?
"
100.0"
:
item
.
balance_sheet
.
actual_previous_month
===
""
?
"10
0.0"
:
item
.
balance_sheet
.
actual_previous_month
,
item
.
balance_sheet
.
actual_previous_month
===
null
?
"
0.0"
:
item
.
balance_sheet
.
actual_previous_month
===
""
?
"
0.0"
:
item
.
balance_sheet
.
actual_previous_month
,
item
.
balance_sheet
.
amount_act_vs_previous_month
===
""
?
"0"
:
item
.
balance_sheet
.
amount_act_vs_previous_month
,
item
.
balance_sheet
.
percent_act_vs_previous_month
===
""
?
"0"
:
item
.
balance_sheet
.
percent_act_vs_previous_month
,
item
.
balance_sheet
.
amount_act_vs_mb
===
""
?
"0"
:
item
.
balance_sheet
.
amount_act_vs_mb
,
...
...
@@ -188,7 +188,7 @@ export default class BalanceSheetMR extends Component {
item
.
balance_sheet
.
master_budget
===
""
?
"0"
:
item
.
balance_sheet
.
master_budget
,
item
.
balance_sheet
.
rolling_budget
===
""
?
"0"
:
item
.
balance_sheet
.
rolling_budget
,
item
.
balance_sheet
.
actual
===
""
?
"0"
:
item
.
balance_sheet
.
actual
,
item
.
balance_sheet
.
actual_previous_month
===
null
?
"
100.0"
:
item
.
balance_sheet
.
actual_previous_month
===
""
?
"10
0.0"
:
item
.
balance_sheet
.
actual_previous_month
,
item
.
balance_sheet
.
actual_previous_month
===
null
?
"
0.0"
:
item
.
balance_sheet
.
actual_previous_month
===
""
?
"
0.0"
:
item
.
balance_sheet
.
actual_previous_month
,
item
.
balance_sheet
.
amount_act_vs_previous_month
===
""
?
"0"
:
item
.
balance_sheet
.
amount_act_vs_previous_month
,
item
.
balance_sheet
.
percent_act_vs_previous_month
===
""
?
"0"
:
item
.
balance_sheet
.
percent_act_vs_previous_month
,
item
.
balance_sheet
.
amount_act_vs_mb
===
""
?
"0"
:
item
.
balance_sheet
.
amount_act_vs_mb
,
...
...
@@ -325,7 +325,7 @@ export default class BalanceSheetMR extends Component {
]
})
console
.
log
(
dataTable
)
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
fals
e
},
()
=>
{
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
true
,
isUpload
:
tru
e
},
()
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
if
(
item
[
22
].
length
>
0
)
{
// console.log('masuk')
...
...
@@ -1480,7 +1480,7 @@ export default class BalanceSheetMR extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
false
}
//
disabled={false}
defaultValue
=
{
tableMeta
.
rowData
[
17
]}
inputProps
=
{{
style
:
{
...
...
@@ -1500,11 +1500,11 @@ export default class BalanceSheetMR extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
Number
(
tableMeta
.
rowData
[
12
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
12
])
>
this
.
state
.
maxValue
?
false
:
true
}
//
disabled={Number(tableMeta.rowData[12]) < this.state.minValue || Number(tableMeta.rowData[12]) > this.state.maxValue ? false : true}
defaultValue
=
{
tableMeta
.
rowData
[
17
]}
inputProps
=
{{
style
:
{
color
:
Number
(
tableMeta
.
rowData
[
12
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
12
])
>
this
.
state
.
maxValue
?
"#5198ea"
:
'
black
'
,
color
:
Number
(
tableMeta
.
rowData
[
12
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
12
])
>
this
.
state
.
maxValue
?
"#5198ea"
:
'
#5198ea
'
,
textAlign
:
'right'
}
}}
...
...
@@ -1532,7 +1532,7 @@ export default class BalanceSheetMR extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
false
}
//
disabled={false}
defaultValue
=
{
tableMeta
.
rowData
[
18
]}
inputProps
=
{{
style
:
{
...
...
@@ -1552,11 +1552,11 @@ export default class BalanceSheetMR extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
Number
(
tableMeta
.
rowData
[
14
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
14
])
>
this
.
state
.
maxValue
?
false
:
true
}
//
disabled={Number(tableMeta.rowData[14]) < this.state.minValue || Number(tableMeta.rowData[14]) > this.state.maxValue ? false : true}
defaultValue
=
{
tableMeta
.
rowData
[
18
]}
inputProps
=
{{
style
:
{
color
:
Number
(
tableMeta
.
rowData
[
14
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
14
])
>
this
.
state
.
maxValue
?
"#5198ea"
:
'
black
'
,
color
:
Number
(
tableMeta
.
rowData
[
14
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
14
])
>
this
.
state
.
maxValue
?
"#5198ea"
:
'
#5198ea
'
,
textAlign
:
'right'
}
}}
...
...
@@ -1584,7 +1584,7 @@ export default class BalanceSheetMR extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
false
}
//
disabled={false}
defaultValue
=
{
tableMeta
.
rowData
[
19
]}
inputProps
=
{{
style
:
{
...
...
@@ -1604,11 +1604,11 @@ export default class BalanceSheetMR extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
Number
(
tableMeta
.
rowData
[
16
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
16
])
>
this
.
state
.
maxValue
?
false
:
true
}
//
disabled={Number(tableMeta.rowData[16]) < this.state.minValue || Number(tableMeta.rowData[16]) > this.state.maxValue ? false : true}
defaultValue
=
{
tableMeta
.
rowData
[
19
]}
inputProps
=
{{
style
:
{
color
:
Number
(
tableMeta
.
rowData
[
16
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
16
])
>
this
.
state
.
maxValue
?
"#5198ea"
:
'
black
'
,
color
:
Number
(
tableMeta
.
rowData
[
16
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
16
])
>
this
.
state
.
maxValue
?
"#5198ea"
:
'
#5198ea
'
,
textAlign
:
'right'
}
}}
...
...
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