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
02230345
Commit
02230345
authored
Nov 11, 2020
by
r.kurnia
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into rifka
parents
de017dec
9ee57b0f
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
855 additions
and
88 deletions
+855
-88
SubHolding.js
src/container/Laporan/SubHolding.js
+41
-4
MonthlyReport.js
src/container/MonthlyReport.js
+204
-63
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+1
-1
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+609
-20
No files found.
src/container/Laporan/SubHolding.js
View file @
02230345
...
...
@@ -149,7 +149,8 @@ export default class SubHolding extends Component {
// console.log(index)
this
.
setState
({
listPeriode
:
defaultProps
,
periode
:
index
===
-
1
?
periodeData
[
0
]
:
periodeData
[
index
]
},
()
=>
{
// this.getDataTable()
this
.
getSubmission
()
// this.getSubmission()
this
.
getReportType
()
// if (this.state.isApprover === true) {
// this.getCompanySubmitted()
// } else {
...
...
@@ -161,6 +162,42 @@ export default class SubHolding extends Component {
})
}
getReportType
()
{
let
payload
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"periode"
:
this
.
state
.
periode
.
periode
,
"report_type"
:
"Master Budget"
,
}
api
.
create
().
getReportTypeBody
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
this
.
state
.
report
.
value
===
2
)
{
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
report_name
===
'Balance Sheet'
)
{
this
.
setState
({
revisionType
:
item
.
revision
},
()
=>
{
this
.
getSubmission
()
})
}
})
}
else
if
(
this
.
state
.
report
.
value
===
1
)
{
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
report_name
===
'Profit Loss'
)
{
this
.
setState
({
revisionType
:
item
.
revision
},
()
=>
{
this
.
getSubmission
()
})
}
})
}
else
{
this
.
setState
({
revisionType
:
0
},
()
=>
{
this
.
getSubmission
()
})
}
}
}
})
}
getSubmission
()
{
this
.
setState
({
loading
:
true
})
let
payload
=
{
...
...
@@ -169,7 +206,7 @@ export default class SubHolding extends Component {
"is_approver"
:
true
}
api
.
create
().
getSubmission
(
payload
).
then
(
response
=>
{
//
console.log(response)
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
...
...
@@ -188,7 +225,7 @@ export default class SubHolding extends Component {
getDataTable
()
{
let
payload
=
{
"report_id"
:
this
.
state
.
report
.
value
,
"revision"
:
this
.
state
.
lastRevision
,
"revision"
:
this
.
state
.
revisionType
,
"periode"
:
this
.
state
.
periode
.
periode
,
"company_id"
:
this
.
state
.
company
.
company_id
,
"submission_id"
:
this
.
state
.
submissionID
...
...
src/container/MonthlyReport.js
View file @
02230345
This diff is collapsed.
Click to expand it.
src/container/MonthlyReport/BalanceSheetMR.js
View file @
02230345
...
...
@@ -45,7 +45,7 @@ export default class BalanceSheetMR extends Component {
this
.
getItemHierarki
()
}
async
getItemHierarki
()
{
getItemHierarki
()
{
let
payload
=
{
"report_id"
:
this
.
props
.
report_id
,
"revision"
:
Number
(
this
.
props
.
revision
),
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
02230345
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