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
8c36717d
Commit
8c36717d
authored
Jun 08, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing Issue Cron
parent
ce3c2d58
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
index.js
src/api/index.js
+6
-6
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+2
-1
BalanceSheetOLPA.js
src/container/OutlookPA/BalanceSheetOLPA.js
+4
-2
RollingOutlook.js
src/container/RollingOutlook/RollingOutlook.js
+2
-2
No files found.
src/api/index.js
View file @
8c36717d
...
...
@@ -445,13 +445,13 @@ const create = (type = "") => {
const
getHierarkiCronJobMRRatio
=
()
=>
api
.
get
(
'/transaction/report/get_hierarki_monthly_report/ratio'
)
// Ratio X LOCF
const
getRatioLOCF
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_monthly_report/
${
body
.
report
}
/
${
body
.
monthlyReportId
}
/
${
body
.
companyId
}
/
${
body
.
months
}
/
${
body
.
periode
}
`
)
const
triggerRatioFromLOCF
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_monthly_report_company/
${
body
.
report
}
/
${
body
.
monthlyReportId
}
/
${
body
.
companyId
}
/
${
body
.
months
}
/
${
body
.
periode
}
`
)
const
getRatioLOCF
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_monthly_report/
${
body
.
report
}
/
${
body
.
monthlyReportId
}
/
${
body
.
companyId
}
/
${
body
.
months
}
/
${
body
.
periode
}
/
${
body
.
currency_id
}
`
)
const
triggerRatioFromLOCF
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_monthly_report_company/
${
body
.
report
}
/
${
body
.
monthlyReportId
}
/
${
body
.
companyId
}
/
${
body
.
months
}
/
${
body
.
periode
}
//
${
body
.
currency_id
}
`
)
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
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
}
`
)
const
triggerRatioMB
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_master_budget_company/
${
body
.
report
}
/
${
body
.
submissionId
}
/
${
body
.
companyId
}
/
${
body
.
periode
}
//
${
body
.
currency_id
}
`
)
const
triggerRatioRO
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_rolling_outlook_company/
${
body
.
report
}
/
${
body
.
rollingOutlookId
}
/
${
body
.
companyId
}
/
${
body
.
quartal
}
/
${
body
.
periode
}
//
${
body
.
currency_id
}
`
)
const
triggerRatioOLPA
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_outlook_pa_company/
${
body
.
report
}
/
${
body
.
outlookPaId
}
/
${
body
.
companyId
}
/
${
body
.
periode
}
//
${
body
.
currency_id
}
`
)
const
triggerHistoricalRatio
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_historical_company/
${
body
.
report
}
/
${
body
.
companyId
}
/
${
body
.
periode
}
//
${
body
.
currency_id
}
`
)
// MonthlyPL
// const getHierarkiMontlyReportPL = (body) => api.post('transaction/monthly_report_pl/get_report_hierarki', body)
...
...
src/container/BudgetTahunan/BalanceSheet.js
View file @
8c36717d
...
...
@@ -483,7 +483,8 @@ export default class BalanceSheet extends Component {
"report"
:
'ratio'
,
"submissionId"
:
this
.
props
.
submissionID
,
"periode"
:
this
.
props
.
periode
,
"companyId"
:
this
.
props
.
company
.
company_id
"companyId"
:
this
.
props
.
company
.
company_id
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
,
}
api
.
create
().
triggerRatioMB
(
bodyRatioBs
).
then
((
res
)
=>
{
console
.
log
(
res
)
...
...
src/container/OutlookPA/BalanceSheetOLPA.js
View file @
8c36717d
...
...
@@ -500,7 +500,7 @@ export default class BalanceSheetOLPA extends Component {
company_id
:
this
.
props
.
company
.
company_id
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
currency_id
:
this
.
state
.
defaultCurrencyUpload
?
.
id
,
currency_id
:
this
.
props
.
defaultCurrency
.
id
,
balance_sheet
:
data
,
status
:
type
}
...
...
@@ -516,7 +516,9 @@ export default class BalanceSheetOLPA extends Component {
"report"
:
'ratio'
,
"outlookPaId"
:
this
.
props
.
outlook_pa_id
,
"companyId"
:
this
.
props
.
company
.
company_id
,
"periode"
:
this
.
props
.
periode
"periode"
:
this
.
props
.
periode
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
,
}
api
.
create
().
triggerRatioOLPA
(
bodyRatioOLPA
).
then
((
res
)
=>
{
console
.
log
(
res
)
...
...
src/container/RollingOutlook/RollingOutlook.js
View file @
8c36717d
...
...
@@ -1729,9 +1729,9 @@ export default class RollingOutlook extends Component {
borderColor
:
'transparent'
}}
onClick
=
{()
=>
tableMeta
.
rowData
[
5
]
==
true
?
//
tableMeta.rowData[5] == true ?
this
.
clickDetail
(
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
4
],
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
3
])
:
null
//
: null
}
>
{
/* {this.state.isApprover == true ?
...
...
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