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
46b452fa
Commit
46b452fa
authored
Nov 12, 2020
by
faisalhamdi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update FR
parent
bca3ab27
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
54 deletions
+17
-54
SubHolding.js
src/container/Laporan/SubHolding.js
+2
-2
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+15
-52
No files found.
src/container/Laporan/SubHolding.js
View file @
46b452fa
...
...
@@ -504,6 +504,7 @@ export default class SubHolding extends Component {
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
uom
,
item
.
ratio
.
total_actual_before
===
null
?
"0.0"
:
item
.
ratio
.
total_actual_before
===
""
?
"0.0"
:
item
.
ratio
.
total_actual_before
,
Number
(
item
.
ratio
.
january
).
toFixed
(
1
),
Number
(
item
.
ratio
.
february
).
toFixed
(
1
),
...
...
@@ -517,7 +518,6 @@ export default class SubHolding extends Component {
Number
(
item
.
ratio
.
october
).
toFixed
(
1
),
Number
(
item
.
ratio
.
november
).
toFixed
(
1
),
Number
(
item
.
ratio
.
december
).
toFixed
(
1
),
Number
(
item
.
ratio
.
total_current_year
).
toFixed
(
1
),
Number
(
item
.
ratio
.
total_next_year
).
toFixed
(
1
),
Number
(
item
.
ratio
.
total_more_year
).
toFixed
(
1
),
item
.
order
,
...
...
@@ -541,6 +541,7 @@ export default class SubHolding extends Component {
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
oum
,
item
.
ratio
.
total_actual_before
===
null
?
"0.0"
:
item
.
ratio
.
total_actual_before
===
""
?
"0.0"
:
item
.
ratio
.
total_actual_before
,
Number
(
item
.
ratio
.
january
).
toFixed
(
1
),
Number
(
item
.
ratio
.
february
).
toFixed
(
1
),
...
...
@@ -554,7 +555,6 @@ export default class SubHolding extends Component {
Number
(
item
.
ratio
.
october
).
toFixed
(
1
),
Number
(
item
.
ratio
.
november
).
toFixed
(
1
),
Number
(
item
.
ratio
.
december
).
toFixed
(
1
),
Number
(
item
.
ratio
.
total_current_year
).
toFixed
(
1
),
Number
(
item
.
ratio
.
total_next_year
).
toFixed
(
1
),
Number
(
item
.
ratio
.
total_more_year
).
toFixed
(
1
),
item
.
order
,
...
...
src/container/Laporan/TableSubHolding.js
View file @
46b452fa
...
...
@@ -2928,7 +2928,6 @@ export default class TableSubHolding extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
width
:
300
}}
>
{
console
.
log
(
tableMeta
)
}
{
tableMeta
.
rowData
[
4
]
==
0
?
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
).
toUpperCase
()}
<
/span
>
...
...
@@ -2955,45 +2954,9 @@ export default class TableSubHolding extends Component {
<
div
>
{
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
4
?
null
:
<
FormControlLabel
style
=
{{
margin
:
0
}}
// value={value}
control
=
{
// !handleAction(tableMeta.rowData[2], tableMeta.rowData[0]) ?
// <Input
// disableUnderline={true}
// style={{ fontSize: 12, textAlign: 'center', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent', marginTop: -10 }}
// type="text"
// placeholder=""
// defaultValue={value}
// color={"#5198ea"}
// disabled={true}
// onBlur={(event) => {
// // // console.log(event.target.value)
// // updateValue(event.target.value)
// handleChangeText(event.target.value, tableMeta)
// // // console.log(dataTable2)
// }}
// /> :
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
Input
disableUnderline
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
5
}}
type
=
"text"
placeholder
=
""
defaultValue
=
{
value
}
color
=
{
"#5198ea"
}
// disabled={this.props.isApprover ? true : ((this.props.lastStatus == 'SUBMIT' || this.props.lastStatus == 'REVISION') && this.props.prevRevision === false ? false : !handleAction(tableMeta.rowData[2]))}
onBlur
=
{(
event
)
=>
{
// // console.log(event.target.value)
// updateValue(event.target.value)
// handleChangeText(event.target.value, tableMeta)
// // console.log(dataTable2)
}}
/
>
<
/MuiThemeProvider
>
}
/
>
<
div
>
<
span
style
=
{{
fontSize
:
12
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
value
}
<
/span
>
<
/div
>
}
<
/div
>
)
...
...
@@ -3078,7 +3041,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
7
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3101,7 +3064,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
9
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3124,7 +3087,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
9
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
10
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3147,7 +3110,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
1
0
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
1
1
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3172,7 +3135,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
1
1
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
1
2
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3195,7 +3158,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
1
2
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
1
3
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3218,7 +3181,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
1
3
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
1
4
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3241,7 +3204,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
1
4
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
1
5
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3266,7 +3229,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
1
5
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
1
6
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3289,7 +3252,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
1
6
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
1
7
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3312,7 +3275,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
1
7
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
1
8
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
@@ -3335,7 +3298,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
1
8
]).
toFixed
(
2
)}
value
=
{
Number
(
tableMeta
.
rowData
[
1
9
]).
toFixed
(
2
)}
/
>
}
/
>
...
...
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