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
587e96a8
Commit
587e96a8
authored
Dec 22, 2020
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bikin puyeng
parent
66de34a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+4
-4
No files found.
src/container/MonthlyReport/ProfitLossMR.js
View file @
587e96a8
...
...
@@ -192,7 +192,7 @@ export default class ProfitLossMR extends Component {
let
res
=
response
.
data
.
data
const
handlePushChild
=
(
item
)
=>
{
let
indexIDzz
=
dataTable
.
findIndex
((
val
)
=>
val
[
1
]
===
item
.
id
)
if
(
item
.
type_report_id
===
3
)
{
if
(
item
.
type_report_id
===
3
&&
item
.
level
===
2
)
{
if
(
item
.
profit_loss
.
mtd_vs_previous_month
==
""
&&
Number
(
item
.
profit_loss
.
percent_act_vs_previous_month
)
<
this
.
state
.
minValue
||
Number
(
item
.
profit_loss
.
percent_act_vs_previous_month
)
>
this
.
state
.
maxValue
)
{
err
=
true
...
...
@@ -241,7 +241,7 @@ export default class ProfitLossMR extends Component {
}
}
res
.
map
((
item
,
index
)
=>
{
if
(
item
.
type_report_id
===
3
)
{
if
(
item
.
type_report_id
===
3
&&
item
.
level
===
2
)
{
if
(
item
.
profit_loss
.
mtd_vs_previous_month
==
""
&&
Number
(
item
.
profit_loss
.
percent_act_vs_previous_month
)
<
this
.
state
.
minValue
||
Number
(
item
.
profit_loss
.
percent_act_vs_previous_month
)
>
this
.
state
.
maxValue
)
{
err
=
true
...
...
@@ -551,8 +551,8 @@ export default class ProfitLossMR extends Component {
let
data
=
[]
let
err
=
false
this
.
state
.
dataTable
.
map
((
i
,
index
)
=>
{
if
(
i
[
0
]
===
3
)
{
//
console.log(i);
if
(
i
[
0
]
===
3
&&
i
[
4
]
===
2
)
{
console
.
log
(
i
);
if
(
i
[
19
]
===
""
&&
(
Number
(
i
[
14
])
<
this
.
state
.
minValue
||
Number
(
i
[
14
])
>
this
.
state
.
maxValue
))
{
console
.
log
(
'msk 1'
);
// console.log(i);
...
...
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