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
92ff89be
Commit
92ff89be
authored
Jan 04, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'riri' into 'master'
apdet See merge request
!892
parents
b16b9314
67aeec3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
10 deletions
+23
-10
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+23
-10
No files found.
src/container/MonthlyReport/ProfitLossMR.js
View file @
92ff89be
...
...
@@ -389,12 +389,19 @@ export default class ProfitLossMR extends Component {
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
saveToMonthlyReport
()
}
else
{
this
.
setState
({
loading
:
false
,
handleTekTekTek
:
0
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
,
handleTekTekTek
:
0
},
()
=>
{
document
.
body
.
style
.
overflow
=
'unset'
;
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
))
{
setTimeout
(()
=>
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
window
.
location
.
reload
();
},
1000
);
}
this
.
props
.
saveToMonthlyReport
()
})
}
}
else
{
this
.
setState
({
loading
:
false
,
handleTekTekTek
:
0
})
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
,
handleTekTekTek
:
0
})
}
})
}
...
...
@@ -615,7 +622,7 @@ export default class ProfitLossMR extends Component {
if
(
response
.
data
.
data
.
result
&&
err
===
false
)
{
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
saveDraft
:
false
})
}
else
{
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
tru
e
})
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
fals
e
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
...
...
@@ -1753,7 +1760,7 @@ export default class ProfitLossMR extends Component {
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'left'
,
width
:
90
}}
>
<
div
style
=
{{
flex
:
1
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
?
{
tableMeta
.
rowData
[
0
]
===
3
?
this
.
state
.
get_for
==
'view'
?
<
Input
disableUnderline
=
{
true
}
...
...
@@ -1782,7 +1789,7 @@ export default class ProfitLossMR extends Component {
<
LightTooltipError
title
=
{
"MTD Explanation vs Prev. Month is Reqiured"
}
arrow
>
<
Input
disableUnderline
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
minHeight
:
30
,
padding
:
0
}}
type
=
"text"
placeholder
=
""
multiline
=
{
true
}
...
...
@@ -1793,7 +1800,9 @@ export default class ProfitLossMR extends Component {
style
:
{
color
:
"#5198ea"
,
textAlign
:
'left'
,
backgroundColor
:
'#ffac99'
backgroundColor
:
'#ffac99'
,
minHeight
:
30
,
padding
:
0
}
}}
onBlur
=
{(
event
)
=>
{
...
...
@@ -1862,7 +1871,7 @@ export default class ProfitLossMR extends Component {
<
LightTooltipError
title
=
{
"MTD Explanation vs MB is Reqiured"
}
arrow
>
<
Input
disableUnderline
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
minHeight
:
30
,
padding
:
0
}}
type
=
"text"
placeholder
=
""
multiline
=
{
true
}
...
...
@@ -1873,7 +1882,9 @@ export default class ProfitLossMR extends Component {
style
:
{
color
:
"#5198ea"
,
textAlign
:
'left'
,
backgroundColor
:
'#ffac99'
backgroundColor
:
'#ffac99'
,
minHeight
:
30
,
padding
:
0
}
}}
onBlur
=
{(
event
)
=>
{
...
...
@@ -1942,7 +1953,7 @@ export default class ProfitLossMR extends Component {
<
LightTooltipError
title
=
{
"MTD Explanation vs RB is Reqiured"
}
arrow
>
<
Input
disableUnderline
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
minHeight
:
30
,
padding
:
0
}}
type
=
"text"
placeholder
=
""
multiline
=
{
true
}
...
...
@@ -1953,7 +1964,9 @@ export default class ProfitLossMR extends Component {
style
:
{
color
:
"#5198ea"
,
textAlign
:
'left'
,
backgroundColor
:
'#ffac99'
backgroundColor
:
'#ffac99'
,
minHeight
:
30
,
padding
:
0
}
}}
onBlur
=
{(
event
)
=>
{
...
...
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