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
32a7858a
Commit
32a7858a
authored
Jul 10, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload Simulasi MB BS
parent
3dae072c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
37 deletions
+54
-37
index.js
src/api/index.js
+5
-3
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+23
-23
BudgetTahunan.js
src/container/BudgetTahunan/BudgetTahunan.js
+26
-11
No files found.
src/api/index.js
View file @
32a7858a
...
...
@@ -450,10 +450,11 @@ const create = (type = "") => {
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
}
//
${
body
.
currency_id
}
`
)
const
triggerRatioMB
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_master_budget_company/
${
body
.
report
}
/
${
body
.
submissionId
}
/
${
body
.
companyId
}
/
${
body
.
periode
}
/
${
body
.
currency_id
}
`
)
const
triggerRatioMBSimulasi
=
(
body
)
=>
api
.
get
(
`/transaction/cronjob/create_master_budget_company/other_currency/
${
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
}
`
)
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)
...
...
@@ -858,6 +859,7 @@ const create = (type = "") => {
getRatioLOCF
,
triggerRatioFromLOCF
,
triggerRatioMB
,
triggerRatioMBSimulasi
,
triggerRatioRO
,
triggerRatioOLPA
,
getMonitoringMB
,
...
...
src/container/BudgetTahunan/BalanceSheet.js
View file @
32a7858a
...
...
@@ -515,18 +515,18 @@ export default class BalanceSheet extends Component {
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
onClickClose
()
this
.
props
.
getReport
(
'BS'
)
let
bodyRatioBs
=
{
"report"
:
'ratio'
,
"submissionId"
:
this
.
props
.
submissionID
,
"periode"
:
this
.
props
.
periode
,
"companyId"
:
this
.
props
.
company
.
company_id
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
,
}
api
.
create
().
triggerRatioMB
(
bodyRatioBs
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
this
.
props
.
getReport
(
'BS'
,
'simulasiBS'
)
//
let bodyRatioBs = {
//
"report": 'ratio',
//
"submissionId": this.props.submissionID,
//
"periode": this.props.periode,
//
"companyId": this.props.company.company_id,
//
"currency_id": this.props.defaultCurrency.id,
//
}
//
api.create().triggerRatioMB(bodyRatioBs).then((res) => {
//
console.log(res)
//
this.setState({ loading: false })
//
})
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
}
...
...
@@ -579,17 +579,17 @@ export default class BalanceSheet extends Component {
this
.
props
.
onClickClose
()
if
(
type
==
'submitted'
)
{
this
.
props
.
getReport
(
'BS'
)
let
bodyRatioBs
=
{
"report"
:
'ratio'
,
"submissionId"
:
this
.
props
.
submissionID
,
"periode"
:
this
.
props
.
periode
,
"companyId"
:
this
.
props
.
company
.
company_id
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
,
}
api
.
create
().
triggerRatioMB
(
bodyRatioBs
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
//
let bodyRatioBs = {
//
"report": 'ratio',
//
"submissionId": this.props.submissionID,
//
"periode": this.props.periode,
//
"companyId": this.props.company.company_id,
//
"currency_id": this.props.defaultCurrency.id,
//
}
//
api.create().triggerRatioMB(bodyRatioBs).then((res) => {
//
console.log(res)
//
this.setState({ loading: false })
//
})
}
else
{
this
.
props
.
getReport
()
}
...
...
src/container/BudgetTahunan/BudgetTahunan.js
View file @
32a7858a
...
...
@@ -670,18 +670,33 @@ export default class BudgetTahunan extends Component {
// this.getCashFlow(type)
this
.
getPL
(
type
,
trigger
)
}
else
if
(
type
!=
undefined
&&
type
==
'BS'
)
{
let
bodyRatioBs
=
{
"report"
:
'ratio'
,
"submissionId"
:
this
.
state
.
submissionID
,
"periode"
:
this
.
state
.
periode
.
periode
,
"companyId"
:
this
.
state
.
company
.
company_id
,
"currency_id"
:
this
.
state
.
defaultCurrency
.
id
,
if
(
trigger
===
'simulasiBS'
)
{
let
bodyRatioBs
=
{
"report"
:
'ratio'
,
"submissionId"
:
this
.
state
.
submissionID
,
"periode"
:
this
.
state
.
periode
.
periode
,
"companyId"
:
this
.
state
.
company
.
company_id
,
"currency_id"
:
this
.
state
.
defaultCurrency
.
id
,
}
// console.log(bodyRatioBs);
api
.
create
().
triggerRatioMBSimulasi
(
bodyRatioBs
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
}
else
{
let
bodyRatioBs
=
{
"report"
:
'ratio'
,
"submissionId"
:
this
.
state
.
submissionID
,
"periode"
:
this
.
state
.
periode
.
periode
,
"companyId"
:
this
.
state
.
company
.
company_id
,
"currency_id"
:
this
.
state
.
defaultCurrency
.
id
,
}
// console.log(bodyRatioBs);
api
.
create
().
triggerRatioMB
(
bodyRatioBs
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
}
// console.log(bodyRatioBs);
api
.
create
().
triggerRatioMB
(
bodyRatioBs
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
}
else
{
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