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
bf5634ca
Commit
bf5634ca
authored
Dec 31, 2020
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
65c630c6
eb90d638
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
204 additions
and
64 deletions
+204
-64
FixedAssetsMovementMR.js
src/container/MonthlyReport/FixedAssetsMovementMR.js
+112
-8
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+92
-56
No files found.
src/container/MonthlyReport/FixedAssetsMovementMR.js
View file @
bf5634ca
...
@@ -849,7 +849,20 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -849,7 +849,20 @@ export default class FixedAssetsMovementMR extends Component {
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
4
?
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
4
?
null
:
null
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
1
)
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
90
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
1
)}
/
>
}
/
>
:
:
tableMeta
.
rowData
[
0
]
===
3
?
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
...
@@ -923,7 +936,20 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -923,7 +936,20 @@ export default class FixedAssetsMovementMR extends Component {
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
4
?
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
4
?
null
:
null
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
tableMeta
.
rowData
[
9
]).
toFixed
(
1
)
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
90
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
9
]).
toFixed
(
1
)}
/
>
}
/
>
:
:
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
...
@@ -1024,7 +1050,20 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1024,7 +1050,20 @@ export default class FixedAssetsMovementMR extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
2
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
2
?
null
:
null
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
tableMeta
.
rowData
[
10
]).
toFixed
(
1
)
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
val
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
90
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
10
]).
toFixed
(
1
)}
/
>
}
/
>
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
...
@@ -1050,7 +1089,20 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1050,7 +1089,20 @@ export default class FixedAssetsMovementMR extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
null
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
tableMeta
.
rowData
[
11
]).
toFixed
(
1
)
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
val
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
90
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
11
]).
toFixed
(
1
)}
/
>
}
/
>
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
...
@@ -1081,7 +1133,20 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1081,7 +1133,20 @@ export default class FixedAssetsMovementMR extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
null
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
val
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
90
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)}
/
>
}
/
>
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
...
@@ -1107,7 +1172,20 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1107,7 +1172,20 @@ export default class FixedAssetsMovementMR extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
null
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
tableMeta
.
rowData
[
13
]).
toFixed
(
1
)
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
val
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
90
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
13
]).
toFixed
(
1
)}
/
>
}
/
>
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
...
@@ -1138,7 +1216,20 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1138,7 +1216,20 @@ export default class FixedAssetsMovementMR extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
null
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
tableMeta
.
rowData
[
14
]).
toFixed
(
1
)
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
val
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
90
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
14
]).
toFixed
(
1
)}
/
>
}
/
>
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
...
@@ -1164,7 +1255,20 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1164,7 +1255,20 @@ export default class FixedAssetsMovementMR extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
null
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
tableMeta
.
rowData
[
15
]).
toFixed
(
1
)
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
val
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
90
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
15
]).
toFixed
(
1
)}
/
>
}
/
>
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
...
...
src/container/MonthlyReport/TaxPlanningMR.js
View file @
bf5634ca
...
@@ -882,7 +882,22 @@ export default class TaxPlanningMR extends Component {
...
@@ -882,7 +882,22 @@ export default class TaxPlanningMR extends Component {
{
tableMeta
.
rowData
[
1
]
===
4
||
tableMeta
.
rowData
[
1
]
===
1
?
{
tableMeta
.
rowData
[
1
]
===
4
||
tableMeta
.
rowData
[
1
]
===
1
?
null
:
null
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
value
.
tbc
).
toFixed
(
1
)
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
.
tbc
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbc
).
toFixed
(
2
)
:
Number
(
value
.
tbc
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
:
tableMeta
.
rowData
[
1
]
===
2
?
tableMeta
.
rowData
[
1
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
...
@@ -947,7 +962,22 @@ export default class TaxPlanningMR extends Component {
...
@@ -947,7 +962,22 @@ export default class TaxPlanningMR extends Component {
null
null
:
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
value
.
fcp
).
toFixed
(
1
)
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
.
fcp
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
:
tableMeta
.
rowData
[
2
]
===
2
?
tableMeta
.
rowData
[
2
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
...
@@ -1010,7 +1040,22 @@ export default class TaxPlanningMR extends Component {
...
@@ -1010,7 +1040,22 @@ export default class TaxPlanningMR extends Component {
{
tableMeta
.
rowData
[
3
]
===
4
||
tableMeta
.
rowData
[
3
]
===
1
?
{
tableMeta
.
rowData
[
3
]
===
4
||
tableMeta
.
rowData
[
3
]
===
1
?
null
:
null
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
value
.
tbf
).
toFixed
(
1
)
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
.
tbf
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
:
tableMeta
.
rowData
[
3
]
===
2
?
tableMeta
.
rowData
[
3
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
...
@@ -1140,7 +1185,22 @@ export default class TaxPlanningMR extends Component {
...
@@ -1140,7 +1185,22 @@ export default class TaxPlanningMR extends Component {
null
null
:
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
value
).
toFixed
(
1
)
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
).
toFixed
(
2
)
:
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
:
tableMeta
.
rowData
[
3
]
===
2
?
tableMeta
.
rowData
[
3
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
...
@@ -1233,63 +1293,39 @@ export default class TaxPlanningMR extends Component {
...
@@ -1233,63 +1293,39 @@ export default class TaxPlanningMR extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
return
(
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
3
]
===
4
||
tableMeta
.
rowData
[
3
]
===
1
?
{
tableMeta
.
rowData
[
3
]
===
4
||
tableMeta
.
rowData
[
3
]
===
1
||
tableMeta
.
rowData
[
3
]
===
7
?
null
null
:
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
Number
(
value
).
toFixed
(
1
)
// Number(value).toFixed(1)
:
<
div
style
=
{{
flex
:
1
}}
>
tableMeta
.
rowData
[
3
]
===
2
?
<
FormControlLabel
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
style
=
{{
margin
:
0
}}
value
=
{
value
}
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
=
{
Number
(
handleParent
(
tableMeta
,
4
)
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
).
toFixed
(
2
)
:
Number
(
value
).
toFixed
(
1
)}
/
>
/
>
<
/span
>
}
/
>
<
/div
>
:
:
tableMeta
.
rowData
[
3
]
===
7
?
tableMeta
.
rowData
[
3
]
===
2
?
// (Number(handleValueFormula(value, tableMeta, 3)).toFixed(1) >= Number(this.state.minValue) && Number(handleValueFormula(value, tableMeta, 3)).toFixed(1) <= Number(this.state.maxValue)) ?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
(
Number
(
value
).
toFixed
(
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
Number
(
value
).
toFixed
(
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
color
:
'black'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
// value={Number(handleValueFormula(value, tableMeta, 3)).toFixed(1)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/>
:
<
LightTooltip
title
=
{
this
.
state
.
minValue
===
null
?
`Value Should be
${
tableMeta
.
rowData
[
14
].
tbf
}
`
:
`Value Should be (
${
this
.
state
.
minValue
}
) up to (
${
this
.
state
.
maxValue
}
)`
}
arrow
>
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
color
:
'red'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
// value={Number(handleValueFormula(value, tableMeta, 4)).toFixed(1)}
value
=
{
Number
(
handleParent
(
tableMeta
,
4
)).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
/
>
<
/LightTooltip
>
<
/span
>
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
...
...
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