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
dfb866b2
Commit
dfb866b2
authored
Apr 16, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'riri' into 'master'
issue 73 See merge request
!1412
parents
fc56110e
422d492e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
159 additions
and
159 deletions
+159
-159
ProfitLossRO.js
src/container/RollingOutlook/ProfitLossRO.js
+159
-159
No files found.
src/container/RollingOutlook/ProfitLossRO.js
View file @
dfb866b2
...
@@ -1068,59 +1068,59 @@ export default class ProfitLossROO extends Component {
...
@@ -1068,59 +1068,59 @@ export default class ProfitLossROO extends Component {
value
=
{
Number
(
val
).
toFixed
(
1
)}
value
=
{
Number
(
val
).
toFixed
(
1
)}
/
>
/
>
:
:
tableMeta
.
rowData
[
0
]
===
2
?
//
tableMeta.rowData[0] === 2 ?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
//
<span style={{ fontSize: 12, textAlign: 'right' }}>
<
NumberFormat
//
<NumberFormat
thousandSeparator
=
{
true
}
//
thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
//
type="text"
placeholder
=
""
//
placeholder=""
disabled
=
{
true
}
//
disabled={true}
// value={Number(val).toFixed(1)}
//
// value={Number(val).toFixed(1)}
value
=
{
val
===
"0"
?
""
:
Number
(
handleValue
(
val
,
tableMeta
)).
toFixed
(
1
)}
//
value={val === "0" ? "" : Number(handleValue(val, tableMeta)).toFixed(1)}
/
>
//
/>
<
/span
>
//
</span>
:
//
:
tableMeta
.
rowData
[
0
]
===
3
?
//
tableMeta.rowData[0] === 3 ?
<
div
style
=
{{
flex
:
1
}}
>
//
<div style={{ flex: 1 }}>
<
FormControlLabel
//
<FormControlLabel
style
=
{{
margin
:
0
}}
//
style={{ margin: 0 }}
value
=
{
val
}
//
value={val}
control
=
{
//
control={
<
NumberFormat
//
<NumberFormat
thousandSeparator
=
{
true
}
//
thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
//
type="text"
placeholder
=
""
//
placeholder=""
// disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
//
// disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
disabled
=
{
true
}
//
disabled={true}
value
=
{
val
===
"0"
?
""
:
Number
(
val
).
toFixed
(
1
)}
//
value={val === "0" ? "" : Number(val).toFixed(1)}
onBlur
=
{(
event
)
=>
{
//
onBlur={(event) => {
handleChange
(
event
.
target
.
value
,
tableMeta
)
//
handleChange(event.target.value, tableMeta)
}}
//
}}
/
>
//
/>
}
//
}
/
>
//
/>
<
/div
>
//
</div>
:
//
:
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
//
tableMeta.rowData[0] === 5 || tableMeta.rowData[0] === 6 ?
<
div
style
=
{{
flex
:
1
}}
>
//
<div style={{ flex: 1 }}>
<
FormControlLabel
//
<FormControlLabel
style
=
{{
margin
:
0
}}
//
style={{ margin: 0 }}
value
=
{
val
}
//
value={val}
control
=
{
//
control={
<
NumberFormat
//
<NumberFormat
thousandSeparator
=
{
true
}
//
thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
//
type="text"
placeholder
=
""
//
placeholder=""
disabled
=
{
true
}
//
disabled={true}
value
=
{
val
===
"0"
?
""
:
Number
(
handleFormula
(
val
,
tableMeta
,
1
)).
toFixed
(
1
)}
//
value={val === "0" ? "" : Number(handleFormula(val, tableMeta, 1)).toFixed(1)}
/
>
//
/>
}
//
}
/
>
//
/>
<
/div
>
//
</div>
:
//
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -1166,59 +1166,59 @@ export default class ProfitLossROO extends Component {
...
@@ -1166,59 +1166,59 @@ export default class ProfitLossROO extends Component {
value
=
{
Number
(
val
).
toFixed
(
1
)}
value
=
{
Number
(
val
).
toFixed
(
1
)}
/
>
/
>
:
:
tableMeta
.
rowData
[
0
]
===
2
?
//
tableMeta.rowData[0] === 2 ?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
//
<span style={{ fontSize: 12, textAlign: 'right' }}>
<
NumberFormat
//
<NumberFormat
thousandSeparator
=
{
true
}
//
thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
//
type="text"
placeholder
=
""
//
placeholder=""
disabled
=
{
true
}
//
disabled={true}
// value={Number(val).toFixed(1)}
//
// value={Number(val).toFixed(1)}
value
=
{
val
===
"0"
?
""
:
Number
(
handleValue
(
val
,
tableMeta
)).
toFixed
(
1
)}
//
value={val === "0" ? "" : Number(handleValue(val, tableMeta)).toFixed(1)}
/
>
//
/>
<
/span
>
//
</span>
:
//
:
tableMeta
.
rowData
[
0
]
===
3
?
//
tableMeta.rowData[0] === 3 ?
<
div
style
=
{{
flex
:
1
}}
>
//
<div style={{ flex: 1 }}>
<
FormControlLabel
//
<FormControlLabel
style
=
{{
margin
:
0
}}
//
style={{ margin: 0 }}
value
=
{
val
}
//
value={val}
control
=
{
//
control={
<
NumberFormat
//
<NumberFormat
thousandSeparator
=
{
true
}
//
thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
//
type="text"
placeholder
=
""
//
placeholder=""
// disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
//
// disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
disabled
=
{
true
}
//
disabled={true}
value
=
{
val
===
"0"
?
""
:
Number
(
val
).
toFixed
(
1
)}
//
value={val === "0" ? "" : Number(val).toFixed(1)}
onBlur
=
{(
event
)
=>
{
//
onBlur={(event) => {
handleChange
(
event
.
target
.
value
,
tableMeta
)
//
handleChange(event.target.value, tableMeta)
}}
//
}}
/
>
//
/>
}
//
}
/
>
//
/>
<
/div
>
//
</div>
:
//
:
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
//
tableMeta.rowData[0] === 5 || tableMeta.rowData[0] === 6 ?
<
div
style
=
{{
flex
:
1
}}
>
//
<div style={{ flex: 1 }}>
<
FormControlLabel
//
<FormControlLabel
style
=
{{
margin
:
0
}}
//
style={{ margin: 0 }}
value
=
{
val
}
//
value={val}
control
=
{
//
control={
<
NumberFormat
//
<NumberFormat
thousandSeparator
=
{
true
}
//
thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
//
type="text"
placeholder
=
""
//
placeholder=""
disabled
=
{
true
}
//
disabled={true}
value
=
{
val
===
"0"
?
""
:
Number
(
handleFormula
(
val
,
tableMeta
,
1
)).
toFixed
(
1
)}
//
value={val === "0" ? "" : Number(handleFormula(val, tableMeta, 1)).toFixed(1)}
/
>
//
/>
}
//
}
/
>
//
/>
<
/div
>
//
</div>
:
//
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -1264,59 +1264,59 @@ export default class ProfitLossROO extends Component {
...
@@ -1264,59 +1264,59 @@ export default class ProfitLossROO extends Component {
value
=
{
Number
(
val
).
toFixed
(
1
)}
value
=
{
Number
(
val
).
toFixed
(
1
)}
/
>
/
>
:
:
tableMeta
.
rowData
[
0
]
===
2
?
//
tableMeta.rowData[0] === 2 ?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
//
<span style={{ fontSize: 12, textAlign: 'right' }}>
<
NumberFormat
//
<NumberFormat
thousandSeparator
=
{
true
}
//
thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
//
type="text"
placeholder
=
""
//
placeholder=""
disabled
=
{
true
}
//
disabled={true}
// value={Number(val).toFixed(1)}
//
// value={Number(val).toFixed(1)}
value
=
{
val
===
"0"
?
""
:
Number
(
handleValue
(
val
,
tableMeta
)).
toFixed
(
1
)}
//
value={val === "0" ? "" : Number(handleValue(val, tableMeta)).toFixed(1)}
/
>
//
/>
<
/span
>
//
</span>
:
//
:
tableMeta
.
rowData
[
0
]
===
3
?
//
tableMeta.rowData[0] === 3 ?
<
div
style
=
{{
flex
:
1
}}
>
//
<div style={{ flex: 1 }}>
<
FormControlLabel
//
<FormControlLabel
style
=
{{
margin
:
0
}}
//
style={{ margin: 0 }}
value
=
{
val
}
//
value={val}
control
=
{
//
control={
<
NumberFormat
//
<NumberFormat
thousandSeparator
=
{
true
}
//
thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
//
type="text"
placeholder
=
""
//
placeholder=""
// disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
//
// disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
disabled
=
{
true
}
//
disabled={true}
value
=
{
val
===
"0"
?
""
:
Number
(
val
).
toFixed
(
1
)}
//
value={val === "0" ? "" : Number(val).toFixed(1)}
onBlur
=
{(
event
)
=>
{
//
onBlur={(event) => {
handleChange
(
event
.
target
.
value
,
tableMeta
)
//
handleChange(event.target.value, tableMeta)
}}
//
}}
/
>
//
/>
}
//
}
/
>
//
/>
<
/div
>
//
</div>
:
//
:
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
//
tableMeta.rowData[0] === 5 || tableMeta.rowData[0] === 6 ?
<
div
style
=
{{
flex
:
1
}}
>
//
<div style={{ flex: 1 }}>
<
FormControlLabel
//
<FormControlLabel
style
=
{{
margin
:
0
}}
//
style={{ margin: 0 }}
value
=
{
val
}
//
value={val}
control
=
{
//
control={
<
NumberFormat
//
<NumberFormat
thousandSeparator
=
{
true
}
//
thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
//
type="text"
placeholder
=
""
//
placeholder=""
disabled
=
{
true
}
//
disabled={true}
value
=
{
val
===
"0"
?
""
:
Number
(
handleFormula
(
val
,
tableMeta
,
1
)).
toFixed
(
1
)}
//
value={val === "0" ? "" : Number(handleFormula(val, tableMeta, 1)).toFixed(1)}
/
>
//
/>
}
//
}
/
>
//
/>
<
/div
>
//
</div>
:
//
:
<
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