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
b85fc9c7
Commit
b85fc9c7
authored
Apr 04, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/riri' into 'ENV-DEV'
Issue Financial Ratio See merge request
!1758
parents
09cd66a7
891c9912
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+11
-10
BudgetTahunan.js
src/container/BudgetTahunan/BudgetTahunan.js
+4
-0
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
b85fc9c7
...
...
@@ -266,16 +266,17 @@ export default class BalanceSheet extends Component {
this
.
setState
({
loading
:
false
})
if
(
type
==
'submitted'
)
{
this
.
props
.
saveToMasterBudget
(
payload
,
'BS'
)
let
bodyRatioBs
=
{
"report"
:
'ratio'
,
"submissionId"
:
this
.
props
.
submissionID
,
"periode"
:
this
.
props
.
periode
,
"companyId"
:
this
.
props
.
company
.
company_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
// }
// console.log(bodyRatioBs);
// api.create().triggerRatioMB(bodyRatioBs).then((res) => {
// console.log(res)
// this.setState({ loading: false })
// })
}
else
{
this
.
props
.
saveToMasterBudget
(
payload
)
}
...
...
src/container/BudgetTahunan/BudgetTahunan.js
View file @
b85fc9c7
...
...
@@ -606,6 +606,7 @@ export default class BudgetTahunan extends Component {
"periode"
:
this
.
state
.
periode
.
periode
,
"companyId"
:
this
.
state
.
company
.
company_id
}
console
.
log
(
bodyRatioBs
);
api
.
create
().
triggerRatioMB
(
bodyRatioBs
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
...
...
@@ -1760,6 +1761,7 @@ export default class BudgetTahunan extends Component {
}
getFR
(
type
)
{
console
.
log
(
"get FR"
);
let
FRID
=
null
let
payloadID
=
{
"periode"
:
this
.
state
.
periode
.
periode
,
...
...
@@ -1982,6 +1984,7 @@ export default class BudgetTahunan extends Component {
}
createDBFR
()
{
console
.
log
(
"create FR"
);
let
payload
=
{
// "submission_id": this.state.submissionID,
"company_id"
:
this
.
state
.
company
.
company_id
,
...
...
@@ -2245,6 +2248,7 @@ export default class BudgetTahunan extends Component {
this
.
setState
({
loading
:
true
},
()
=>
{
document
.
body
.
style
.
overflow
=
'hidden'
;
})
console
.
log
(
data
);
// // // console.log(JSON.stringify(data));
api
.
create
(
'UPLOAD'
).
createSubmitReport
(
data
).
then
(
response
=>
{
...
...
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