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
01be1e41
Commit
01be1e41
authored
Dec 18, 2020
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'didam' into 'master'
Didam See merge request
!821
parents
4b0d7bea
5f49be2c
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
78 additions
and
45 deletions
+78
-45
index.js
src/api/index.js
+1
-1
BudgetTahunan.js
src/container/BudgetTahunan.js
+13
-6
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+1
-1
CashFlow.js
src/container/BudgetTahunan/CashFlow.js
+2
-2
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+2
-2
FixedAssetsMovement.js
src/container/BudgetTahunan/FixedAssetsMovement.js
+2
-2
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+2
-2
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+2
-2
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+53
-27
No files found.
src/api/index.js
View file @
01be1e41
...
...
@@ -38,7 +38,7 @@ const create = (type = "") => {
'Content-Type'
:
'application/json'
,
},
// 40 second timeout...
timeout
:
10
0000
timeout
:
4
0000
})
break
;
default
:
...
...
src/container/BudgetTahunan.js
View file @
01be1e41
...
...
@@ -744,18 +744,25 @@ export default class BudgetTahunan extends Component {
})
// // console.log(JSON.stringify(data));
api
.
create
(
'UPLOAD'
).
createSubmitReport
(
data
).
then
(
response
=>
{
// // console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
getSubmission
()
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
getSubmission
()
}
else
{
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
getSubmission
()
document
.
body
.
style
.
overflow
=
'unset'
;
})
}
}
else
{
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
},
()
=>
{
this
.
getSubmission
()
document
.
body
.
style
.
overflow
=
'unset'
;
})
})
}
}
else
{
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not saved, please check your Connection'
,
tipeAlert
:
'error'
,
loading
:
false
},
()
=>
{
this
.
getSubmission
()
document
.
body
.
style
.
overflow
=
'unset'
;
})
...
...
src/container/BudgetTahunan/BalanceSheet.js
View file @
01be1e41
...
...
@@ -442,7 +442,7 @@ export default class BalanceSheet extends Component {
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not saved, please check your Connection'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
...
...
src/container/BudgetTahunan/CashFlow.js
View file @
01be1e41
...
...
@@ -183,7 +183,7 @@ export default class CashFlow extends Component {
// } else {
api
.
create
().
getDetailReportCF
(
payload
).
then
(
response
=>
{
let
dataTable
=
[]
//
console.log(response)
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
==
'success'
)
{
...
...
@@ -278,7 +278,7 @@ export default class CashFlow extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Connection Timeout, please check your Connection'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
// }
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
01be1e41
...
...
@@ -269,7 +269,7 @@ export default class CorporateAnnualTarget extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Connection Timeout, please check your Connection'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
...
...
@@ -670,7 +670,7 @@ export default class CorporateAnnualTarget extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not saved, please check your Connection'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
...
...
src/container/BudgetTahunan/FixedAssetsMovement.js
View file @
01be1e41
...
...
@@ -195,7 +195,7 @@ export default class FixedAssetsMovement extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Connection Timeout, please check your Connection'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
...
...
@@ -447,7 +447,7 @@ export default class FixedAssetsMovement extends Component {
}
else
{
// this.setState({ loading: false })
// alert(response.problem)
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not saved, please check your Connection'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
01be1e41
...
...
@@ -205,7 +205,7 @@ export default class ProfitLoss extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Connection Timeout, please check your Connection'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
...
...
@@ -447,7 +447,7 @@ export default class ProfitLoss extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not saved, please check your Connection'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
...
...
src/container/BudgetTahunan/TaxPlanning.js
View file @
01be1e41
...
...
@@ -230,7 +230,7 @@ export default class TaxPlanning extends Component {
})
}
}
else
{
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
})
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
alert
:
true
,
messageAlert
:
'Connection Timeout, please check your Connection'
,
tipeAlert
:
'error'
})
}
})
}
...
...
@@ -632,7 +632,7 @@ export default class TaxPlanning extends Component {
// alert(response.data.status)
}
}
else
{
this
.
setState
({
loading
:
false
,
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
})
this
.
setState
({
loading
:
false
,
alert
:
true
,
messageAlert
:
'Data is not saved, please check your Connection'
,
tipeAlert
:
'error'
})
}
})
}
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
01be1e41
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