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
a02ecab2
Commit
a02ecab2
authored
Aug 22, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
542416fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
659 additions
and
659 deletions
+659
-659
FixedAssetsMovement.js
src/container/BudgetTahunan/FixedAssetsMovement.js
+42
-49
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+604
-600
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+13
-10
No files found.
src/container/BudgetTahunan/FixedAssetsMovement.js
View file @
a02ecab2
...
...
@@ -167,46 +167,44 @@ export default class FixedAssetsMovement extends Component {
res
.
map
((
item
,
index
)
=>
{
dataTable
.
push
([
item
.
type_report_id
,
item
.
id
,
item
.
parent
,
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
fixed_asset_movement
.
total_actual_before
===
null
?
"0"
:
item
.
fixed_asset_movement
.
total_actual_before
===
""
?
"0"
:
item
.
fixed_asset_movement
.
total_actual_before
,
// for simulasi
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
january
,
formula
:
item
.
fixed_asset_movement
.
january_formula
}
:
Number
(
item
.
fixed_asset_movement
.
january
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
february
,
formula
:
item
.
fixed_asset_movement
.
february_formula
}
:
Number
(
item
.
fixed_asset_movement
.
february
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
january
,
formula
:
item
.
fixed_asset_movement
.
january_formula
}
:
Number
(
item
.
fixed_asset_movement
.
january
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
february
,
formula
:
item
.
fixed_asset_movement
.
february_formula
}
:
Number
(
item
.
fixed_asset_movement
.
february
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
march
,
formula
:
item
.
fixed_asset_movement
.
march_formula
}
:
Number
(
item
.
fixed_asset_movement
.
march
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
april
,
formula
:
item
.
fixed_asset_movement
.
april_formula
}
:
Number
(
item
.
fixed_asset_movement
.
april
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
may
,
formula
:
item
.
fixed_asset_movement
.
may_formula
}
:
Number
(
item
.
fixed_asset_movement
.
may
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
june
,
formula
:
item
.
fixed_asset_movement
.
june_formula
}
:
Number
(
item
.
fixed_asset_movement
.
june
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
july
,
formula
:
item
.
fixed_asset_movement
.
july_formula
}
:
Number
(
item
.
fixed_asset_movement
.
july
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
august
,
formula
:
item
.
fixed_asset_movement
.
august_formula
}
:
Number
(
item
.
fixed_asset_movement
.
august
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
september
,
formula
:
item
.
fixed_asset_movement
.
september_formula
}
:
Number
(
item
.
fixed_asset_movement
.
september
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
october
,
formula
:
item
.
fixed_asset_movement
.
october_formula
}
:
Number
(
item
.
fixed_asset_movement
.
october
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
november
,
formula
:
item
.
fixed_asset_movement
.
november_formula
}
:
Number
(
item
.
fixed_asset_movement
.
november
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
december
,
formula
:
item
.
fixed_asset_movement
.
december_formula
}
:
Number
(
item
.
fixed_asset_movement
.
december
).
toFixed
(
1
),
// asli
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.january).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.january, formula: item.fixed_asset_movement.january_formula } : Number(item.fixed_asset_movement.january).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.february).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.february, formula: item.fixed_asset_movement.february_formula } : Number(item.fixed_asset_movement.february).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.march).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.march, formula: item.fixed_asset_movement.march_formula } : Number(item.fixed_asset_movement.march).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.april).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.april, formula: item.fixed_asset_movement.april_formula } : Number(item.fixed_asset_movement.april).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.may).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.may, formula: item.fixed_asset_movement.may_formula } : Number(item.fixed_asset_movement.may).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.june).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.june, formula: item.fixed_asset_movement.june_formula } : Number(item.fixed_asset_movement.june).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.july).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.july, formula: item.fixed_asset_movement.july_formula } : Number(item.fixed_asset_movement.july).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.august).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.august, formula: item.fixed_asset_movement.august_formula } : Number(item.fixed_asset_movement.august).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.september).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.september, formula: item.fixed_asset_movement.september_formula } : Number(item.fixed_asset_movement.september).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.october).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.october, formula: item.fixed_asset_movement.october_formula } : Number(item.fixed_asset_movement.october).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.november).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.november, formula: item.fixed_asset_movement.november_formula } : Number(item.fixed_asset_movement.november).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.december).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.december, formula: item.fixed_asset_movement.december_formula } : Number(item.fixed_asset_movement.december).toFixed(1),
Number
(
item
.
fixed_asset_movement
.
total_current_year
).
toFixed
(
1
),
Number
(
item
.
fixed_asset_movement
.
total_next_year
).
toFixed
(
1
),
Number
(
item
.
fixed_asset_movement
.
total_more_year
).
toFixed
(
1
),
item
.
order
,
item
.
fixed_asset_movement
.
forecast_formula
,
item
.
fixed_asset_movement
.
before_formula
item
.
id
,
item
.
parent
,
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
fixed_asset_movement
.
total_actual_before
===
null
?
"0"
:
item
.
fixed_asset_movement
.
total_actual_before
===
""
?
"0"
:
item
.
fixed_asset_movement
.
total_actual_before
,
//for simulasi
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
january
,
formula
:
item
.
fixed_asset_movement
.
january_formula
}
:
Number
(
item
.
fixed_asset_movement
.
january
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
february
,
formula
:
item
.
fixed_asset_movement
.
february_formula
}
:
Number
(
item
.
fixed_asset_movement
.
february
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
march
,
formula
:
item
.
fixed_asset_movement
.
march_formula
}
:
Number
(
item
.
fixed_asset_movement
.
march
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
april
,
formula
:
item
.
fixed_asset_movement
.
april_formula
}
:
Number
(
item
.
fixed_asset_movement
.
april
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
may
,
formula
:
item
.
fixed_asset_movement
.
may_formula
}
:
Number
(
item
.
fixed_asset_movement
.
may
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
june
,
formula
:
item
.
fixed_asset_movement
.
june_formula
}
:
Number
(
item
.
fixed_asset_movement
.
june
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
july
,
formula
:
item
.
fixed_asset_movement
.
july_formula
}
:
Number
(
item
.
fixed_asset_movement
.
july
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
august
,
formula
:
item
.
fixed_asset_movement
.
august_formula
}
:
Number
(
item
.
fixed_asset_movement
.
august
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
september
,
formula
:
item
.
fixed_asset_movement
.
september_formula
}
:
Number
(
item
.
fixed_asset_movement
.
september
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
october
,
formula
:
item
.
fixed_asset_movement
.
october_formula
}
:
Number
(
item
.
fixed_asset_movement
.
october
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
november
,
formula
:
item
.
fixed_asset_movement
.
november_formula
}
:
Number
(
item
.
fixed_asset_movement
.
november
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
fixed_asset_movement
.
december
,
formula
:
item
.
fixed_asset_movement
.
december_formula
}
:
Number
(
item
.
fixed_asset_movement
.
december
).
toFixed
(
1
),
// asli
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.january).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.january, formula: item.fixed_asset_movement.january_formula } : Number(item.fixed_asset_movement.january).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.february).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.february, formula: item.fixed_asset_movement.february_formula } : Number(item.fixed_asset_movement.february).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.march).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.march, formula: item.fixed_asset_movement.march_formula } : Number(item.fixed_asset_movement.march).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.april).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.april, formula: item.fixed_asset_movement.april_formula } : Number(item.fixed_asset_movement.april).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.may).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.may, formula: item.fixed_asset_movement.may_formula } : Number(item.fixed_asset_movement.may).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.june).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.june, formula: item.fixed_asset_movement.june_formula } : Number(item.fixed_asset_movement.june).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.july).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.july, formula: item.fixed_asset_movement.july_formula } : Number(item.fixed_asset_movement.july).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.august).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.august, formula: item.fixed_asset_movement.august_formula } : Number(item.fixed_asset_movement.august).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.september).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.september, formula: item.fixed_asset_movement.september_formula } : Number(item.fixed_asset_movement.september).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.october).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.october, formula: item.fixed_asset_movement.october_formula } : Number(item.fixed_asset_movement.october).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.november).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.november, formula: item.fixed_asset_movement.november_formula } : Number(item.fixed_asset_movement.november).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.fixed_asset_movement.december).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.fixed_asset_movement.december, formula: item.fixed_asset_movement.december_formula } : Number(item.fixed_asset_movement.december).toFixed(1),
Number
(
item
.
fixed_asset_movement
.
total_current_year
).
toFixed
(
1
),
Number
(
item
.
fixed_asset_movement
.
total_next_year
).
toFixed
(
1
),
Number
(
item
.
fixed_asset_movement
.
total_more_year
).
toFixed
(
1
),
item
.
order
,
item
.
fixed_asset_movement
.
forecast_formula
,
item
.
fixed_asset_movement
.
before_formula
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
...
...
@@ -216,7 +214,7 @@ export default class FixedAssetsMovement extends Component {
}
}
})
console
.
log
(
dataTable
)
//
console.log(dataTable)
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
})
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
...
...
@@ -917,15 +915,9 @@ export default class FixedAssetsMovement extends Component {
total
=
tableMeta
.
columnIndex
==
21
?
dataTable2
[
indexID
][
20
]
:
dataTable2
[
indexID
][
18
].
value
}
}
else
{
// simulasi
let
indexID
=
dataTable2
[
tableMeta
.
rowIndex
][
25
].
findIndex
((
val
)
=>
val
.
periode
==
periode
)
// Asli
// let indexID = dataTable2[tableMeta.rowIndex][23].findIndex((val) => val.periode == periode)
let
indexID
=
dataTable2
[
tableMeta
.
rowIndex
][
23
].
findIndex
((
val
)
=>
val
.
periode
==
periode
)
if
(
indexID
!==
-
1
)
{
// simulasi
total
=
dataTable2
[
tableMeta
.
rowIndex
][
25
][
indexID
].
value
// Asli
// total = dataTable2[tableMeta.rowIndex][23][indexID].value
total
=
dataTable2
[
tableMeta
.
rowIndex
][
23
][
indexID
].
value
}
}
}
else
{
...
...
@@ -2606,6 +2598,7 @@ export default class FixedAssetsMovement extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(tableMeta);
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
a02ecab2
...
...
@@ -120,6 +120,7 @@ export default class ProfitLoss extends Component {
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
api
.
create
().
getDetailReportMB
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
let
dataTable
=
[]
this
.
setState
({
visibleProfitLoss
:
true
})
if
(
response
.
data
)
{
...
...
@@ -371,6 +372,7 @@ export default class ProfitLoss extends Component {
}
else
{
let
isi
=
resp
.
rows
.
slice
(
3
)
console
.
log
(
isi
);
// console.log(resp.rows[2]);
let
payload
=
[]
let
reg
=
/^
[
-+
]?(?:[
0-9
]
+,
)
*
[
0-9
]
+
(?:\.[
0-9
]
+
)?
$/
;
...
...
@@ -452,6 +454,7 @@ export default class ProfitLoss extends Component {
item
.
error
]
})
console
.
log
(
dataTable
);
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
,
editable
:
true
,
fromUpload
:
true
},
()
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
if
(
item
[
24
].
length
>
0
)
{
...
...
@@ -516,6 +519,7 @@ export default class ProfitLoss extends Component {
item
.
error
]
})
console
.
log
(
dataTable
);
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
,
editable
:
true
,
fromUpload
:
true
},
()
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
if
(
item
[
24
].
length
>
0
)
{
...
...
@@ -1031,46 +1035,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
/
>
}
/
>
<
/div>
:
<
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
=
{
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
value={Number(value).toFixed(1)}
//
decimalScale={1}
//
/>
//
}
//
/>
//
</div> :
//
<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={Number(value).toFixed(1)}
//
decimalScale={1}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -1154,46 +1158,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
/
>
}
/
>
<
/div>
:
<
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
=
{
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
value={Number(value).toFixed(1)}
//
decimalScale={1}
//
/>
//
}
//
/>
//
</div> :
//
<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={Number(value).toFixed(1)}
//
decimalScale={1}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -1289,46 +1293,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -1424,46 +1428,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -1559,46 +1563,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -1694,46 +1698,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -1829,46 +1833,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -1964,46 +1968,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -2099,46 +2103,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -2234,46 +2238,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -2369,46 +2373,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -2504,46 +2508,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -2639,46 +2643,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
width
:
96
,
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
4
?
null
:
tableMeta
.
rowData
[
0
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
...
...
@@ -2730,46 +2734,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
@@ -2865,46 +2869,46 @@ export default class ProfitLoss extends Component {
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
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
}
decimalScale
=
{
1
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
//
this.props.status === 'CLOSED' ?
//
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
//
null
//
:
//
tableMeta.rowData[0] === 3 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
disabled={true}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div> :
//
<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}
//
decimalScale={1}
//
value={Number(value).toFixed(1)}
//
/>
//
}
//
/>
//
</div>
//
:
tableMeta
.
rowData
[
0
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
...
...
src/container/BudgetTahunan/TaxPlanning.js
View file @
a02ecab2
...
...
@@ -808,6 +808,7 @@ export default class TaxPlanning extends Component {
})
}
})
let
body
=
{
company_id
:
this
.
props
.
company
.
company_id
,
periode
:
this
.
props
.
periode
,
...
...
@@ -815,6 +816,7 @@ export default class TaxPlanning extends Component {
tax_planning
:
payload
,
status
:
'submitted'
}
// console.log(body);
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
}
});
...
...
@@ -955,6 +957,7 @@ export default class TaxPlanning extends Component {
item
.
error
]
})
console
.
log
(
dataTable
);
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
,
editable
:
true
,
saveDraft
:
true
},
()
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
if
(
item
[
27
].
length
>
0
)
{
...
...
@@ -1941,22 +1944,21 @@ export default class TaxPlanning extends Component {
let
total
=
0
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
if
(
index
>=
9
&&
index
<=
20
)
{
if
(
this
.
props
.
status
===
'CLOSED'
)
{
let
indexChild
=
item
.
tbf
if
(
indexChild
!==
-
1
)
{
total
+=
Number
(
item
.
tbf
)
}
}
else
{
//
if (this.props.status === 'CLOSED') {
//
let indexChild = item.tbf
//
if (indexChild !== -1) {
//
total += Number(item.tbf)
//
}
//
} else {
let
indexChild
=
item
.
tbf
.
formula
.
findIndex
((
val
)
=>
val
.
periode
===
periode
)
if
(
indexChild
!==
-
1
)
{
total
+=
Number
(
item
.
tbf
.
formula
[
indexChild
].
value
)
}
}
//
}
}
})
let
nilai
=
Number
(
total
)
+
Number
(
dataTable2
[
88
][
21
])
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
nilai
// console.log(nilai);
return
nilai
}
...
...
@@ -8399,7 +8401,8 @@ export default class TaxPlanning extends Component {
null
:
tableMeta
.
rowData
[
3
]
===
7
?
(
Number
(
this
.
props
.
status
===
'CLOSED'
?
Number
(
value
).
toFixed
(
1
)
:
handleTotal
(
tableMeta
,
1
))
>=
Number
(
this
.
state
.
minValue
)
&&
Number
(
this
.
props
.
status
===
'CLOSED'
?
Number
(
value
).
toFixed
(
1
)
:
handleTotal
(
tableMeta
,
1
))
<=
Number
(
this
.
state
.
maxValue
))
?
// (Number(this.props.status === 'CLOSED' ? Number(value).toFixed(1) : handleTotal(tableMeta, 1)) >= Number(this.state.minValue) && Number(this.props.status === 'CLOSED' ? Number(value).toFixed(1) : handleTotal(tableMeta, 1)) <= Number(this.state.maxValue)) ?
(
Number
(
handleTotal
(
tableMeta
,
1
))
>=
Number
(
this
.
state
.
minValue
)
&&
Number
(
handleTotal
(
tableMeta
,
1
))
<=
Number
(
this
.
state
.
maxValue
))
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
...
...
@@ -10131,7 +10134,7 @@ export default class TaxPlanning extends Component {
result
=
{
this
.
state
.
result
}
acceptedFiles
=
{[
"xlsx"
]}
onHandle
=
{(
dt
)
=>
{
this
.
fileHandler
(
dt
)
this
.
fileHandler
Simulasi
(
dt
)
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
}}
onUpload
=
{()
=>
{
...
...
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