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
482c4b0d
Commit
482c4b0d
authored
Mar 16, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
olpa tp
parent
99e8ca73
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
58 deletions
+47
-58
OutlookPA.js
src/container/OutlookPA.js
+2
-2
TaxPlanningOLPA.js
src/container/OutlookPA/TaxPlanningOLPA.js
+45
-56
No files found.
src/container/OutlookPA.js
View file @
482c4b0d
...
@@ -310,7 +310,7 @@ export default class OutlookPA extends Component {
...
@@ -310,7 +310,7 @@ export default class OutlookPA extends Component {
let
data
=
[]
let
data
=
[]
response
.
data
.
data
.
map
((
item
)
=>
{
response
.
data
.
data
.
map
((
item
)
=>
{
if
(
this
.
state
.
isApprover
)
{
if
(
this
.
state
.
isApprover
)
{
if
(
item
>=
2000
&&
item
<=
(
Number
(
currentYear
)
+
1
))
{
if
(
item
>=
2000
&&
item
<=
(
Number
(
currentYear
)
+
1
0
))
{
data
.
push
(
item
)
data
.
push
(
item
)
}
}
}
else
{
}
else
{
...
@@ -328,7 +328,7 @@ export default class OutlookPA extends Component {
...
@@ -328,7 +328,7 @@ export default class OutlookPA extends Component {
options
:
periodeData
,
options
:
periodeData
,
getOptionLabel
:
(
option
)
=>
option
.
periode
,
getOptionLabel
:
(
option
)
=>
option
.
periode
,
};
};
let
periode
=
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
)
+
1
)
:
this
.
state
.
lastPeriod
)
let
periode
=
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
)
+
1
0
)
:
this
.
state
.
lastPeriod
)
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
===
periode
)
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
===
periode
)
// console.log(data)
// console.log(data)
// console.log(this.state.lastPeriod)
// console.log(this.state.lastPeriod)
...
...
src/container/OutlookPA/TaxPlanningOLPA.js
View file @
482c4b0d
...
@@ -90,11 +90,12 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -90,11 +90,12 @@ export default class TaxPlanningOLPA extends Component {
"outlook_pa_id"
:
this
.
props
.
outlook_pa_id
,
"outlook_pa_id"
:
this
.
props
.
outlook_pa_id
,
"report_id"
:
this
.
props
.
report_id
,
"report_id"
:
this
.
props
.
report_id
,
"revision"
:
this
.
props
.
revision
,
"revision"
:
this
.
props
.
revision
,
"periode"
:
this
.
props
.
periode
,
"periode"
:
"2021"
,
"company_id"
:
this
.
props
.
company
.
company_id
"company_id"
:
this
.
props
.
company
.
company_id
}
}
api
.
create
().
getDetailReportOLPA
(
payload
).
then
(
response
=>
{
api
.
create
().
getDetailReportOLPA
(
payload
).
then
(
response
=>
{
// console.log(payload);
console
.
log
(
payload
);
console
.
log
(
response
);
let
dataTable
=
[]
let
dataTable
=
[]
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
==
'success'
)
{
if
(
response
.
data
.
status
==
'success'
)
{
...
@@ -127,8 +128,6 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -127,8 +128,6 @@ export default class TaxPlanningOLPA extends Component {
{
tbc
:
item
.
tax_planning
.
november
.
tbc
,
fcp
:
item
.
tax_planning
.
november
.
fcp
,
tbf
:
item
.
tax_planning
.
november
.
tbf
},
{
tbc
:
item
.
tax_planning
.
november
.
tbc
,
fcp
:
item
.
tax_planning
.
november
.
fcp
,
tbf
:
item
.
tax_planning
.
november
.
tbf
},
{
tbc
:
item
.
tax_planning
.
december
.
tbc
,
fcp
:
item
.
tax_planning
.
december
.
fcp
,
tbf
:
item
.
tax_planning
.
december
.
tbf
},
{
tbc
:
item
.
tax_planning
.
december
.
tbc
,
fcp
:
item
.
tax_planning
.
december
.
fcp
,
tbf
:
item
.
tax_planning
.
december
.
tbf
},
item
.
tax_planning
.
total_current_year
,
item
.
tax_planning
.
total_current_year
,
{
tbc
:
item
.
tax_planning
.
total_next_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_next_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_next_year
.
tbf
},
{
tbc
:
item
.
tax_planning
.
total_more_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_more_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_more_year
.
tbf
},
item
.
order
,
item
.
order
,
{
tbc
:
item
.
condition_it_should_be
,
fcp
:
item
.
condition_it_should_be
,
tbf
:
item
.
condition_it_should_be
},
{
tbc
:
item
.
condition_it_should_be
,
fcp
:
item
.
condition_it_should_be
,
tbf
:
item
.
condition_it_should_be
},
{
tbc
:
item
.
condition_if_wrong
,
fcp
:
item
.
condition_if_wrong
,
tbf
:
item
.
condition_if_wrong
},
{
tbc
:
item
.
condition_if_wrong
,
fcp
:
item
.
condition_if_wrong
,
tbf
:
item
.
condition_if_wrong
},
...
@@ -168,8 +167,6 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -168,8 +167,6 @@ export default class TaxPlanningOLPA extends Component {
{
tbc
:
item
.
tax_planning
.
november
.
tbc
,
fcp
:
item
.
tax_planning
.
november
.
fcp
,
tbf
:
item
.
tax_planning
.
november
.
tbf
},
{
tbc
:
item
.
tax_planning
.
november
.
tbc
,
fcp
:
item
.
tax_planning
.
november
.
fcp
,
tbf
:
item
.
tax_planning
.
november
.
tbf
},
{
tbc
:
item
.
tax_planning
.
december
.
tbc
,
fcp
:
item
.
tax_planning
.
december
.
fcp
,
tbf
:
item
.
tax_planning
.
december
.
tbf
},
{
tbc
:
item
.
tax_planning
.
december
.
tbc
,
fcp
:
item
.
tax_planning
.
december
.
fcp
,
tbf
:
item
.
tax_planning
.
december
.
tbf
},
item
.
tax_planning
.
total_current_year
,
item
.
tax_planning
.
total_current_year
,
{
tbc
:
item
.
tax_planning
.
total_next_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_next_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_next_year
.
tbf
},
{
tbc
:
item
.
tax_planning
.
total_more_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_more_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_more_year
.
tbf
},
item
.
order
,
item
.
order
,
{
tbc
:
item
.
condition_it_should_be
,
fcp
:
item
.
condition_it_should_be
,
tbf
:
item
.
condition_it_should_be
},
{
tbc
:
item
.
condition_it_should_be
,
fcp
:
item
.
condition_it_should_be
,
tbf
:
item
.
condition_it_should_be
},
{
tbc
:
item
.
condition_if_wrong
,
fcp
:
item
.
condition_if_wrong
,
tbf
:
item
.
condition_if_wrong
},
{
tbc
:
item
.
condition_if_wrong
,
fcp
:
item
.
condition_if_wrong
,
tbf
:
item
.
condition_if_wrong
},
...
@@ -196,6 +193,7 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -196,6 +193,7 @@ export default class TaxPlanningOLPA extends Component {
}
else
{
}
else
{
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
})
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
})
}
}
console
.
log
(
dataTable
)
})
})
}
}
...
@@ -237,53 +235,53 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -237,53 +235,53 @@ export default class TaxPlanningOLPA extends Component {
data
.
push
({
data
.
push
({
item_report_id
:
i
[
4
],
item_report_id
:
i
[
4
],
january
:
{
january
:
{
tbc
:
String
(
Number
(
i
[
9
].
tbc
).
toFixed
(
1
)),
//
tbc: String(Number(i[9].tbc).toFixed(1)),
fcp
:
String
(
Number
(
i
[
9
].
fcp
).
toFixed
(
1
)),
//
fcp: String(Number(i[9].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
9
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
9
].
tbf
).
toFixed
(
1
))
},
},
february
:
{
february
:
{
tbc
:
String
(
Number
(
i
[
10
].
tbc
).
toFixed
(
1
)),
//
tbc: String(Number(i[10].tbc).toFixed(1)),
fcp
:
String
(
Number
(
i
[
10
].
fcp
).
toFixed
(
1
)),
//
fcp: String(Number(i[10].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
10
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
10
].
tbf
).
toFixed
(
1
))
},
},
march
:
{
march
:
{
tbc
:
String
(
Number
(
i
[
11
].
tbc
).
toFixed
(
1
)),
//
tbc: String(Number(i[11].tbc).toFixed(1)),
fcp
:
String
(
Number
(
i
[
11
].
fcp
).
toFixed
(
1
)),
//
fcp: String(Number(i[11].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
11
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
11
].
tbf
).
toFixed
(
1
))
},
},
april
:
{
april
:
{
tbc
:
String
(
Number
(
i
[
12
].
tbc
).
toFixed
(
1
)),
//
tbc: String(Number(i[12].tbc).toFixed(1)),
fcp
:
String
(
Number
(
i
[
12
].
fcp
).
toFixed
(
1
)),
//
fcp: String(Number(i[12].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
12
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
12
].
tbf
).
toFixed
(
1
))
},
},
may
:
{
may
:
{
tbc
:
String
(
Number
(
i
[
13
].
tbc
).
toFixed
(
1
)),
//
tbc: String(Number(i[13].tbc).toFixed(1)),
fcp
:
String
(
Number
(
i
[
13
].
fcp
).
toFixed
(
1
)),
//
fcp: String(Number(i[13].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
13
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
13
].
tbf
).
toFixed
(
1
))
},
},
june
:
{
june
:
{
tbc
:
String
(
Number
(
i
[
14
].
tbc
).
toFixed
(
1
)),
//
tbc: String(Number(i[14].tbc).toFixed(1)),
fcp
:
String
(
Number
(
i
[
14
].
fcp
).
toFixed
(
1
)),
//
fcp: String(Number(i[14].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
14
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
14
].
tbf
).
toFixed
(
1
))
},
},
july
:
{
july
:
{
tbc
:
String
(
Number
(
i
[
15
].
tbc
).
toFixed
(
1
)),
//
tbc: String(Number(i[15].tbc).toFixed(1)),
fcp
:
String
(
Number
(
i
[
15
].
fcp
).
toFixed
(
1
)),
//
fcp: String(Number(i[15].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
15
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
15
].
tbf
).
toFixed
(
1
))
},
},
august
:
{
august
:
{
tbc
:
String
(
Number
(
i
[
16
].
tbc
).
toFixed
(
1
)),
//
tbc: String(Number(i[16].tbc).toFixed(1)),
fcp
:
String
(
Number
(
i
[
16
].
fcp
).
toFixed
(
1
)),
//
fcp: String(Number(i[16].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
16
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
16
].
tbf
).
toFixed
(
1
))
},
},
september
:
{
september
:
{
tbc
:
String
(
Number
(
i
[
17
].
tbc
).
toFixed
(
1
)),
//
tbc: String(Number(i[17].tbc).toFixed(1)),
fcp
:
String
(
Number
(
i
[
17
].
fcp
).
toFixed
(
1
)),
//
fcp: String(Number(i[17].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
17
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
17
].
tbf
).
toFixed
(
1
))
},
},
october
:
{
october
:
{
tbc
:
String
(
Number
(
i
[
18
].
tbc
).
toFixed
(
1
)),
//
tbc: String(Number(i[18].tbc).toFixed(1)),
fcp
:
String
(
Number
(
i
[
18
].
fcp
).
toFixed
(
1
)),
//
fcp: String(Number(i[18].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
18
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
18
].
tbf
).
toFixed
(
1
))
},
},
november
:
{
november
:
{
...
@@ -297,16 +295,6 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -297,16 +295,6 @@ export default class TaxPlanningOLPA extends Component {
tbf
:
String
(
Number
(
i
[
20
].
tbf
).
toFixed
(
1
))
tbf
:
String
(
Number
(
i
[
20
].
tbf
).
toFixed
(
1
))
},
},
total_current_year
:
String
(
Number
(
i
[
21
]).
toFixed
(
1
)),
total_current_year
:
String
(
Number
(
i
[
21
]).
toFixed
(
1
)),
total_next_year
:
{
tbc
:
String
(
Number
(
i
[
22
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
22
].
fcp
).
toFixed
(
1
)),
tbf
:
String
(
Number
(
i
[
22
].
tbf
).
toFixed
(
1
))
},
total_more_year
:
{
tbc
:
String
(
Number
(
i
[
23
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
23
].
fcp
).
toFixed
(
1
)),
tbf
:
String
(
Number
(
i
[
23
].
tbf
).
toFixed
(
1
))
}
})
})
})
})
let
payload
=
{
let
payload
=
{
...
@@ -317,6 +305,7 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -317,6 +305,7 @@ export default class TaxPlanningOLPA extends Component {
"status"
:
type
,
"status"
:
type
,
"tax_planning"
:
data
"tax_planning"
:
data
}
}
console
.
log
(
payload
);
// console.log(JSON.stringify(payload));
// console.log(JSON.stringify(payload));
// this.setState({ loading: false })
// this.setState({ loading: false })
this
.
props
.
saveToOLPA
(
payload
)
this
.
props
.
saveToOLPA
(
payload
)
...
@@ -1335,10 +1324,10 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -1335,10 +1324,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
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
=
"input"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
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
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -1472,10 +1461,10 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -1472,10 +1461,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
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
=
"input"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
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
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -1609,10 +1598,10 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -1609,10 +1598,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
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
=
"input"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
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
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -1746,10 +1735,10 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -1746,10 +1735,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
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
=
"input"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
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
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -1883,10 +1872,10 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -1883,10 +1872,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
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
=
"input"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
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
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -2020,10 +2009,10 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -2020,10 +2009,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
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
=
"input"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
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
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -2157,10 +2146,10 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -2157,10 +2146,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
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
=
"input"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
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
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -2294,10 +2283,10 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -2294,10 +2283,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
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
=
"input"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
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
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -2431,10 +2420,10 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -2431,10 +2420,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
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
=
"input"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
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
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -2568,10 +2557,10 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -2568,10 +2557,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
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
=
"input"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
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
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
...
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