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
716f1f9e
Commit
716f1f9e
authored
Dec 03, 2020
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pl issue
parent
880b4c48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+5
-5
No files found.
src/container/BudgetTahunan/ProfitLoss.js
View file @
716f1f9e
...
@@ -188,7 +188,7 @@ export default class ProfitLoss extends Component {
...
@@ -188,7 +188,7 @@ export default class ProfitLoss extends Component {
}
}
}
}
})
})
//
console.log(dataTable)
console
.
log
(
dataTable
)
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
},
()
=>
{
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
},
()
=>
{
})
})
}
else
{
}
else
{
...
@@ -540,8 +540,8 @@ export default class ProfitLoss extends Component {
...
@@ -540,8 +540,8 @@ export default class ProfitLoss extends Component {
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
1
]
==
tableMeta
.
rowData
[
2
])
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
1
]
==
tableMeta
.
rowData
[
2
])
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"sales price"
)
{
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"sales price"
)
{
let
value
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
20
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
1
][
20
])
let
value
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
20
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
1
][
20
])
dataTable2
[
tableMeta
.
rowIndex
][
20
]
=
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
value
dataTable2
[
tableMeta
.
rowIndex
][
20
]
=
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
(
value
==
"-Infinity"
?
"0.0"
:
value
))
return
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
value
return
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
(
value
==
"-Infinity"
?
"0.0"
:
value
))
}
else
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"total man power"
)
{
}
else
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"total man power"
)
{
let
totalTMP
=
dataTable2
[
tableMeta
.
rowIndex
][
20
]
=
dataTable2
[
tableMeta
.
rowIndex
][
19
]
let
totalTMP
=
dataTable2
[
tableMeta
.
rowIndex
][
20
]
=
dataTable2
[
tableMeta
.
rowIndex
][
19
]
return
totalTMP
return
totalTMP
...
@@ -633,13 +633,13 @@ export default class ProfitLoss extends Component {
...
@@ -633,13 +633,13 @@ export default class ProfitLoss extends Component {
}
else
if
(
opt
==
"kali"
)
{
}
else
if
(
opt
==
"kali"
)
{
total
=
Number
(
total
)
*
Number
(
item
)
total
=
Number
(
total
)
*
Number
(
item
)
}
else
if
(
opt
==
"bagi"
)
{
}
else
if
(
opt
==
"bagi"
)
{
total
=
R
.
equals
((
Number
(
total
)
/
Number
(
item
)),
NaN
)
?
'0'
:
R
.
equals
((
Number
(
total
)
/
Number
(
item
)),
Infinity
)
?
'0'
:
Number
(
total
)
/
Number
(
item
)
total
=
R
.
equals
((
Number
(
total
)
/
Number
(
item
)),
NaN
)
?
'0'
:
(
R
.
equals
((
Number
(
total
)
/
Number
(
item
)),
Infinity
)
?
'0'
:
(
Number
(
total
)
/
Number
(
item
)
==
"-Infinity"
)
?
"0.0"
:
Number
(
total
)
/
Number
(
item
)
)
}
else
{
}
else
{
total
+=
Number
(
item
)
total
+=
Number
(
item
)
}
}
}
}
})
})
total
=
R
.
equals
(
total
,
NaN
)
?
"0.0"
:
R
.
equals
(
total
,
Infinity
)
?
"0.0"
:
total
total
=
R
.
equals
(
total
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
total
,
Infinity
)
?
"0.0"
:
(
total
==
"-Infinity"
?
"0.0"
:
total
))
// if (tableMeta.rowData[1] === 20092) {
// if (tableMeta.rowData[1] === 20092) {
// console.log(total);
// console.log(total);
// console.log(arrayJumlah);
// console.log(arrayJumlah);
...
...
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