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
07789180
Commit
07789180
authored
Jan 08, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cursor pointer
parent
91694f5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
31 deletions
+32
-31
CorporateAnnualTargetMR.js
src/container/MonthlyReport/CorporateAnnualTargetMR.js
+8
-8
FixedAssetsMovementMR.js
src/container/MonthlyReport/FixedAssetsMovementMR.js
+9
-9
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+15
-14
No files found.
src/container/MonthlyReport/CorporateAnnualTargetMR.js
View file @
07789180
...
@@ -1801,14 +1801,14 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1801,14 +1801,14 @@ export default class CorporateAnnualTargetMR extends Component {
type
=
"button"
type
=
"button"
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
saveDraft
!==
true
?
'pointer'
:
'default
'
,
cursor
:
'pointer
'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
marginRight
:
20
marginRight
:
20
}}
}}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
this
.
state
.
saveDraft
===
true
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
warning
'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
error
'
})
:
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
...
@@ -1825,7 +1825,7 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1825,7 +1825,7 @@ export default class CorporateAnnualTargetMR extends Component {
// disabled={this.state.buttonError}
// disabled={this.state.buttonError}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
buttonError
?
this
.
state
.
buttonError
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
warning
'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
error
'
})
:
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
...
@@ -1833,7 +1833,7 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1833,7 +1833,7 @@ export default class CorporateAnnualTargetMR extends Component {
})}
})}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
}}
}}
...
@@ -1943,14 +1943,14 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1943,14 +1943,14 @@ export default class CorporateAnnualTargetMR extends Component {
type
=
"button"
type
=
"button"
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
saveDraft
!==
true
?
'pointer'
:
'default
'
,
cursor
:
'pointer
'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
marginRight
:
20
marginRight
:
20
}}
}}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
this
.
state
.
saveDraft
===
true
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
warning
'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
error
'
})
:
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
...
@@ -1967,7 +1967,7 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1967,7 +1967,7 @@ export default class CorporateAnnualTargetMR extends Component {
// disabled={this.state.buttonError}
// disabled={this.state.buttonError}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
buttonError
?
this
.
state
.
buttonError
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
warning
'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
error
'
})
:
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
...
@@ -1975,7 +1975,7 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1975,7 +1975,7 @@ export default class CorporateAnnualTargetMR extends Component {
})}
})}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
}}
}}
...
...
src/container/MonthlyReport/FixedAssetsMovementMR.js
View file @
07789180
...
@@ -1406,14 +1406,14 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1406,14 +1406,14 @@ export default class FixedAssetsMovementMR extends Component {
type
=
"button"
type
=
"button"
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
saveDraft
!==
true
?
'pointer'
:
'default
'
,
cursor
:
'pointer
'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
marginRight
:
20
marginRight
:
20
}}
}}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
this
.
state
.
saveDraft
===
true
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'
warning
'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'
error
'
})
:
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
...
@@ -1427,10 +1427,10 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1427,10 +1427,10 @@ export default class FixedAssetsMovementMR extends Component {
<
/button>
}
<
/button>
}
{
this
.
state
.
get_for
==
'edit'
&&
<
button
{
this
.
state
.
get_for
==
'edit'
&&
<
button
type
=
"button"
type
=
"button"
disabled
=
{
this
.
state
.
buttonError
}
//
disabled={this.state.buttonError}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
buttonError
?
this
.
state
.
buttonError
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'
warning
'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'
error
'
})
:
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
...
@@ -1438,7 +1438,7 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1438,7 +1438,7 @@ export default class FixedAssetsMovementMR extends Component {
})}
})}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
}}
}}
...
@@ -1524,14 +1524,14 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1524,14 +1524,14 @@ export default class FixedAssetsMovementMR extends Component {
type
=
"button"
type
=
"button"
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
saveDraft
!==
true
?
'pointer'
:
'default
'
,
cursor
:
'pointer
'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
marginRight
:
20
marginRight
:
20
}}
}}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
this
.
state
.
saveDraft
===
true
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'
warning
'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'
error
'
})
:
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
...
@@ -1548,7 +1548,7 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1548,7 +1548,7 @@ export default class FixedAssetsMovementMR extends Component {
disabled
=
{
this
.
state
.
buttonError
}
disabled
=
{
this
.
state
.
buttonError
}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
buttonError
?
this
.
state
.
buttonError
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'
warning
'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'
error
'
})
:
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
...
@@ -1556,7 +1556,7 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1556,7 +1556,7 @@ export default class FixedAssetsMovementMR extends Component {
})}
})}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
}}
}}
...
...
src/container/MonthlyReport/TaxPlanningMR.js
View file @
07789180
...
@@ -1641,17 +1641,18 @@ export default class TaxPlanningMR extends Component {
...
@@ -1641,17 +1641,18 @@ export default class TaxPlanningMR extends Component {
type
=
"button"
type
=
"button"
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
this
.
state
.
saveDraft
===
true
?
null
:
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'error'
})
this
.
state
.
handleTekTekTek
==
1
?
null
:
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
state
.
handleTekTekTek
==
1
?
null
:
setTimeout
(()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
backToMonthlyReport
(
'draft'
)
setTimeout
(()
=>
{
},
100
);
this
.
backToMonthlyReport
(
'draft'
)
})
},
100
);
})
}
}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
saveDraft
!==
true
?
'pointer'
:
'default
'
,
cursor
:
'pointer
'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
marginRight
:
20
marginRight
:
20
...
@@ -1666,7 +1667,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -1666,7 +1667,7 @@ export default class TaxPlanningMR extends Component {
// disabled={this.state.buttonError}
// disabled={this.state.buttonError}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
buttonError
?
this
.
state
.
buttonError
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
warning
'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
error
'
})
:
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
...
@@ -1677,7 +1678,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -1677,7 +1678,7 @@ export default class TaxPlanningMR extends Component {
}
}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
outline
:
'none'
}}
}}
...
@@ -1757,13 +1758,13 @@ export default class TaxPlanningMR extends Component {
...
@@ -1757,13 +1758,13 @@ export default class TaxPlanningMR extends Component {
// disabled={this.state.buttonError}
// disabled={this.state.buttonError}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
saveDraft
!==
true
?
'pointer'
:
'default
'
,
cursor
:
'pointer
'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
marginRight
:
20
marginRight
:
20
}}
}}
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
null
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'error'
})
:
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
...
@@ -1781,12 +1782,12 @@ export default class TaxPlanningMR extends Component {
...
@@ -1781,12 +1782,12 @@ export default class TaxPlanningMR extends Component {
// disabled={this.state.buttonError}
// disabled={this.state.buttonError}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
editable
!==
true
?
'pointer'
:
'default
'
,
cursor
:
'pointer
'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
}}
}}
onClick
=
{()
=>
this
.
state
.
editable
===
true
?
onClick
=
{()
=>
this
.
state
.
editable
===
true
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
warning
'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'
error
'
})
:
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
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