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
21a47523
Commit
21a47523
authored
Jul 13, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update130723
parent
016f707e
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
440 additions
and
159 deletions
+440
-159
SubHolding.js
src/container/Reports/SubHolding.js
+4
-4
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+200
-63
CashFlowRO.js
src/container/RollingOutlook/CashFlowRO.js
+40
-36
CorporateAnnualTargetRO.js
src/container/RollingOutlook/CorporateAnnualTargetRO.js
+196
-56
No files found.
src/container/Reports/SubHolding.js
View file @
21a47523
...
@@ -4118,10 +4118,10 @@ export default class SubHolding extends Component {
...
@@ -4118,10 +4118,10 @@ export default class SubHolding extends Component {
a
.
click
();
a
.
click
();
}
}
}
else
if
(
this
.
state
.
report
.
value
===
4
)
{
}
else
if
(
this
.
state
.
report
.
value
===
4
)
{
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/db_ratio/export_report?submission_id=
${
this
.
state
.
FRID
===
null
?
""
:
this
.
state
.
FRID
}
&&report_id=29&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
`
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/db_ratio/export_report?submission_id=
${
this
.
state
.
FRID
===
null
?
""
:
this
.
state
.
FRID
}
&&report_id=29&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&¤cy_id=
${
this
.
state
.
defaultCurrency
.
id
}
`
console
.
log
(
url
);
console
.
log
(
url
);
let
res
=
await
fetch
(
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/db_ratio/export_report?submission_id=
${
this
.
state
.
FRID
===
null
?
""
:
this
.
state
.
FRID
}
&&report_id=29&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/db_ratio/export_report?submission_id=
${
this
.
state
.
FRID
===
null
?
""
:
this
.
state
.
FRID
}
&&report_id=29&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&¤cy_id=
${
this
.
state
.
defaultCurrency
.
id
}
`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
...
@@ -4161,10 +4161,10 @@ export default class SubHolding extends Component {
...
@@ -4161,10 +4161,10 @@ export default class SubHolding extends Component {
a
.
click
();
a
.
click
();
}
}
}
else
if
(
this
.
state
.
report
.
value
===
6
)
{
}
else
if
(
this
.
state
.
report
.
value
===
6
)
{
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_cash_flow/export_report?submission_id=
${
this
.
state
.
submissionID
===
null
?
""
:
this
.
state
.
submissionID
}
&&report_id=6&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&&months=
${
this
.
state
.
month
.
month_id
}
&&quarter=1`
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_cash_flow/export_report?submission_id=
${
this
.
state
.
submissionID
===
null
?
""
:
this
.
state
.
submissionID
}
&&report_id=6&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&&months=
${
this
.
state
.
month
.
month_id
}
&&quarter=1
&¤cy_id=
${
this
.
state
.
defaultCurrency
.
id
}
`
console
.
log
(
url
);
console
.
log
(
url
);
let
res
=
await
fetch
(
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_cash_flow/export_report?submission_id=
${
this
.
state
.
submissionID
===
null
?
""
:
this
.
state
.
submissionID
}
&&report_id=6&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&&months=
${
this
.
state
.
month
.
month_id
}
&&quarter=1`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_cash_flow/export_report?submission_id=
${
this
.
state
.
submissionID
===
null
?
""
:
this
.
state
.
submissionID
}
&&report_id=6&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&&months=
${
this
.
state
.
month
.
month_id
}
&&quarter=1
&¤cy_id=
${
this
.
state
.
defaultCurrency
.
id
}
`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
...
...
src/container/RollingOutlook/BalanceSheetRO.js
View file @
21a47523
This diff is collapsed.
Click to expand it.
src/container/RollingOutlook/CashFlowRO.js
View file @
21a47523
...
@@ -286,7 +286,7 @@ export default class CashFlow extends Component {
...
@@ -286,7 +286,7 @@ export default class CashFlow extends Component {
this
.
setState
({
alert
:
false
})
this
.
setState
({
alert
:
false
})
}
}
olahDataCashFlow
(
dataTable2
)
{
olahDataCashFlow
(
dataTable2
,
trigger
)
{
console
.
log
(
dataTable2
)
console
.
log
(
dataTable2
)
let
listCF
=
[]
let
listCF
=
[]
dataTable2
.
map
((
item
,
index
)
=>
{
dataTable2
.
map
((
item
,
index
)
=>
{
...
@@ -339,10 +339,10 @@ export default class CashFlow extends Component {
...
@@ -339,10 +339,10 @@ export default class CashFlow extends Component {
})
})
console
.
log
(
listCF
)
console
.
log
(
listCF
)
this
.
createCashFlow
(
listCF
)
this
.
createCashFlow
(
listCF
,
trigger
)
}
}
createCashFlow
(
dbcf
)
{
createCashFlow
(
dbcf
,
trigger
)
{
let
payload
=
{
let
payload
=
{
"rolling_outlook_id"
:
this
.
props
.
rollingOutlookID
,
"rolling_outlook_id"
:
this
.
props
.
rollingOutlookID
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"company_id"
:
this
.
props
.
company
.
company_id
,
...
@@ -355,6 +355,9 @@ export default class CashFlow extends Component {
...
@@ -355,6 +355,9 @@ export default class CashFlow extends Component {
}
}
console
.
log
(
dbcf
)
console
.
log
(
dbcf
)
console
.
log
(
JSON
.
stringify
(
payload
))
console
.
log
(
JSON
.
stringify
(
payload
))
if
(
trigger
===
"simulasi"
)
{
}
else
{
api
.
create
().
createRollingOutlookCF
(
payload
).
then
(
response
=>
{
api
.
create
().
createRollingOutlookCF
(
payload
).
then
(
response
=>
{
console
.
log
(
payload
);
console
.
log
(
payload
);
console
.
log
(
response
);
console
.
log
(
response
);
...
@@ -390,6 +393,7 @@ export default class CashFlow extends Component {
...
@@ -390,6 +393,7 @@ export default class CashFlow extends Component {
this
.
setState
({
loading
:
false
,
handleDoubleClick
:
0
})
this
.
setState
({
loading
:
false
,
handleDoubleClick
:
0
})
}
}
})
})
}
this
.
props
.
onClickClose
()
this
.
props
.
onClickClose
()
this
.
props
.
refresh
()
this
.
props
.
refresh
()
}
}
...
@@ -2228,7 +2232,7 @@ export default class CashFlow extends Component {
...
@@ -2228,7 +2232,7 @@ export default class CashFlow extends Component {
// :
// :
this
.
state
.
handleDoubleClick
==
1
?
null
:
this
.
state
.
handleDoubleClick
==
1
?
null
:
this
.
setState
({
handleDoubleClick
:
1
},
()
=>
{
this
.
setState
({
handleDoubleClick
:
1
},
()
=>
{
this
.
olahDataCashFlow
(
dataTable2
)
this
.
olahDataCashFlow
(
dataTable2
,
"simulasi"
)
})}
})}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
...
...
src/container/RollingOutlook/CorporateAnnualTargetRO.js
View file @
21a47523
This diff is collapsed.
Click to expand it.
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