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
e79483eb
Commit
e79483eb
authored
Oct 16, 2020
by
Rifka Kurnia Irfiana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push taxplan without console
parent
ebd708ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
99 deletions
+73
-99
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+73
-99
No files found.
src/container/BudgetTahunan/TaxPlanning.js
View file @
e79483eb
...
...
@@ -62,7 +62,6 @@ export default class TaxPlanning extends Component {
componentDidMount
()
{
this
.
getItemHierarki
()
this
.
getLatestUpdate
()
console
.
log
(
this
.
props
);
}
getLatestUpdate
()
{
...
...
@@ -94,7 +93,7 @@ export default class TaxPlanning extends Component {
"submission_id"
:
this
.
props
.
submissionID
}
api
.
create
().
getDetailReportMB
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
//
console.log(response);
let
dataTable
=
[]
if
(
response
.
data
)
{
let
res
=
response
.
data
.
data
...
...
@@ -308,7 +307,7 @@ export default class TaxPlanning extends Component {
"status"
:
type
,
"tax_planning"
:
data
}
console
.
log
(
JSON
.
stringify
(
payload
));
//
console.log(JSON.stringify(payload));
this
.
props
.
saveToMasterBudget
(
payload
)
this
.
props
.
onClickClose
()
}
...
...
@@ -318,12 +317,12 @@ export default class TaxPlanning extends Component {
ExcelRenderer
(
fileObj
,
(
err
,
resp
)
=>
{
// console.log(resp)
if
(
err
)
{
console
.
log
(
err
);
//
console.log(err);
}
else
{
let
isi
=
resp
.
rows
.
slice
(
4
)
console
.
log
(
resp
.
rows
[
2
]);
console
.
log
(
resp
.
rows
);
//
console.log(resp.rows[2]);
//
console.log(resp.rows);
let
payload
=
[]
let
reg
=
/^
[
-+
]?(?:[
0-9
]
+,
)
*
[
0-9
]
+
(?:\.[
0-9
]
+
)?
$/
;
isi
.
map
((
i
,
index
)
=>
{
...
...
@@ -412,15 +411,15 @@ export default class TaxPlanning extends Component {
tax_planning
:
payload
}
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
console
.
log
(
this
.
state
.
judulColumn
)
//
console.log(this.state.judulColumn)
}
});
}
checkUpload
()
{
api
.
create
().
checkUploadMB
(
this
.
state
.
payload
).
then
(
response
=>
{
console
.
log
(
JSON
.
stringify
(
this
.
state
.
payload
));
console
.
log
(
response
)
//
console.log(JSON.stringify(this.state.payload));
//
console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
setState
({
visibleUpload
:
false
,
visibleTP
:
false
,
loading
:
true
})
...
...
@@ -472,11 +471,11 @@ export default class TaxPlanning extends Component {
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
,
editable
:
true
,
saveDraft
:
true
},
()
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
if
(
item
[
27
].
length
>
0
)
{
console
.
log
(
'masuk'
)
//
console.log('masuk')
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
,
editable
:
true
,
saveDraft
:
true
})
}
})
console
.
log
(
this
.
state
.
dataTable
);
//
console.log(this.state.dataTable);
})
}
}
...
...
@@ -571,7 +570,7 @@ export default class TaxPlanning extends Component {
}
// console.log(data);
api
.
create
(
'UPLOAD'
).
uploadMasterBudget
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
//
console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
onClickClose
()
...
...
@@ -588,7 +587,7 @@ export default class TaxPlanning extends Component {
handleValidate
()
{
let
data
=
[]
console
.
log
(
this
.
state
.
dataTable
)
//
console.log(this.state.dataTable)
this
.
state
.
dataTable
.
map
(
i
=>
{
// console.log(i[0])
data
.
push
({
...
...
@@ -674,9 +673,9 @@ export default class TaxPlanning extends Component {
"tax_planning"
:
data
,
"status"
:
"submitted"
}
console
.
log
(
JSON
.
stringify
(
payload
));
//
console.log(JSON.stringify(payload));
api
.
create
().
validateSubmitReport
(
payload
).
then
((
response
)
=>
{
console
.
log
(
response
)
//
console.log(response)
if
(
response
.
data
.
data
.
result
)
{
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
saveDraft
:
false
})
// alert("Type Input Can't be Empty")
...
...
@@ -691,7 +690,7 @@ export default class TaxPlanning extends Component {
`https://tia.eksad.com/tia-reporting-dev/public/transaction/master_budget/download_template?report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
`
)
res
=
await
res
.
blob
()
console
.
log
(
res
)
//
console.log(res)
if
(
res
.
size
>
0
)
{
let
url
=
window
.
URL
.
createObjectURL
(
res
);
let
a
=
document
.
createElement
(
'a'
);
...
...
@@ -704,7 +703,7 @@ export default class TaxPlanning extends Component {
async
downloadAllData
()
{
let
url
=
`https://tia.eksad.com/tia-reporting-dev/public/transaction/master_budget/export_master_budget?submission_id=
${
this
.
props
.
submissionID
}
&&report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&revision=
${
this
.
props
.
revision
}
`
let
sub_null
=
`https://tia.eksad.com/tia-reporting-dev/public/transaction/master_budget/export_master_budget?submission_id=&&report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&revision=
${
this
.
props
.
revision
}
`
console
.
log
(
url
);
//
console.log(url);
let
res
=
await
fetch
(
this
.
props
.
submissionID
==
null
?
sub_null
:
url
)
...
...
@@ -947,14 +946,9 @@ export default class TaxPlanning extends Component {
const
handleForecast
=
(
tableMeta
,
periode
,
dex
)
=>
{
let
total
=
0
// console.log(dataTable2[tableMeta.rowIndex][6])
// console.log(dex)
let
data
=
dex
==
1
?
dataTable2
[
tableMeta
.
rowIndex
][
6
].
tbc
:
dex
==
2
?
dataTable2
[
tableMeta
.
rowIndex
][
6
].
fcp
:
dataTable2
[
tableMeta
.
rowIndex
][
6
].
tbf
// let valuue =
// if (tableMeta.rowData[8] == '')
let
forecast
=
dex
==
1
?
dataTable2
[
tableMeta
.
rowIndex
][
27
]
:
dex
==
2
?
dataTable2
[
tableMeta
.
rowIndex
][
28
]
:
dataTable2
[
tableMeta
.
rowIndex
][
29
]
if
(
data
.
includes
(
'#PL'
))
{
// console.log(tableMeta.rowData[8])
if
(
tableMeta
.
rowData
[
8
]
==
"Control (should be nil)"
)
{
total
=
handleValueFormula
(
5
,
tableMeta
,
dex
,
data
,
forecast
,
periode
)
}
else
{
...
...
@@ -965,10 +959,7 @@ export default class TaxPlanning extends Component {
})
}
}
else
{
// console.log(tableMeta.rowData[8])
// console.log(data)
total
=
handleValueFormula
(
5
,
tableMeta
,
dex
,
data
)
// console.log(total)
}
if
(
dex
==
1
)
{
...
...
@@ -1006,7 +997,6 @@ export default class TaxPlanning extends Component {
a
=
dataTable2
[
indexParent
][
tableMeta
.
columnIndex
].
fcp
=
jagain
===
undefined
?
(
0
+
Number
(
val
))
:
(
Number
(
jagain
)
+
Number
(
val
))
}
}
else
{
// console.log(tableMeta)
if
(
indexChilds
==
0
)
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbc
=
Number
(
val
)
}
...
...
@@ -1026,7 +1016,7 @@ export default class TaxPlanning extends Component {
let
valItem
=
item
.
tbf
.
value
==
undefined
||
item
.
tbf
.
value
==
""
||
item
.
tbf
.
value
==
"undefined"
?
0.0
:
item
.
tbf
.
value
total
+=
Number
(
valItem
)
}
else
{
if
(
dataTable2
[
tableMeta
.
rowIndex
]
[
8
]
===
"Fiscal Correction positive / (negative) Year To Date"
){
if
(
tableMeta
.
rowData
[
8
]
===
"Fiscal Correction positive / (negative) Year To Date"
){
let
valItem
=
item
.
fcp
==
undefined
||
item
.
fcp
==
""
||
item
.
fcp
==
"undefined"
?
0.0
:
item
.
fcp
total
+=
Number
(
valItem
)
}
else
{
...
...
@@ -1037,16 +1027,11 @@ export default class TaxPlanning extends Component {
}
})
dataTable2
[
tableMeta
.
rowIndex
][
21
]
=
total
if
(
tableMeta
.
rowData
[
8
]
===
"Fiscal Correction positive / (negative) Year To Date"
){
console
.
log
(
"masuk"
)
console
.
log
(
total
)
}
dataTable2
[
tableMeta
.
rowIndex
][
21
]
=
Number
(
total
).
toFixed
(
1
)
return
total
}
const
handleValue
=
(
data
)
=>
{
let
total
=
0
// console.log(dataTable2)
dataTable2
.
map
((
item
,
index
)
=>
{
if
(
data
.
rowData
[
4
]
===
item
[
5
])
{
total
=
item
[
data
.
columnIndex
]
===
undefined
?
(
Number
(
total
)
+
0
)
:
(
Number
(
total
)
+
Number
(
item
[
data
.
columnIndex
].
fcp
))
...
...
@@ -1054,7 +1039,6 @@ export default class TaxPlanning extends Component {
})
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
4
]
===
dataTable2
[
data
.
rowIndex
][
5
])
let
a
=
dataTable2
[
data
.
rowIndex
][
data
.
columnIndex
].
fcp
=
Number
(
total
)
// console.log(indexParent);
return
a
}
...
...
@@ -1103,10 +1087,6 @@ export default class TaxPlanning extends Component {
"formula"
:
rilFormula
}
api
.
create
().
countingFormula
(
body
).
then
(
response
=>
{
// console.log(response)
// console.log(tableMeta)
// console.log(tableMeta.rowIndex)
// console.log(rowColumn)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
return
response
.
data
.
data
.
result
...
...
@@ -1160,8 +1140,6 @@ export default class TaxPlanning extends Component {
}
else
{
total
=
Number
(
total
)
}
// console.log(Number(total))
// console.log(dataTable2[tableMeta.rowIndex])
let
a
=
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
total
return
a
}
...
...
@@ -1169,7 +1147,6 @@ export default class TaxPlanning extends Component {
}
const
handleParent
=
(
tableMeta
,
type
)
=>
{
// console.log(tableMeta)
let
total
=
0
dataTable2
.
map
((
item
,
index
)
=>
{
if
(
item
[
5
]
==
tableMeta
.
rowData
[
4
])
{
...
...
@@ -1206,7 +1183,6 @@ export default class TaxPlanning extends Component {
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
=
total
}
// console.log(dataTable2)
return
total
}
...
...
@@ -1312,8 +1288,6 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(tableMeta.rowData);
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -1336,7 +1310,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
0
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
/
>
}
...
...
@@ -1465,10 +1439,8 @@ export default class TaxPlanning extends Component {
// disabled={this.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)}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
// console.log(dataTable2)
}}
/
>
}
...
...
@@ -1599,7 +1571,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
/
>
}
...
...
@@ -1741,7 +1713,6 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -1763,7 +1734,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
0
)
console
.
log
(
event
.
target
.
value
)
}}
/
>
}
...
...
@@ -1892,10 +1863,8 @@ export default class TaxPlanning extends Component {
disabled
=
{
this
.
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
)}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
// console.log(dataTable2)
}}
/
>
}
...
...
@@ -2024,9 +1993,8 @@ export default class TaxPlanning extends Component {
disabled
=
{
this
.
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
)}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
/
>
}
...
...
@@ -2169,7 +2137,6 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -2191,7 +2158,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
0
)
console
.
log
(
event
.
target
.
value
)
}}
/
>
}
...
...
@@ -2322,8 +2289,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
// console.log(dataTable2)
}}
/
>
}
...
...
@@ -2454,7 +2420,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
/
>
}
...
...
@@ -2596,7 +2562,6 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -2618,7 +2583,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
0
)
console
.
log
(
event
.
target
.
value
)
}}
/
>
}
...
...
@@ -2750,7 +2715,6 @@ export default class TaxPlanning extends Component {
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
}}
/
>
}
...
...
@@ -2881,7 +2845,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
/
>
}
...
...
@@ -3023,7 +2987,7 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -3177,7 +3141,7 @@ export default class TaxPlanning extends Component {
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
}}
/
>
}
...
...
@@ -3450,7 +3414,7 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -3604,7 +3568,7 @@ export default class TaxPlanning extends Component {
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
}}
/
>
}
...
...
@@ -3877,7 +3841,7 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -4031,7 +3995,7 @@ export default class TaxPlanning extends Component {
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
}}
/
>
}
...
...
@@ -4304,7 +4268,7 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -4458,7 +4422,7 @@ export default class TaxPlanning extends Component {
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
}}
/
>
}
...
...
@@ -4731,7 +4695,7 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -4885,7 +4849,7 @@ export default class TaxPlanning extends Component {
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
}}
/
>
}
...
...
@@ -5158,7 +5122,7 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -5312,7 +5276,7 @@ export default class TaxPlanning extends Component {
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
}}
/
>
}
...
...
@@ -5585,7 +5549,7 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -5739,7 +5703,7 @@ export default class TaxPlanning extends Component {
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
}}
/
>
}
...
...
@@ -6012,7 +5976,7 @@ export default class TaxPlanning extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -6166,7 +6130,7 @@ export default class TaxPlanning extends Component {
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
}}
/
>
}
...
...
@@ -6464,10 +6428,10 @@ export default class TaxPlanning extends Component {
/
>
<
/span
>
:
tableMeta
.
rowData
[
1
]
===
4
?
tableMeta
.
rowData
[
3
]
===
4
?
null
:
tableMeta
.
rowData
[
1
]
===
6
?
tableMeta
.
rowData
[
3
]
===
6
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
...
...
@@ -6477,7 +6441,7 @@ export default class TaxPlanning extends Component {
value
=
{
Number
(
handleTotal
(
tableMeta
,
6
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
1
]
===
5
?
tableMeta
.
rowData
[
3
]
===
5
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
...
...
@@ -6487,7 +6451,17 @@ export default class TaxPlanning extends Component {
value
=
{
Number
(
handleTotal
(
tableMeta
,
5
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
1
]
===
1
?
tableMeta
.
rowData
[
3
]
===
1
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleTotal
(
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
3
]
===
7
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
...
...
@@ -6517,20 +6491,20 @@ export default class TaxPlanning extends Component {
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
textAlign
:
'center'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
backgroundColor
:
'#37b5e6'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
}}
>
<
span
>
{
"Trial Balance (Commercial)
M
TD"
}
<
/span
>
<
span
>
{
"Trial Balance (Commercial)
Y
TD"
}
<
/span
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
}}
>
<
span
>
{
"Fiscal Correction Positive /(Negative)"
}
<
/span
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
}}
>
<
span
>
{
"Trial Balance (Fiscal)
M
TD"
}
<
/span
>
<
span
>
{
"Trial Balance (Fiscal)
Y
TD"
}
<
/span
>
<
/div
>
<
/div
>
<
/th
>
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -6552,7 +6526,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
0
)
console
.
log
(
event
.
target
.
value
)
}}
/
>
}
...
...
@@ -6685,8 +6659,8 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
//
console.log(dataTable2)
}}
/
>
}
...
...
@@ -6818,7 +6792,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
/
>
}
...
...
@@ -6948,20 +6922,20 @@ export default class TaxPlanning extends Component {
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
textAlign
:
'center'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
backgroundColor
:
'#37b5e6'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
}}
>
<
span
>
{
"Trial Balance (Commercial)
M
TD"
}
<
/span
>
<
span
>
{
"Trial Balance (Commercial)
Y
TD"
}
<
/span
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
}}
>
<
span
>
{
"Fiscal Correction Positive /(Negative)"
}
<
/span
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
}}
>
<
span
>
{
"Trial Balance (Fiscal)
M
TD"
}
<
/span
>
<
span
>
{
"Trial Balance (Fiscal)
Y
TD"
}
<
/span
>
<
/div
>
<
/div
>
<
/th
>
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
// console.log(value)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -6983,7 +6957,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
0
)
console
.
log
(
event
.
target
.
value
)
//
console.log(event.target.value)
}}
/
>
}
...
...
@@ -7115,8 +7089,8 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
// console.log(event.target.value)
//
console.log(dataTable2)
}}
/
>
}
...
...
@@ -7248,7 +7222,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
/
>
}
...
...
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