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
98369b2d
Commit
98369b2d
authored
Jul 10, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update trigger historical ratio from locf MR
parent
d5c9c667
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
index.js
src/api/index.js
+3
-1
MonthlyReport.js
src/container/MonthlyReport.js
+1
-1
No files found.
src/api/index.js
View file @
98369b2d
...
@@ -448,6 +448,7 @@ const create = (type = "") => {
...
@@ -448,6 +448,7 @@ const create = (type = "") => {
const
triggerRatioMB
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_master_budget_company/
${
body
.
report
}
/
${
body
.
submissionId
}
/
${
body
.
companyId
}
/
${
body
.
periode
}
`
)
const
triggerRatioMB
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_master_budget_company/
${
body
.
report
}
/
${
body
.
submissionId
}
/
${
body
.
companyId
}
/
${
body
.
periode
}
`
)
const
triggerRatioRO
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_rolling_outlook_company/
${
body
.
report
}
/
${
body
.
rollingOutlookId
}
/
${
body
.
companyId
}
/
${
body
.
quartal
}
/
${
body
.
periode
}
`
)
const
triggerRatioRO
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_rolling_outlook_company/
${
body
.
report
}
/
${
body
.
rollingOutlookId
}
/
${
body
.
companyId
}
/
${
body
.
quartal
}
/
${
body
.
periode
}
`
)
const
triggerRatioOLPA
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_outlook_pa_company/
${
body
.
report
}
/
${
body
.
outlookPaId
}
/
${
body
.
companyId
}
/
${
body
.
periode
}
`
)
const
triggerRatioOLPA
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_outlook_pa_company/
${
body
.
report
}
/
${
body
.
outlookPaId
}
/
${
body
.
companyId
}
/
${
body
.
periode
}
`
)
const
triggerHistoricalRatio
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_historical_company/
${
body
.
report
}
/
${
body
.
companyId
}
/
${
body
.
periode
}
`
)
// MonthlyPL
// MonthlyPL
// const getHierarkiMontlyReportPL = (body) => api.post('transaction/monthly_report_pl/get_report_hierarki', body)
// const getHierarkiMontlyReportPL = (body) => api.post('transaction/monthly_report_pl/get_report_hierarki', body)
...
@@ -835,7 +836,8 @@ const create = (type = "") => {
...
@@ -835,7 +836,8 @@ const create = (type = "") => {
getMonitoringRO
,
getMonitoringRO
,
getMonitoringOLPA
,
getMonitoringOLPA
,
getListApprover
,
getListApprover
,
getIdToken
getIdToken
,
triggerHistoricalRatio
}
}
}
}
...
...
src/container/MonthlyReport.js
View file @
98369b2d
...
@@ -657,7 +657,7 @@ export default class MonthlyReport extends Component {
...
@@ -657,7 +657,7 @@ export default class MonthlyReport extends Component {
"companyId"
:
this
.
state
.
company
.
company_id
,
"companyId"
:
this
.
state
.
company
.
company_id
,
"months"
:
this
.
state
.
month
.
month_id
"months"
:
this
.
state
.
month
.
month_id
}
}
api
.
create
().
trigger
RatioFromLOCF
(
bodyRatioLocf
).
then
((
res
)
=>
{
api
.
create
().
trigger
HistoricalRatio
(
bodyRatioLocf
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
})
})
...
...
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