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
658db32e
Commit
658db32e
authored
Jun 20, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CAT MB & RO
parent
f2c636a6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+1
-1
CorporateAnnualTargetRO.js
src/container/RollingOutlook/CorporateAnnualTargetRO.js
+1
-1
ProfitLossRO.js
src/container/RollingOutlook/ProfitLossRO.js
+15
-11
No files found.
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
658db32e
...
@@ -280,7 +280,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -280,7 +280,7 @@ export default class CorporateAnnualTarget extends Component {
downloadTemplate
=
async
()
=>
{
downloadTemplate
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/master_budget/download_template?report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/master_budget/download_template?report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&¤cy_id=
${
this
.
props
.
defaultCurrency
.
id
}
`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
// // // // console.log(res)
// // // // console.log(res)
...
...
src/container/RollingOutlook/CorporateAnnualTargetRO.js
View file @
658db32e
...
@@ -343,7 +343,7 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -343,7 +343,7 @@ export default class CorporateAnnualTargetRO extends Component {
downloadTemplate
=
async
()
=>
{
downloadTemplate
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/cat/rolling_outlook/download_template?report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&quartal=
${
this
.
props
.
quarter
}
`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/cat/rolling_outlook/download_template?report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&quartal=
${
this
.
props
.
quarter
}
&¤cy_id=
${
this
.
props
.
defaultCurrency
.
id
}
`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
if
(
res
.
size
>
0
)
{
if
(
res
.
size
>
0
)
{
...
...
src/container/RollingOutlook/ProfitLossRO.js
View file @
658db32e
...
@@ -98,7 +98,7 @@ export default class ProfitLossROO extends Component {
...
@@ -98,7 +98,7 @@ export default class ProfitLossROO extends Component {
this
.
getLatestUpdate
()
this
.
getLatestUpdate
()
console
.
log
(
this
.
props
);
console
.
log
(
this
.
props
);
// this.getSettingControl()
// this.getSettingControl()
//
this.handleViewOnly()
this
.
handleViewOnly
()
}
}
handleViewOnly
()
{
handleViewOnly
()
{
...
@@ -589,6 +589,9 @@ export default class ProfitLossROO extends Component {
...
@@ -589,6 +589,9 @@ export default class ProfitLossROO extends Component {
}
}
// this.props.onClickClose()
// this.props.onClickClose()
// this.props.getReport()
// this.props.getReport()
}
else
{
if
(
response
.
data
?.
message
==
"Please Set Up Rate Currency First"
)
{
this
.
setState
({
visibleAlertSave
:
true
})
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
,
handleDoubleClick
:
0
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
,
handleDoubleClick
:
0
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
)
||
response
.
data
.
message
.
includes
(
"Token Expired"
))
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
)
||
response
.
data
.
message
.
includes
(
"Token Expired"
))
{
...
@@ -597,9 +600,10 @@ export default class ProfitLossROO extends Component {
...
@@ -597,9 +600,10 @@ export default class ProfitLossROO extends Component {
window
.
location
.
reload
();
window
.
location
.
reload
();
},
1000
);
},
1000
);
}
}
this
.
props
.
onClickClose
()
//
this.props.onClickClose()
this
.
props
.
refresh
()
this
.
props
.
refresh
()
})
})
}
// alert(response.data.status)
// alert(response.data.status)
}
}
}
else
{
}
else
{
...
...
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