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
060fff22
Commit
060fff22
authored
Jan 27, 2021
by
Rifka Kurnia
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rifka' into 'master'
subholding hapus dbtp-mr See merge request
!1056
parents
991fef80
a3432754
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
80 deletions
+0
-80
SubHolding.js
src/container/Laporan/SubHolding.js
+0
-80
No files found.
src/container/Laporan/SubHolding.js
View file @
060fff22
...
@@ -1867,86 +1867,6 @@ export default class SubHolding extends Component {
...
@@ -1867,86 +1867,6 @@ export default class SubHolding extends Component {
})
})
}
}
getTaxPlanMR
(
payload
)
{
api
.
create
().
getReportTPMR
(
payload
).
then
(
response
=>
{
console
.
log
(
payload
);
console
.
log
(
response
);
let
dataTable
=
this
.
state
.
dataTable
console
.
log
(
dataTable
)
let
dataTable2
=
[]
if
(
response
.
data
)
{
let
res
=
response
.
data
.
data
res
.
map
((
item
,
index
)
=>
{
let
indexID
=
dataTable
.
findIndex
((
val
)
=>
val
[
4
]
==
item
.
id
)
if
(
indexID
!=
-
1
)
{
const
handlePushChild
=
(
items
)
=>
{
let
indexIDzz
=
dataTable
.
findIndex
((
val
)
=>
val
[
4
]
===
items
.
id
)
// console.log(indexIDzz)
if
(
indexIDzz
!=
-
1
)
{
dataTable2
.
push
([...
dataTable
[
indexIDzz
],
Number
(
items
.
tax_planning_report
.
january
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
february
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
march
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
april
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
may
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
june
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
july
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
august
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
september
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
october
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
november
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
december
).
toFixed
(
1
),
Number
(
items
.
tax_planning_report
.
total_actual_before
).
toFixed
(
1
),
])
}
if
(
items
.
children
!==
null
)
{
if
(
items
.
children
.
length
>
0
)
{
items
.
children
.
map
((
itemss
,
indexss
)
=>
{
handlePushChild
(
itemss
)
})
}
}
}
dataTable2
.
push
([...
dataTable
[
indexID
],
Number
(
item
.
tax_planning_report
.
january
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
february
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
march
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
april
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
may
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
june
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
july
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
august
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
september
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
october
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
november
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
december
).
toFixed
(
1
),
Number
(
item
.
tax_planning_report
.
total_actual_before
).
toFixed
(
1
),
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
handlePushChild
(
items
)
})
}
}
}
})
console
.
log
(
dataTable2
)
this
.
setState
({
dataTable
:
dataTable2
,
previewTable
:
true
,
loading
:
false
,
previewDownload
:
true
})
// this.setState({ dataTable2 }, () => {
// // console.log(this.state.dataTable2)
// this.getTaxPlanLastMR(payloadLast)
// })
}
else
{
this
.
setState
({
dataTable
:
[],
previewTable
:
false
,
loading
:
false
,
previewDownload
:
false
})
}
})
}
getReportPLMR
(
payload
)
{
getReportPLMR
(
payload
)
{
let
payloadLast
=
{
let
payloadLast
=
{
"report_id"
:
this
.
state
.
report
.
value
,
"report_id"
:
this
.
state
.
report
.
value
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment