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
b5e2949d
Commit
b5e2949d
authored
Jan 28, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into didam
parents
dc0a33c0
f90b2a09
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
257 additions
and
129 deletions
+257
-129
SubHolding.js
src/container/Laporan/SubHolding.js
+38
-36
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+219
-93
No files found.
src/container/Laporan/SubHolding.js
View file @
b5e2949d
...
...
@@ -37,7 +37,7 @@ export default class SubHolding extends Component {
{
value
:
6
,
label
:
'Cash Flow - Summary'
},
{
value
:
7
,
label
:
'Balance Sheet - Summary'
},
{
value
:
8
,
label
:
'Profit Loss - Summary'
},
{
value
:
9
,
label
:
'
f
inancial Ratio - Summary'
},
{
value
:
9
,
label
:
'
F
inancial Ratio - Summary'
},
],
report
:
null
,
loading
:
false
,
...
...
@@ -398,7 +398,8 @@ export default class SubHolding extends Component {
item
.
profit_loss
.
monthly_last_year_september
,
item
.
profit_loss
.
monthly_last_year_october
,
item
.
profit_loss
.
monthly_last_year_november
,
item
.
profit_loss
.
monthly_last_year_december
item
.
profit_loss
.
monthly_last_year_december
,
item
.
profit_loss
.
notes
])
}
if
(
item
.
children
!==
null
)
{
...
...
@@ -457,7 +458,8 @@ export default class SubHolding extends Component {
item
.
profit_loss
.
monthly_last_year_september
,
item
.
profit_loss
.
monthly_last_year_october
,
item
.
profit_loss
.
monthly_last_year_november
,
item
.
profit_loss
.
monthly_last_year_december
item
.
profit_loss
.
monthly_last_year_december
,
item
.
profit_loss
.
notes
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
...
...
@@ -620,7 +622,7 @@ export default class SubHolding extends Component {
})
}
else
if
(
this
.
state
.
report
.
value
===
3
)
{
api
.
create
().
getReportPLMB
(
payload
).
then
(
response
=>
{
//
console.log(response);
console
.
log
(
response
);
if
(
response
.
data
)
{
let
dataTable
=
[]
console
.
log
(
response
)
...
...
@@ -1405,15 +1407,14 @@ export default class SubHolding extends Component {
}
}
})
//
this.setState({ dataTable, previewTable: true, loading: false, previewDownload: true })
this
.
setState
({
dataTable
},
()
=>
{
console
.
log
(
this
.
state
.
dataTable
)
// this.getBalanceSheetMR(payload)
})
this
.
setState
({
dataTable
,
previewTable
:
true
,
loading
:
false
,
previewDownload
:
true
})
//
this.setState({ dataTable }, () => {
//
console.log(this.state.dataTable)
//
// this.getBalanceSheetMR(payload)
//
})
}
else
{
this
.
setState
({
dataTable
:
[],
previewTable
:
false
,
loading
:
false
,
previewDownload
:
false
})
}
this
.
setState
({
previewTable
:
true
,
loading
:
false
,
previewDownload
:
false
})
})
}
else
if
(
this
.
state
.
report
.
value
===
8
)
{
...
...
@@ -1483,7 +1484,8 @@ export default class SubHolding extends Component {
isNaN
(
persenFyLY
)
||
persenFyLY
==
'Infinity'
||
persenFyLY
==
'-Infinity'
?
(
item
.
profit_loss
.
fy_last_year
==
''
||
item
.
profit_loss
.
fy_last_year
==
0
?
-
0
:
0
)
:
(
item
.
profit_loss
.
fy_last_year
==
''
||
item
.
profit_loss
.
fy_last_year
==
0
?
persenFyLY
*
-
100
:
persenFyLY
*
100
),
isNaN
(
persenFyOLMB
)
||
persenFyOLMB
==
'Infinity'
||
persenFyOLMB
==
'-Infinity'
?
(
item
.
profit_loss
.
fy_percent_ach_ol_to_mb
==
''
||
item
.
profit_loss
.
fy_percent_ach_ol_to_mb
==
0
?
-
0
:
0
)
:
(
item
.
profit_loss
.
fy_percent_ach_ol_to_mb
==
''
||
item
.
profit_loss
.
fy_percent_ach_ol_to_mb
==
0
?
persenFyOLMB
*
-
100
:
persenFyOLMB
*
100
),
item
.
profit_loss
.
forecast_next_year
,
item
.
profit_loss
.
forecast_more_year
item
.
profit_loss
.
forecast_more_year
,
item
.
profit_loss
.
notes
,
])
}
if
(
item
.
children
!==
null
)
{
...
...
@@ -2050,18 +2052,18 @@ export default class SubHolding extends Component {
// console.log(indexIDzz)
if
(
indexIDzz
!=
-
1
)
{
dataTable2
.
push
([...
dataTable
[
indexIDzz
],
Number
(
items
.
ratio
.
monthly_january
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_february
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_march
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_april
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_may
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_june
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_july
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_august
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_september
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_october
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_november
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_december
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_january
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_january
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_february
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_february
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_march
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_march
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_april
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_april
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_may
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_may
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_june
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_june
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_july
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_july
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_august
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_august
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_september
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_september
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_october
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_october
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_november
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_november
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_december
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_december
).
toFixed
(
2
),
])
}
if
(
items
.
children
!==
null
)
{
...
...
@@ -2074,18 +2076,18 @@ export default class SubHolding extends Component {
}
dataTable2
.
push
([...
dataTable
[
indexID
],
Number
(
item
.
ratio
.
monthly_january
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_february
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_march
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_april
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_may
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_june
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_july
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_august
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_september
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_october
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_november
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_december
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_january
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_january
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_february
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_february
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_march
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_march
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_april
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_april
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_may
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_may
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_june
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_june
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_july
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_july
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_august
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_august
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_september
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_september
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_october
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_october
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_november
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_november
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_december
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_december
).
toFixed
(
2
),
])
if
(
item
.
children
!==
null
)
{
...
...
src/container/Laporan/TableSubHolding.js
View file @
b5e2949d
This diff is collapsed.
Click to expand it.
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