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
37c8407d
Commit
37c8407d
authored
Jan 22, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actual last year pl belum fix
parent
07d96fb9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4304 additions
and
247 deletions
+4304
-247
SubHolding.js
src/container/Laporan/SubHolding.js
+60
-48
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+4244
-199
No files found.
src/container/Laporan/SubHolding.js
View file @
37c8407d
...
@@ -30,6 +30,8 @@ export default class SubHolding extends Component {
...
@@ -30,6 +30,8 @@ export default class SubHolding extends Component {
{
value
:
3
,
label
:
'DB Profit & Loss'
},
{
value
:
3
,
label
:
'DB Profit & Loss'
},
{
value
:
1
,
label
:
'DB Profit & Loss Detail'
},
{
value
:
1
,
label
:
'DB Profit & Loss Detail'
},
{
value
:
4
,
label
:
'DB Ratio'
},
{
value
:
4
,
label
:
'DB Ratio'
},
{
value
:
5
,
label
:
'DB Tax Planning'
},
{
value
:
21
,
label
:
'DB Operating Indicator'
},
],
],
report
:
null
,
report
:
null
,
loading
:
false
,
loading
:
false
,
...
@@ -192,6 +194,14 @@ export default class SubHolding extends Component {
...
@@ -192,6 +194,14 @@ export default class SubHolding extends Component {
})
})
}
}
})
})
}
else
if
(
this
.
state
.
report
.
value
===
5
)
{
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
report_name
===
'Tax Planning'
)
{
this
.
setState
({
revisionType
:
item
.
revision
},
()
=>
{
this
.
getSubmission
()
})
}
})
}
else
{
}
else
{
this
.
setState
({
revisionType
:
0
},
()
=>
{
this
.
setState
({
revisionType
:
0
},
()
=>
{
this
.
getSubmission
()
this
.
getSubmission
()
...
@@ -823,18 +833,19 @@ export default class SubHolding extends Component {
...
@@ -823,18 +833,19 @@ export default class SubHolding extends Component {
// console.log(indexIDzz)
// console.log(indexIDzz)
if
(
indexIDzz
!=
-
1
)
{
if
(
indexIDzz
!=
-
1
)
{
dataTable2
.
push
([...
dataTable
[
indexIDzz
],
dataTable2
.
push
([...
dataTable
[
indexIDzz
],
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
january
,
formula
:
item
.
profit_detail
.
january_formula
}
:
item
.
profit_detail
.
january
,
items
.
formula
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
february
,
formula
:
item
.
profit_detail
.
february_formula
}
:
item
.
profit_detail
.
february
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
january
,
formula
:
items
.
profit_detail
.
january_formula
}
:
items
.
profit_detail
.
january
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
march
,
formula
:
item
.
profit_detail
.
march_formula
}
:
item
.
profit_detail
.
march
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
february
,
formula
:
items
.
profit_detail
.
february_formula
}
:
items
.
profit_detail
.
february
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
april
,
formula
:
item
.
profit_detail
.
april_formula
}
:
item
.
profit_detail
.
april
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
march
,
formula
:
items
.
profit_detail
.
march_formula
}
:
items
.
profit_detail
.
march
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
may
,
formula
:
item
.
profit_detail
.
may_formula
}
:
item
.
profit_detail
.
may
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
april
,
formula
:
items
.
profit_detail
.
april_formula
}
:
items
.
profit_detail
.
april
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
june
,
formula
:
item
.
profit_detail
.
june_formula
}
:
item
.
profit_detail
.
june
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
may
,
formula
:
items
.
profit_detail
.
may_formula
}
:
items
.
profit_detail
.
may
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
july
,
formula
:
item
.
profit_detail
.
july_formula
}
:
item
.
profit_detail
.
july
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
june
,
formula
:
items
.
profit_detail
.
june_formula
}
:
items
.
profit_detail
.
june
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
august
,
formula
:
item
.
profit_detail
.
august_formula
}
:
item
.
profit_detail
.
august
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
july
,
formula
:
items
.
profit_detail
.
july_formula
}
:
items
.
profit_detail
.
july
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
september
,
formula
:
item
.
profit_detail
.
september_formula
}
:
item
.
profit_detail
.
september
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
august
,
formula
:
items
.
profit_detail
.
august_formula
}
:
items
.
profit_detail
.
august
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
october
,
formula
:
item
.
profit_detail
.
october_formula
}
:
item
.
profit_detail
.
october
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
september
,
formula
:
items
.
profit_detail
.
september_formula
}
:
items
.
profit_detail
.
september
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
november
,
formula
:
item
.
profit_detail
.
november_formula
}
:
item
.
profit_detail
.
november
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
october
,
formula
:
items
.
profit_detail
.
october_formula
}
:
items
.
profit_detail
.
october
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
december
,
formula
:
item
.
profit_detail
.
december_formula
}
:
item
.
profit_detail
.
december
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
november
,
formula
:
items
.
profit_detail
.
november_formula
}
:
items
.
profit_detail
.
november
,
items
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
december
,
formula
:
items
.
profit_detail
.
december_formula
}
:
items
.
profit_detail
.
december
,
])
])
}
}
if
(
items
.
children
!==
null
)
{
if
(
items
.
children
!==
null
)
{
...
@@ -847,6 +858,7 @@ export default class SubHolding extends Component {
...
@@ -847,6 +858,7 @@ export default class SubHolding extends Component {
}
}
dataTable2
.
push
([...
dataTable
[
indexID
],
dataTable2
.
push
([...
dataTable
[
indexID
],
item
.
formula
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
january
,
formula
:
item
.
profit_detail
.
january_formula
}
:
item
.
profit_detail
.
january
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
january
,
formula
:
item
.
profit_detail
.
january_formula
}
:
item
.
profit_detail
.
january
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
february
,
formula
:
item
.
profit_detail
.
february_formula
}
:
item
.
profit_detail
.
february
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
february
,
formula
:
item
.
profit_detail
.
february_formula
}
:
item
.
profit_detail
.
february
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
march
,
formula
:
item
.
profit_detail
.
march_formula
}
:
item
.
profit_detail
.
march
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
march
,
formula
:
item
.
profit_detail
.
march_formula
}
:
item
.
profit_detail
.
march
,
...
@@ -900,18 +912,18 @@ export default class SubHolding extends Component {
...
@@ -900,18 +912,18 @@ export default class SubHolding extends Component {
// console.log(indexIDzz)
// console.log(indexIDzz)
if
(
indexIDzz
!=
-
1
)
{
if
(
indexIDzz
!=
-
1
)
{
dataTable3
.
push
([...
dataTable2
[
indexIDzz
],
dataTable3
.
push
([...
dataTable2
[
indexIDzz
],
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
january
,
formula
:
item
.
profit_detail
.
january_formula
}
:
item
.
profit_detail
.
january
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
january
,
formula
:
items
.
profit_detail
.
january_formula
}
:
items
.
profit_detail
.
january
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
february
,
formula
:
item
.
profit_detail
.
february_formula
}
:
item
.
profit_detail
.
february
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
february
,
formula
:
items
.
profit_detail
.
february_formula
}
:
items
.
profit_detail
.
february
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
march
,
formula
:
item
.
profit_detail
.
march_formula
}
:
item
.
profit_detail
.
march
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
march
,
formula
:
items
.
profit_detail
.
march_formula
}
:
items
.
profit_detail
.
march
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
april
,
formula
:
item
.
profit_detail
.
april_formula
}
:
item
.
profit_detail
.
april
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
april
,
formula
:
items
.
profit_detail
.
april_formula
}
:
items
.
profit_detail
.
april
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
may
,
formula
:
item
.
profit_detail
.
may_formula
}
:
item
.
profit_detail
.
may
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
may
,
formula
:
items
.
profit_detail
.
may_formula
}
:
items
.
profit_detail
.
may
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
june
,
formula
:
item
.
profit_detail
.
june_formula
}
:
item
.
profit_detail
.
june
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
june
,
formula
:
items
.
profit_detail
.
june_formula
}
:
items
.
profit_detail
.
june
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
july
,
formula
:
item
.
profit_detail
.
july_formula
}
:
item
.
profit_detail
.
july
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
july
,
formula
:
items
.
profit_detail
.
july_formula
}
:
items
.
profit_detail
.
july
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
august
,
formula
:
item
.
profit_detail
.
august_formula
}
:
item
.
profit_detail
.
august
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
august
,
formula
:
items
.
profit_detail
.
august_formula
}
:
items
.
profit_detail
.
august
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
september
,
formula
:
item
.
profit_detail
.
september_formula
}
:
item
.
profit_detail
.
september
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
september
,
formula
:
items
.
profit_detail
.
september_formula
}
:
items
.
profit_detail
.
september
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
october
,
formula
:
item
.
profit_detail
.
october_formula
}
:
item
.
profit_detail
.
october
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
october
,
formula
:
items
.
profit_detail
.
october_formula
}
:
items
.
profit_detail
.
october
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
november
,
formula
:
item
.
profit_detail
.
november_formula
}
:
item
.
profit_detail
.
november
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
november
,
formula
:
items
.
profit_detail
.
november_formula
}
:
items
.
profit_detail
.
november
,
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
||
item
.
type_report_id
==
7
?
{
value
:
item
.
profit_detail
.
december
,
formula
:
item
.
profit_detail
.
december_formula
}
:
item
.
profit_detail
.
december
,
item
s
.
type_report_id
==
5
||
items
.
type_report_id
==
6
||
items
.
type_report_id
==
7
?
{
value
:
items
.
profit_detail
.
december
,
formula
:
items
.
profit_detail
.
december_formula
}
:
items
.
profit_detail
.
december
,
])
])
}
}
if
(
items
.
children
!==
null
)
{
if
(
items
.
children
!==
null
)
{
...
@@ -980,18 +992,18 @@ export default class SubHolding extends Component {
...
@@ -980,18 +992,18 @@ export default class SubHolding extends Component {
// console.log(indexIDzz)
// console.log(indexIDzz)
if
(
indexIDzz
!=
-
1
)
{
if
(
indexIDzz
!=
-
1
)
{
dataTable2
.
push
([...
dataTable
[
indexIDzz
],
dataTable2
.
push
([...
dataTable
[
indexIDzz
],
item
.
profit_loss
.
january
,
item
s
.
profit_loss
.
january
,
item
.
profit_loss
.
february
,
item
s
.
profit_loss
.
february
,
item
.
profit_loss
.
march
,
item
s
.
profit_loss
.
march
,
item
.
profit_loss
.
april
,
item
s
.
profit_loss
.
april
,
item
.
profit_loss
.
may
,
item
s
.
profit_loss
.
may
,
item
.
profit_loss
.
june
,
item
s
.
profit_loss
.
june
,
item
.
profit_loss
.
july
,
item
s
.
profit_loss
.
july
,
item
.
profit_loss
.
august
,
item
s
.
profit_loss
.
august
,
item
.
profit_loss
.
september
,
item
s
.
profit_loss
.
september
,
item
.
profit_loss
.
october
,
item
s
.
profit_loss
.
october
,
item
.
profit_loss
.
november
,
item
s
.
profit_loss
.
november
,
item
.
profit_loss
.
december
,
item
s
.
profit_loss
.
december
,
])
])
}
}
if
(
items
.
children
!==
null
)
{
if
(
items
.
children
!==
null
)
{
...
@@ -1057,18 +1069,18 @@ export default class SubHolding extends Component {
...
@@ -1057,18 +1069,18 @@ export default class SubHolding extends Component {
// console.log(indexIDzz)
// console.log(indexIDzz)
if
(
indexIDzz
!=
-
1
)
{
if
(
indexIDzz
!=
-
1
)
{
dataTable3
.
push
([...
dataTable2
[
indexIDzz
],
dataTable3
.
push
([...
dataTable2
[
indexIDzz
],
item
.
profit_loss
.
january
,
item
s
.
profit_loss
.
january
,
item
.
profit_loss
.
february
,
item
s
.
profit_loss
.
february
,
item
.
profit_loss
.
march
,
item
s
.
profit_loss
.
march
,
item
.
profit_loss
.
april
,
item
s
.
profit_loss
.
april
,
item
.
profit_loss
.
may
,
item
s
.
profit_loss
.
may
,
item
.
profit_loss
.
june
,
item
s
.
profit_loss
.
june
,
item
.
profit_loss
.
july
,
item
s
.
profit_loss
.
july
,
item
.
profit_loss
.
august
,
item
s
.
profit_loss
.
august
,
item
.
profit_loss
.
september
,
item
s
.
profit_loss
.
september
,
item
.
profit_loss
.
october
,
item
s
.
profit_loss
.
october
,
item
.
profit_loss
.
november
,
item
s
.
profit_loss
.
november
,
item
.
profit_loss
.
december
,
item
s
.
profit_loss
.
december
,
])
])
}
}
if
(
items
.
children
!==
null
)
{
if
(
items
.
children
!==
null
)
{
...
...
src/container/Laporan/TableSubHolding.js
View file @
37c8407d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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