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
1586536a
Commit
1586536a
authored
Jan 19, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'riri' into 'master'
Bug See merge request
!991
parents
1f00a5fa
997334d8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
HomePage.js
src/container/HomePage.js
+2
-2
MonthlyReport.js
src/container/MonthlyReport.js
+1
-1
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+4
-2
No files found.
src/container/HomePage.js
View file @
1586536a
...
@@ -111,7 +111,7 @@ class HomePage extends Component {
...
@@ -111,7 +111,7 @@ class HomePage extends Component {
api
.
create
().
getMonthTransaction
().
then
(
response
=>
{
api
.
create
().
getMonthTransaction
().
then
(
response
=>
{
let
dateNow
=
new
Date
let
dateNow
=
new
Date
let
month
=
format
(
dateNow
,
'MMMM'
)
let
month
=
format
(
dateNow
,
'MMMM'
)
//
console.log(response);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
// console.log(response);
// console.log(response);
...
@@ -126,7 +126,7 @@ class HomePage extends Component {
...
@@ -126,7 +126,7 @@ class HomePage extends Component {
options
:
monthData
,
options
:
monthData
,
getOptionLabel
:
(
option
)
=>
option
.
month_value
,
getOptionLabel
:
(
option
)
=>
option
.
month_value
,
};
};
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
.
month_name
==
month
)
let
index
=
data
.
findIndex
((
val
)
=>
val
.
month_name
==
month
)
// console.log(month)
// console.log(month)
// console.log(index)
// console.log(index)
this
.
setState
({
listMonth
:
defaultProps
,
month
:
index
==
-
1
?
monthData
[
0
]
:
monthData
[
index
]
},
()
=>
{
this
.
setState
({
listMonth
:
defaultProps
,
month
:
index
==
-
1
?
monthData
[
0
]
:
monthData
[
index
]
},
()
=>
{
...
...
src/container/MonthlyReport.js
View file @
1586536a
...
@@ -309,7 +309,7 @@ export default class MonthlyReport extends Component {
...
@@ -309,7 +309,7 @@ export default class MonthlyReport extends Component {
options
:
monthData
,
options
:
monthData
,
getOptionLabel
:
(
option
)
=>
option
.
month_value
,
getOptionLabel
:
(
option
)
=>
option
.
month_value
,
};
};
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
.
month_name
==
month
)
let
index
=
data
.
findIndex
((
val
)
=>
val
.
month_name
==
month
)
console
.
log
(
index
);
console
.
log
(
index
);
this
.
setState
({
listMonth
:
defaultProps
,
month
:
index
==
-
1
?
monthData
[
0
]
:
monthData
[
index
]
},
()
=>
{
this
.
setState
({
listMonth
:
defaultProps
,
month
:
index
==
-
1
?
monthData
[
0
]
:
monthData
[
index
]
},
()
=>
{
// if (this.state.isApprover === true) {
// if (this.state.isApprover === true) {
...
...
src/container/MonthlyReport/BalanceSheetMR.js
View file @
1586536a
...
@@ -2245,7 +2245,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -2245,7 +2245,7 @@ export default class BalanceSheetMR extends Component {
<
LightTooltip
title
=
{
"MTD Explanation vs MB is Reqiured"
}
arrow
>
<
LightTooltip
title
=
{
"MTD Explanation vs MB is Reqiured"
}
arrow
>
<
Input
<
Input
disableUnderline
=
{
true
}
disableUnderline
=
{
true
}
style
=
{{
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
}
...
@@ -2256,7 +2256,9 @@ export default class BalanceSheetMR extends Component {
...
@@ -2256,7 +2256,9 @@ export default class BalanceSheetMR 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