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
d617fb8b
Commit
d617fb8b
authored
Jul 08, 2021
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'GGMAC' into 'master'
done update See merge request
!1542
parents
c88c2078
c763231c
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
149 additions
and
80 deletions
+149
-80
index.js
src/api/index.js
+2
-2
BalanceSheetOLPA.js
src/container/OutlookPA/BalanceSheetOLPA.js
+11
-11
ProgressReport.js
src/container/Progress/ProgressReport.js
+93
-24
TableProgressReport.js
src/container/Progress/TableProgressReport.js
+19
-19
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+24
-24
No files found.
src/api/index.js
View file @
d617fb8b
...
...
@@ -478,10 +478,10 @@ const create = (type = "") => {
const
deleteDocument
=
(
id
)
=>
api
.
post
(
`document/delete_document/
${
id
}
`
)
// Monitoring
const
getMonitoringMB
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/master_budget
?year=
${
body
.
year
}
`
)
const
getMonitoringMB
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/master_budget
`
,
body
)
const
getMonitoringMR
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/monthly_report/
${
body
.
year
}
/
${
body
.
month
}
`
)
const
getMonitoringRO
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/rolling_outlook/
${
body
.
year
}
/
${
body
.
quarter
}
`
)
const
getMonitoringOLPA
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/outlook_pa
?year=
${
body
.
year
}
`
)
const
getMonitoringOLPA
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/outlook_pa
`
,
body
)
// Superadmin Approve
const
getListApprover
=
(
report
,
monthlyReportId
)
=>
api
.
get
(
`transaction/
${
report
}
/get_approver/
${
monthlyReportId
}
`
)
...
...
src/container/OutlookPA/BalanceSheetOLPA.js
View file @
d617fb8b
...
...
@@ -326,17 +326,17 @@ export default class BalanceSheetOLPA extends Component {
console
.
log
(
data
);
this
.
setState
({
loading
:
false
})
if
(
type
==
'submitted'
)
{
this
.
props
.
saveToOLPA
(
payload
)
let
bodyRatioOLPA
=
{
"report"
:
'ratio'
,
"outlookPaId"
:
this
.
props
.
outlook_pa_id
,
"companyId"
:
this
.
props
.
company
.
company_id
,
"periode"
:
this
.
props
.
periode
}
api
.
create
().
triggerRatioOLPA
(
bodyRatioOLPA
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
this
.
props
.
saveToOLPA
(
payload
,
'BS'
)
//
let bodyRatioOLPA = {
//
"report": 'ratio',
//
"outlookPaId": this.props.outlook_pa_id,
//
"companyId": this.props.company.company_id,
//
"periode": this.props.periode
//
}
//
api.create().triggerRatioOLPA(bodyRatioOLPA).then((res) => {
//
console.log(res)
//
this.setState({ loading: false })
//
})
this
.
props
.
onClickClose
()
}
else
{
this
.
props
.
saveToOLPA
(
payload
)
...
...
src/container/Progress/ProgressReport.js
View file @
d617fb8b
This diff is collapsed.
Click to expand it.
src/container/Progress/TableProgressReport.js
View file @
d617fb8b
This diff is collapsed.
Click to expand it.
src/container/RollingOutlook/BalanceSheetRO.js
View file @
d617fb8b
...
...
@@ -374,18 +374,18 @@ export default class BalanceSheetRO extends Component {
if
(
response
.
data
.
status
===
"success"
)
{
if
(
type
==
'submitted'
)
{
this
.
props
.
onClickClose
()
this
.
props
.
refresh
()
let
bodyRatioRO
=
{
"report"
:
'ratio'
,
"rollingOutlookId"
:
this
.
props
.
rollingOutlookID
,
"periode"
:
this
.
props
.
periode
,
"companyId"
:
this
.
props
.
company
.
company_id
,
"quartal"
:
this
.
props
.
quarter
}
api
.
create
().
triggerRatioRO
(
bodyRatioRO
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
this
.
props
.
refresh
(
'BS'
)
//
let bodyRatioRO = {
//
"report": 'ratio',
//
"rollingOutlookId": this.props.rollingOutlookID,
//
"periode": this.props.periode,
//
"companyId": this.props.company.company_id,
//
"quartal": this.props.quarter
//
}
//
api.create().triggerRatioRO(bodyRatioRO).then((res) => {
//
console.log(res)
//
this.setState({ loading: false })
//
})
}
else
{
this
.
props
.
onClickClose
()
this
.
props
.
refresh
()
...
...
@@ -600,18 +600,18 @@ export default class BalanceSheetRO extends Component {
if
(
response
.
data
.
status
===
"success"
)
{
if
(
type
==
'submitted'
)
{
this
.
props
.
onClickClose
()
this
.
props
.
refresh
()
let
bodyRatioRO
=
{
"report"
:
'ratio'
,
"rollingOutlookId"
:
this
.
props
.
rollingOutlookID
,
"periode"
:
this
.
props
.
periode
,
"companyId"
:
this
.
props
.
company
.
company_id
,
"quartal"
:
this
.
props
.
quarter
}
api
.
create
().
triggerRatioRO
(
bodyRatioRO
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
this
.
props
.
refresh
(
'BS'
)
//
let bodyRatioRO = {
//
"report": 'ratio',
//
"rollingOutlookId": this.props.rollingOutlookID,
//
"periode": this.props.periode,
//
"companyId": this.props.company.company_id,
//
"quartal": this.props.quarter
//
}
//
api.create().triggerRatioRO(bodyRatioRO).then((res) => {
//
console.log(res)
//
this.setState({ loading: false })
//
})
}
else
{
this
.
props
.
onClickClose
()
this
.
props
.
refresh
()
...
...
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