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
2d6951d6
Commit
2d6951d6
authored
Jun 15, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/riri' into 'ENV-DEV'
Update OLPA RO See merge request
!1836
parents
1194f7c4
08312e8a
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
173 additions
and
153 deletions
+173
-153
BalanceSheetOLPA.js
src/container/OutlookPA/BalanceSheetOLPA.js
+2
-1
CorporateAnnualTargetOLPA.js
src/container/OutlookPA/CorporateAnnualTargetOLPA.js
+1
-0
OutlookPA.js
src/container/OutlookPA/OutlookPA.js
+22
-12
TaxPlanningOLPA.js
src/container/OutlookPA/TaxPlanningOLPA.js
+148
-140
No files found.
src/container/OutlookPA/BalanceSheetOLPA.js
View file @
2d6951d6
...
@@ -148,7 +148,8 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -148,7 +148,8 @@ export default class BalanceSheetOLPA extends Component {
"revision"
:
this
.
props
.
revision
,
"revision"
:
this
.
props
.
revision
,
"get_for"
:
this
.
state
.
get_for
,
"get_for"
:
this
.
state
.
get_for
,
"periode"
:
this
.
props
.
periode
,
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
"company_id"
:
this
.
props
.
company
.
company_id
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
}
api
.
create
().
getLastestUpdateOLPA
(
payload
).
then
(
response
=>
{
api
.
create
().
getLastestUpdateOLPA
(
payload
).
then
(
response
=>
{
// console.log(response);
// console.log(response);
...
...
src/container/OutlookPA/CorporateAnnualTargetOLPA.js
View file @
2d6951d6
...
@@ -708,6 +708,7 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -708,6 +708,7 @@ export default class CorporateAnnualTargetRO extends Component {
"company_id"
:
this
.
props
.
company
.
company_id
,
"company_id"
:
this
.
props
.
company
.
company_id
,
// "rolling_outlook_id": this.props.rollingOutlookID,
// "rolling_outlook_id": this.props.rollingOutlookID,
"outlook_pa_id"
:
this
.
props
.
outlook_pa_id
,
"outlook_pa_id"
:
this
.
props
.
outlook_pa_id
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
,
"quartal"
:
'q1'
"quartal"
:
'q1'
}
}
api
.
create
().
getLastestUpdateOLPA
(
payload
).
then
(
response
=>
{
api
.
create
().
getLastestUpdateOLPA
(
payload
).
then
(
response
=>
{
...
...
src/container/OutlookPA/OutlookPA.js
View file @
2d6951d6
...
@@ -1591,6 +1591,7 @@ export default class OutlookPA extends Component {
...
@@ -1591,6 +1591,7 @@ export default class OutlookPA extends Component {
let
datas
=
data
.
findIndex
((
val
)
=>
val
[
4
]
==
items
)
let
datas
=
data
.
findIndex
((
val
)
=>
val
[
4
]
==
items
)
let
report
=
data
[
datas
]
let
report
=
data
[
datas
]
if
(
items
===
38
)
{
if
(
items
===
38
)
{
try
{
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/cash_flow/outlook_pa/export_outlook_pa?outlook_pa_id=
${
outlook_pa_id
}
&&report_id=
${
report
[
4
]}
&&company_id=
${
company
.
company_id
}
&&year=
${
periode
.
periode
}
&&revision=
${
report
[
2
]}
&&download_file_report_id=
${
downloadedFileReportId
}
&¤cy_id=
${
defaultCurrency
.
id
}
`
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/cash_flow/outlook_pa/export_outlook_pa?outlook_pa_id=
${
outlook_pa_id
}
&&report_id=
${
report
[
4
]}
&&company_id=
${
company
.
company_id
}
&&year=
${
periode
.
periode
}
&&revision=
${
report
[
2
]}
&&download_file_report_id=
${
downloadedFileReportId
}
&¤cy_id=
${
defaultCurrency
.
id
}
`
let
res
=
await
fetch
(
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/cash_flow/outlook_pa/export_outlook_pa?outlook_pa_id=
${
outlook_pa_id
===
null
?
""
:
outlook_pa_id
}
&&report_id=
${
report
[
4
]}
&&company_id=
${
company
.
company_id
}
&&year=
${
periode
.
periode
}
&&revision=
${
report
[
2
]}
&&download_file_report_id=
${
downloadedFileReportId
}
&¤cy_id=
${
defaultCurrency
.
id
}
`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/cash_flow/outlook_pa/export_outlook_pa?outlook_pa_id=
${
outlook_pa_id
===
null
?
""
:
outlook_pa_id
}
&&report_id=
${
report
[
4
]}
&&company_id=
${
company
.
company_id
}
&&year=
${
periode
.
periode
}
&&revision=
${
report
[
2
]}
&&download_file_report_id=
${
downloadedFileReportId
}
&¤cy_id=
${
defaultCurrency
.
id
}
`
...
@@ -1599,7 +1600,12 @@ export default class OutlookPA extends Component {
...
@@ -1599,7 +1600,12 @@ export default class OutlookPA extends Component {
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
result
=
[...
result
,
res
];
result
=
[...
result
,
res
];
}
}
}
catch
(
error
)
{
alert
(
error
)
}
}
else
{
}
else
{
try
{
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/outlook_pa/export_outlook_pa?outlook_pa_id=
${
outlook_pa_id
}
&&report_id=
${
report
[
4
]}
&&company_id=
${
company
.
company_id
}
&&year=
${
periode
.
periode
}
&&revision=
${
report
[
2
]}
&&download_file_report_id=
${
downloadedFileReportId
}
&¤cy_id=
${
defaultCurrency
.
id
}
`
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/outlook_pa/export_outlook_pa?outlook_pa_id=
${
outlook_pa_id
}
&&report_id=
${
report
[
4
]}
&&company_id=
${
company
.
company_id
}
&&year=
${
periode
.
periode
}
&&revision=
${
report
[
2
]}
&&download_file_report_id=
${
downloadedFileReportId
}
&¤cy_id=
${
defaultCurrency
.
id
}
`
let
res
=
await
fetch
(
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/outlook_pa/export_outlook_pa?outlook_pa_id=
${
outlook_pa_id
===
null
?
""
:
outlook_pa_id
}
&&report_id=
${
report
[
4
]}
&&company_id=
${
company
.
company_id
}
&&year=
${
periode
.
periode
}
&&revision=
${
report
[
2
]}
&&download_file_report_id=
${
downloadedFileReportId
}
&¤cy_id=
${
defaultCurrency
.
id
}
`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/outlook_pa/export_outlook_pa?outlook_pa_id=
${
outlook_pa_id
===
null
?
""
:
outlook_pa_id
}
&&report_id=
${
report
[
4
]}
&&company_id=
${
company
.
company_id
}
&&year=
${
periode
.
periode
}
&&revision=
${
report
[
2
]}
&&download_file_report_id=
${
downloadedFileReportId
}
&¤cy_id=
${
defaultCurrency
.
id
}
`
...
@@ -1608,6 +1614,10 @@ export default class OutlookPA extends Component {
...
@@ -1608,6 +1614,10 @@ export default class OutlookPA extends Component {
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
result
=
[...
result
,
res
];
result
=
[...
result
,
res
];
}
}
}
catch
(
error
)
{
alert
(
error
)
}
}
}
}
}
...
...
src/container/OutlookPA/TaxPlanningOLPA.js
View file @
2d6951d6
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