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
32322226
Commit
32322226
authored
Jan 04, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apdet
parent
b617814f
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 @
32322226
...
@@ -389,12 +389,19 @@ export default class ProfitLossMR extends Component {
...
@@ -389,12 +389,19 @@ export default class ProfitLossMR extends Component {
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
saveToMonthlyReport
()
this
.
props
.
saveToMonthlyReport
()
}
else
{
}
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
()
this
.
props
.
saveToMonthlyReport
()
})
})
}
}
}
else
{
}
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 {
...
@@ -615,7 +622,7 @@ export default class ProfitLossMR extends Component {
if
(
response
.
data
.
data
.
result
&&
err
===
false
)
{
if
(
response
.
data
.
data
.
result
&&
err
===
false
)
{
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
saveDraft
:
false
})
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
saveDraft
:
false
})
}
else
{
}
else
{
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
tru
e
})
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
fals
e
})
}
}
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
...
@@ -1753,7 +1760,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1753,7 +1760,7 @@ export default class ProfitLossMR extends Component {
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
div
style
=
{{
textAlign
:
'left'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'left'
,
width
:
90
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
?
{
tableMeta
.
rowData
[
0
]
===
3
?
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
<
Input
<
Input
disableUnderline
=
{
true
}
disableUnderline
=
{
true
}
...
@@ -1782,7 +1789,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1782,7 +1789,7 @@ export default class ProfitLossMR extends Component {
<
LightTooltipError
title
=
{
"MTD Explanation vs Prev. Month is Reqiured"
}
arrow
>
<
LightTooltipError
title
=
{
"MTD Explanation vs Prev. Month is Reqiured"
}
arrow
>
<
Input
<
Input
disableUnderline
=
{
true
}
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
multiline
=
{
true
}
multiline
=
{
true
}
...
@@ -1793,7 +1800,9 @@ export default class ProfitLossMR extends Component {
...
@@ -1793,7 +1800,9 @@ export default class ProfitLossMR extends Component {
style
:
{
style
:
{
color
:
"#5198ea"
,
color
:
"#5198ea"
,
textAlign
:
'left'
,
textAlign
:
'left'
,
backgroundColor
:
'#ffac99'
backgroundColor
:
'#ffac99'
,
minHeight
:
30
,
padding
:
0
}
}
}}
}}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
...
@@ -1862,7 +1871,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1862,7 +1871,7 @@ export default class ProfitLossMR extends Component {
<
LightTooltipError
title
=
{
"MTD Explanation vs MB is Reqiured"
}
arrow
>
<
LightTooltipError
title
=
{
"MTD Explanation vs MB is Reqiured"
}
arrow
>
<
Input
<
Input
disableUnderline
=
{
true
}
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
multiline
=
{
true
}
multiline
=
{
true
}
...
@@ -1873,7 +1882,9 @@ export default class ProfitLossMR extends Component {
...
@@ -1873,7 +1882,9 @@ export default class ProfitLossMR extends Component {
style
:
{
style
:
{
color
:
"#5198ea"
,
color
:
"#5198ea"
,
textAlign
:
'left'
,
textAlign
:
'left'
,
backgroundColor
:
'#ffac99'
backgroundColor
:
'#ffac99'
,
minHeight
:
30
,
padding
:
0
}
}
}}
}}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
...
@@ -1942,7 +1953,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1942,7 +1953,7 @@ export default class ProfitLossMR extends Component {
<
LightTooltipError
title
=
{
"MTD Explanation vs RB is Reqiured"
}
arrow
>
<
LightTooltipError
title
=
{
"MTD Explanation vs RB is Reqiured"
}
arrow
>
<
Input
<
Input
disableUnderline
=
{
true
}
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
multiline
=
{
true
}
multiline
=
{
true
}
...
@@ -1953,7 +1964,9 @@ export default class ProfitLossMR extends Component {
...
@@ -1953,7 +1964,9 @@ export default class ProfitLossMR extends Component {
style
:
{
style
:
{
color
:
"#5198ea"
,
color
:
"#5198ea"
,
textAlign
:
'left'
,
textAlign
:
'left'
,
backgroundColor
:
'#ffac99'
backgroundColor
:
'#ffac99'
,
minHeight
:
30
,
padding
:
0
}
}
}}
}}
onBlur
=
{(
event
)
=>
{
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