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
5f49be2c
Commit
5f49be2c
authored
Dec 18, 2020
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apdet
parent
ec1bb599
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
18 deletions
+25
-18
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
No files found.
src/api/index.js
View file @
5f49be2c
...
...
@@ -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 @
5f49be2c
...
...
@@ -744,9 +744,10 @@ 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"
)
{
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
getSubmission
()
}
else
{
this
.
setState
({
loading
:
false
},
()
=>
{
...
...
@@ -755,7 +756,13 @@ export default class BudgetTahunan extends Component {
})
}
}
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
({
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 @
5f49be2c
...
...
@@ -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 @
5f49be2c
...
...
@@ -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 @
5f49be2c
...
...
@@ -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 @
5f49be2c
...
...
@@ -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 @
5f49be2c
...
...
@@ -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 @
5f49be2c
...
...
@@ -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'
})
}
})
}
...
...
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