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
20de32fb
Commit
20de32fb
authored
Nov 19, 2020
by
r.kurnia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input tpmr
parent
7dcb1ad9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+27
-4
No files found.
src/container/MonthlyReport/TaxPlanningMR.js
View file @
20de32fb
...
@@ -977,6 +977,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -977,6 +977,7 @@ export default class TaxPlanningMR extends Component {
}
}
const
handleChange
=
(
value
,
tableMeta
,
indexChilds
)
=>
{
const
handleChange
=
(
value
,
tableMeta
,
indexChilds
)
=>
{
console
.
log
(
dataTable2
)
let
val
=
String
(
value
).
split
(
","
).
join
(
""
)
let
val
=
String
(
value
).
split
(
","
).
join
(
""
)
// let data = this.state.dataTable2
// let data = this.state.dataTable2
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
4
]
===
dataTable2
[
tableMeta
.
rowIndex
][
5
])
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
4
]
===
dataTable2
[
tableMeta
.
rowIndex
][
5
])
...
@@ -1246,7 +1247,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -1246,7 +1247,7 @@ export default class TaxPlanningMR extends Component {
<
/th
>
<
/th
>
),
),
setCellProps
:
()
=>
({
style2
}),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
val
,
tableMeta
,
updateValue
)
=>
{
customBodyRender
:
(
val
ue
,
tableMeta
,
updateValue
)
=>
{
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
<
div
className
=
"grid grid-3x content-center"
>
...
@@ -1254,7 +1255,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -1254,7 +1255,7 @@ export default class TaxPlanningMR extends Component {
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
null
:
null
:
val
.
tbc
val
ue
.
tbc
}
}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -1262,7 +1263,29 @@ export default class TaxPlanningMR extends Component {
...
@@ -1262,7 +1263,29 @@ export default class TaxPlanningMR extends Component {
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
null
:
null
:
val
.
fcp
tableMeta
.
rowData
[
0
]
===
2
?
null
:
tableMeta
.
rowData
[
0
]
===
1
?
null
:
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
.
fcp
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
value
=
{
String
(
tableMeta
.
rowData
[
5
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
// console.log(dataTable2)
}}
/
>
}
/
>
<
/div
>
}
}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -1270,7 +1293,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -1270,7 +1293,7 @@ export default class TaxPlanningMR extends Component {
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
?
null
:
null
:
val
.
tbf
val
ue
.
tbf
}
}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
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