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
1042ceeb
Commit
1042ceeb
authored
Nov 30, 2021
by
syadziy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
parents
0560b874
763710d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
TaxPlanningOLPA.js
src/container/OutlookPA/TaxPlanningOLPA.js
+8
-6
No files found.
src/container/OutlookPA/TaxPlanningOLPA.js
View file @
1042ceeb
...
...
@@ -263,7 +263,7 @@ export default class TaxPlanningOLPA extends Component {
}
}
})
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
tru
e
,
editable
:
true
})
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
fals
e
,
editable
:
true
})
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
)
||
response
.
data
.
message
.
includes
(
"Token Expired"
))
{
...
...
@@ -655,12 +655,12 @@ export default class TaxPlanningOLPA extends Component {
},
november
:
{
tbc
:
String
(
Number
(
i
[
19
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
19
].
fcp
).
toFixed
(
1
)),
fcp
:
String
(
i
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
String
(
Number
(
i
[
19
].
fcp
).
toFixed
(
2
))
:
String
(
Number
(
i
[
19
].
fcp
).
toFixed
(
1
)),
tbf
:
String
(
Number
(
i
[
19
].
tbf
).
toFixed
(
1
))
},
december
:
{
tbc
:
String
(
Number
(
i
[
20
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
20
].
fcp
).
toFixed
(
1
)),
fcp
:
String
(
i
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
String
(
Number
(
i
[
20
].
fcp
).
toFixed
(
2
))
:
String
(
Number
(
i
[
20
].
fcp
).
toFixed
(
1
)),
tbf
:
String
(
Number
(
i
[
20
].
tbf
).
toFixed
(
1
))
},
total_current_year
:
String
(
Number
(
i
[
21
]).
toFixed
(
1
))
...
...
@@ -783,7 +783,7 @@ export default class TaxPlanningOLPA extends Component {
if
(
String
(
i
[
8
])
==
"Control (should be nil)"
)
{
this
.
setState
({
loading
:
true
})
if
((
Number
(
i
[
19
].
tbf
)
<
Number
(
this
.
state
.
minValue
)
||
Number
(
i
[
19
].
tbf
)
>
Number
(
this
.
state
.
maxValue
))
||
(
Number
(
i
[
20
].
tbf
)
<
Number
(
this
.
state
.
minValue
)
||
Number
(
i
[
20
].
tbf
)
>
Number
(
this
.
state
.
maxValue
))
||
(
Number
(
i
[
21
])
<
Number
(
this
.
state
.
minValue
)
||
Number
(
i
[
21
])
>
Number
(
this
.
state
.
maxValue
)))
{
if
((
Number
(
i
[
19
].
tbf
.
value
)
<
Number
(
this
.
state
.
minValue
)
||
Number
(
i
[
19
].
tbf
.
value
)
>
Number
(
this
.
state
.
maxValue
))
||
(
Number
(
i
[
20
].
tbf
.
value
)
<
Number
(
this
.
state
.
minValue
)
||
Number
(
i
[
20
].
tbf
.
value
)
>
Number
(
this
.
state
.
maxValue
))
||
(
Number
(
i
[
21
])
<
Number
(
this
.
state
.
minValue
)
||
Number
(
i
[
21
])
>
Number
(
this
.
state
.
maxValue
)))
{
errorContrl
=
true
editAble
=
true
}
...
...
@@ -812,6 +812,7 @@ export default class TaxPlanningOLPA extends Component {
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
saveDraft
:
false
})
}
else
{
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
false
})
console
.
log
(
"masuk button error"
)
}
// } else {
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => {
...
...
@@ -3377,8 +3378,9 @@ export default class TaxPlanningOLPA extends Component {
borderColor
:
'transparent'
,
outline
:
'none'
,
}}
onClick
=
{()
=>
this
.
state
.
editable
===
true
?
null
onClick
=
{()
=>
this
.
state
.
editable
===
true
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'error'
})
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
...
...
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