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
881f2e24
Commit
881f2e24
authored
May 11, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update CF OLPA
parent
fc5edd7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
CashFlowOLPA.js
src/container/OutlookPA/CashFlowOLPA.js
+13
-11
No files found.
src/container/OutlookPA/CashFlowOLPA.js
View file @
881f2e24
...
@@ -83,6 +83,7 @@ export default class CashFlow extends Component {
...
@@ -83,6 +83,7 @@ export default class CashFlow extends Component {
console
.
log
(
checkApprover
)
console
.
log
(
checkApprover
)
console
.
log
(
checkPrevRev
)
console
.
log
(
checkPrevRev
)
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
// this.setState({viewOnly: true})
}
}
componentDidMount
()
{
componentDidMount
()
{
...
@@ -504,10 +505,10 @@ export default class CashFlow extends Component {
...
@@ -504,10 +505,10 @@ export default class CashFlow extends Component {
}
}
}
}
}
else
{
}
else
{
let
indexID
=
dataTable2
.
findIndex
((
val
)
=>
val
[
22
]
==
item
)
let
indexID
=
dataTable2
.
findIndex
((
val
)
=>
val
[
18
]
==
item
)
if
(
indexID
!==
-
1
)
{
if
(
indexID
!==
-
1
)
{
let
valuezz
=
dataTable2
[
indexID
][
column
].
value
==
undefined
?
dataTable2
[
indexID
][
column
]
:
dataTable2
[
indexID
][
column
].
value
let
valuezz
=
dataTable2
[
indexID
][
column
].
value
==
undefined
?
dataTable2
[
indexID
][
column
]
:
dataTable2
[
indexID
][
column
].
value
if
(
item
==
dataTable2
[
tableMeta
.
rowIndex
][
22
])
{
if
(
item
==
dataTable2
[
tableMeta
.
rowIndex
][
18
])
{
anjay
.
push
(
0
)
anjay
.
push
(
0
)
}
else
{
}
else
{
anjay
.
push
(
valuezz
==
""
?
0
:
valuezz
)
anjay
.
push
(
valuezz
==
""
?
0
:
valuezz
)
...
@@ -679,14 +680,14 @@ export default class CashFlow extends Component {
...
@@ -679,14 +680,14 @@ export default class CashFlow extends Component {
total
=
R
.
equals
(
total
,
NaN
)
?
"0.0"
:
total
total
=
R
.
equals
(
total
,
NaN
)
?
"0.0"
:
total
if
(
tableMeta
.
rowData
[
5
]
==
'2.1 Additional fixed assets and CIP'
&&
column
==
7
)
{
// if (tableMeta.rowData[1] == 3243762 && column == 1
7) {
console
.
log
(
tableMeta
.
rowData
)
//
console.log(tableMeta.rowData)
console
.
log
(
splitFormula
)
//
console.log(splitFormula)
console
.
log
(
baru
)
//
console.log(baru)
console
.
log
(
anjay
)
//
console.log(anjay)
console
.
log
(
anjay2
)
//
console.log(anjay2)
console
.
log
(
total
)
//
console.log(total)
}
//
}
if
(
dataTable2
[
tableMeta
.
rowIndex
][
column
].
value
==
undefined
)
{
if
(
dataTable2
[
tableMeta
.
rowIndex
][
column
].
value
==
undefined
)
{
dataTable2
[
tableMeta
.
rowIndex
][
column
]
=
total
dataTable2
[
tableMeta
.
rowIndex
][
column
]
=
total
...
@@ -1510,7 +1511,8 @@ export default class CashFlow extends Component {
...
@@ -1510,7 +1511,8 @@ export default class CashFlow extends Component {
/
>
/
>
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
Number
(
tableMeta
.
rowData
[
15
]).
toFixed
(
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
Number
(
tableMeta
.
rowData
[
15
]).
toFixed
(
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
((
this
.
props
.
PLBSFAMSubmitted
?
Number
(
tableMeta
.
rowData
[
15
].
value
).
toFixed
(
1
)
:
Number
(
handleValueFormula
(
tableMeta
.
rowData
[
15
],
tableMeta
,
15
)).
toFixed
(
1
))
>=
Number
(
this
.
state
.
minValue
)
&&
(
this
.
props
.
PLBSFAMSubmitted
?
Number
(
tableMeta
.
rowData
[
15
].
value
).
toFixed
(
1
)
:
Number
(
handleValueFormula
(
tableMeta
.
rowData
[
15
],
tableMeta
,
15
)).
toFixed
(
1
))
<=
Number
(
this
.
state
.
maxValue
))
?
// (Number(tableMeta.rowData[15]).toFixed(1) >= Number(this.state.minValue) && Number(tableMeta.rowData[15]).toFixed(1) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
...
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